View Full Version : changing h264 fps without re-encode ?
lutinor
3rd December 2011, 10:26
Hi all,
I have 40 files h.264 encoded in fps 25. I made a mistake, it was in fact 24fps original file.
Is there a way to change the 'flag' fps without re-encoding all files ? The h264 encoder was x264 cli as usual ^^ Btw, my files output must be blueray compliant.
Thanks in adv,
Max.
nm
3rd December 2011, 13:21
Use roozhou's patched ffmpeg: http://forum.doom9.org/showthread.php?t=152419
lutinor
3rd December 2011, 13:48
Use roozhou's patched ffmpeg: http://forum.doom9.org/showthread.php?t=152419
Can you tell me the line i need to encode? It will be a great help for me :)
nm
3rd December 2011, 15:40
If you still have the raw elementary streams (that you need as source files for Blu-ray compliant TS muxing -- MKV/MP4 is a no-no):
ffmpeg -i input.h264 -vbsf h264_changesps=fps=24000:1001 -vcodec copy output.h264
(or fps=24000:1000 if your source is exactly 24 fps)
If you have already muxed the videos to M2TS, I'm not sure if there's a free tool that would do the necessary changes properly.
lutinor
3rd December 2011, 17:16
It was mkv and i made h264 files.
Actually, i have my h264 files wrongly 'fpsed'. So i can use you line and it will be fine, right ?
nm
3rd December 2011, 17:47
It was mkv and i made h264 files.
So the source that you fed to x264 was MKV, and the output from x264 was .h264? Then you're good to go. But if you encoded with x264 to MKV, the stream within that MKV file is not entirely Blu-ray compliant anymore (although it probably would work in most if not all players).
Actually, i have my h264 files wrongly 'fpsed'. So i can use you line and it will be fine, right ?
Yes.
sneaker_ger
3rd December 2011, 18:00
I'm not sure that they'll still be compliant though. Settings like vbv depend on the correct framerate during encoding, not something you can just fix later on.
lutinor
3rd December 2011, 19:25
thanks you both but this tool work with 'not compliant' project but if you need to be compliant it's not ok :( My compliant tool said :
No no no i don't want your patched files :(
Anyway thanks again for your help,
Max
infoeater
3rd December 2011, 19:39
I'm not sure that they'll still be compliant though. Settings like vbv depend on the correct framerate during encoding, not something you can just fix later on.
If you are changing fps to lower, shouldn't it still be within limits?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.