Hi,
I've been struggling at producing H264 videos with constant frame rates in TS containers.
I use Avanti on Windows with some additional ffmpeg commands. I'm able to set every little parameter that is required: video pid, profile-level, PAR, bitrate, keyframe interval, b frames, buffer size, muxrate, audio bitrate..., however MediaInfo and iMediaHUD on Mac says that my output files have variable frame rates, which is not acceptable in my case. Even if I set the proper toggle to 25fps and add -r 25 to the command line, the output file is vfr, instead of constant/25.
I have just tried iFFmpeg on Mac, and although I'm not able to set stream IDs, buffer size, muxrate - I can force fps with a toggle, but in spite of that MediaInfo says my output file has variable frame rate.
Could someone please explain me how can I encode MPEG/MOV/MP4 files to TS (AVC/H264-AC3 CBR) with constant frame rate, in a way that my above mentioned parameters are also set?
Thanks in advance.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
-
It has to do with way mediainfo derives information. It doesn't actually parse the file, so it isn't always accurate
If mediainfo is bothering you , you can use force-cfr with -x264opts in ffmpeg. Mediainfo shows FPS, and does not say "variable" when output to transport stream
no opts
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Whether or not a file is "valid" or not depends on your definition and what the intended purpose is. For example, ffmpeg's MPEG-TS muxer produces incompatible files in some applicationsLast edited by poisondeathray; 14th Jul 2014 at 16:39.
-
Thanks for the additional information.
-x264opts force-cfr does the job, also to set the overall bitrate mode from variable to constant, I used -muxrate as well.
Thanks again.