dear one, can we change the gop size of mpeg/h264 video while encoding using ffmpeg... if yes, please share the required option with ffmpeg.
Amar wrote:
dear one, can we change the gop size of mpeg/h264 video while encoding using ffmpeg... if yes, please share the required option with ffmpeg.
the option is -g <gop-size> where gop size is an integer. Also note the related option -keyint_min <keyframe-interval> where the keyframe interval is an integer. The gop size must be larger than the keyframe interval since each group of pictures must by definition include (start with) a keyframe. -- Andy
Hey I am using this command but still its not putting i-frames at required intervals ffmpeg -ss 0:0:0 -i "D:\sample videos\input9.vob" -ac 2 -f mpegts -acodec libmp3lame -ar 48000 -ab 64000 -s 720x408 -vcodec libx264 -b 1200k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 0 -refs 1 -coder 0 -me_range 16 -keyint_min 1 -sc_threshold 40 -i_qfactor 0.71 -bt 1300k -bufsize 524288 -qmin 2 -qmax 48 -aspect 1.7647059 -g 5 -r 30 -async 2 out.ts In out.ts i-frame interval is 96. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/changing-GOP-size-tp2531576p3815609... Sent from the FFmpeg-users mailing list archive at Nabble.com.
participants (3)
-
andycivil@gmail.com -
johnnydepp -
nandan.amar@gmail.com