[FFmpeg-user] CLOSED GOP STRUCTURE

andrea velrasquiña mocosa52 at gmail.com
Wed Jan 28 21:38:07 CET 2015


Hello,

I am trying to encode a h264 file with a closed GOP structure and reference
frames on 2 , this using the following code, but it by default it removes
the constant bitrate and the reference frames end up in 4 instead of 2.

Can some one please help me.
Thank you,


input file.mov
https://www.dropbox.com/s/pf2f3fvw5r0yqao/DECAMERON_ELSALVADOR_OCT14_V1.mov?dl=0

 -map 0:0 -map 0:1 -map 0:2 -c:v libx264 -profile:v main -preset fast
-pix_fmt yuv420p -refs 2 -r:v 29.97 -g 15 -bf 2 -b_strategy 1 -trellis 2
-cmp 2 -subcmp 2 -s 720x480 -weightb 1 -keyint_min 30 -b:v 1509376 -bt 200k
-minrate 1509376 -maxrate 1509376 -bufsize 3018752 -tune zerolatency
-x264opts force-cfr:slices=2:bitrate=1509:vbv-maxrate=1509:vbv-bufsize=503
-threads 4 -an -f mpegts -mpegts_pmt_start_pid 0x003f -mpegts_start_pid
0x030

Output file.mpg


More information about the ffmpeg-user mailing list