Log in

View Full Version : mp4box and fps settings


may24
18th May 2012, 17:24
Hi all, I encountered the following problem:
I extracted some AVC video from a matroska container and re-encoded it with avisynth/x264.
Then remuxed the audio/video with Yamb (+ mp4box 0.4.6 rev2735 - March 02, 2011) into a new .mp4.

I played the file with VLC and MPC (+ CoreAVC) and always got a huge out-of-sync between audio and video.
A quick check with mediainfo revealed that the fps had been set to 23.97 instead of 25.

When using x264 I created raw streams and in Yamb I specified explicitly 25fps in the settings. I also tried the CLI way. But whatever you try the fps always remain 23.97 inastead of 25.

And I need .mp4 (PS3 doesn't accept .mkv) ;)

However, I could either encode the whole thing again and tell avisynth that the assumed fps are 25 or slowdown the audio.

But I think the issue can be solved way faster by modifying the SPS of the AVC raw stream.
So this is my question: What bytes I've to modify in order to change the framrate ?

kotuwa
26th May 2012, 16:31
me too needed to change FPS of a MP4.
Could not do it properly with YAMB or My MP4Box GUI.
Finally I had to change the container!... from MP4 to MKV.
MKVToolnix (with MKVMerge GUI) solved the problem!

But here, i think you can do it as your framerate is 25.
(I wanted to put a custom fps, just like 22, 26 etc.)

25 can be selected in YAMB or My MP4Box GUI!
If you fail, use another tool like DVBPortal mp4muxer.
http://www.dvbportal.de/projects/mp4muxer/
.

the_weirdo
27th May 2012, 09:13
You may also check this tool:
http://forum.doom9.org/showthread.php?t=152419
or mp4fpsmod:
http://sites.google.com/site/qaacpage/cabinet