[FFmpeg-user] How to set up encoding with non-IDR keyframes/I-frames?

Anatol anatol2002 at gmail.com
Wed Jun 13 22:12:51 CEST 2012


Sure:
ffmpeg -i input.mov -vcodec  libx264 -subq 2 -qcomp 0.6 -qmin 10 -qmax 50
-qdiff 4 -coder 0 -b 200k -s 480x256 -r 25 -g 50 -vprofile baseline
-force_key_frames  0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32 -pix_fmt
yuv420p -acodec libfaac -ab 40k -ar 22050 -ac 2 -f mp4 -flags +loop+mv4
-cmp 256 -partitions +parti4x4+partp8x8+partb8x8 -trellis 1 -refs 1
-me_range 16 -keyint_min 20 -sc_threshold 40 -i_qfactor 0.71 -bt 80k
-maxrate 200k -bufsize 600k -rc_eq 'blurCplx^(1-qComp)' -level 30 -async 2
 -vsync 1  -y output200.mp4

ffmpeg -i  input.mov -vcodec  libx264 -subq 2 -qcomp 0.6 -qmin 10 -qmax 50
-qdiff 4 -coder 0 -b 110k -s 480x256 -r 25 -g 50 -vprofile baseline
-force_key_frames  0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32 -pix_fmt
yuv420p -acodec libfaac -ab 40k -ar 22050 -ac 2 -f mp4 -flags +loop+mv4
-cmp 256 -partitions +parti4x4+partp8x8+partb8x8 -trellis 1 -refs 1
-me_range 16 -keyint_min 20 -sc_threshold 40 -i_qfactor 0.71 -bt 50k
-maxrate 110k -bufsize 400k -rc_eq 'blurCplx^(1-qComp)' -level 30 -async 2
 -vsync 1  -y output100.mp4


On Wed, Jun 13, 2012 at 10:53 PM, Roger Pack <rogerdpack2 at gmail.com> wrote:

> > I am trying to generate a keyframe aligned multi-bitrate set of files.
> > I know that it can be done using the same pass-1 log file for the whole
> > multi-bitrate set.
> > But due to some constraints I can nit use it. I have tried another
> approach.
> > I use the 'force_keyframes' option, this ensures aligned key frames.
> > But in order to avoid quality reduction the scenecut is on.
> > Therefore, additionally to the aligned and 'forced' key frames, there are
> > 'scenecut' keyframes as well.
> > My question is how do I turn the scenecut keyframes into non-IDR
> keyframes?
>
> Could you give command line examples of what you currently are using?
> -r
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list