Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
17th December 2014, 11:23 | #1 | Link |
Registered User
Join Date: Dec 2014
Posts: 9
|
Converting frame rate of a raw AVC/H.264 file with X264 in command line?
Hi,
I'm new on the forum and I hope I'm posting this question in the right section. I would like to convert the FPS of a raw AVC/H.264 file with the X264 utility, namely, to convert a 30 fps file down to 25 fps. I'm aware that a raw .h264 file doesn't have FPS information embedded so it has to be provided externally. I have tried the "--demuxer raw" switch along with the "--fps" but didn't get any result. VirtualDub does the job nicely when I add X264 as an external encoder (via fraps2.vdprof) but I wonder if this can be done via command line? Any help would be kindly appreciated, thanks in advance! |
17th December 2014, 20:54 | #2 | Link |
Registered User
Join Date: Dec 2012
Posts: 197
|
Like you said the base bitstream format ('raw' refers to an de/uncompressed signal) doesn't have FPS information built-in. The easiest way to (losslessly) choose a new FPS is by muxing the bitstream.
Code:
mkvmerge --default-duration -0:25fps $INPUT.264 -o $OUTPUT.mkv |
18th December 2014, 06:17 | #3 | Link |
Registered User
Join Date: Dec 2014
Posts: 9
|
Thanks for the reply! I'm new to video formats and conversion so sorry for not being able to be more precise...
It seems then it's impossible to do using X264.exe only, it has to be embedded into some container format (that supports FPS information)... In fact I was hoping to be able to reduce the FPS of videos downloaded from YouTube (downloaded in MP4 format), using X264.exe in a batch file (de/remuxing done with MP4Box)... but I guess I'll have to use VirtualDub then as it passes the stream to X264 in some kind of container. |
22nd December 2014, 14:27 | #4 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,259
|
roozhou's patched ffmpeg version should be able to modify raw h.264 content, see: http://forum.doom9.org/showthread.php?t=152419
|
Thread Tools | Search this Thread |
Display Modes | |
|
|