开发者

movie atom problem in mp4 conversion

开发者 https://www.devze.com 2023-02-04 19:48 出处:网络
In our project, we convert any given video file into mp4 file which works fine when we publish it via our site.

In our project, we convert any given video file into mp4 file which works fine when we publish it via our site.

But when we publish the stream link in our itunes-rss and try to download and play the files in Itunes or quicktime, we get an error on the movie-atom in some of the movies and those don't play as they're downloaded to local machine.

After some research, we got that the problem is in the framerate value, to be more specific, the problem is related with 32bit - 64bit value differences. And the conversion should be done with the following formula: newFrameRate = (int(oldFrameRate)+1)*(1000/1001) - as we found so far.

We tried to开发者_StackOverflow中文版 learn the framerate value through ffmpeg and movieinfo, but the results were always different and not accurate.

What's your suggestion to solve this issue? Tolga


I found one useful way to solve this problem and wanted to report.

I installed MP4Box, and used mp4box -frag 1000

which solves all the moov-atom related problems.

I tried other values for fragmantation but in larger values, second half of the movie loose its movie track and turns into white.

FYI, Tolga

0

精彩评论

暂无评论...
验证码 换一张
取 消