[FFmpeg-user] Set keyframe interval raw video

Gabor Alsecz alseczg at gmail.com
Thu Oct 20 11:38:58 EEST 2016

Dear All,

Would like to know what is the best way/parameter to force key frame
interval. I would need 2*FPS
I'm feeding FFmpeg's stdout with raw images at fps 25.

So far i have the following command:
ffmpeg -y -loglevel info  -f lavfi -i aevalsrc=0  -f rawvideo  -pix_fmt
rgb24 -video_size 1280x720 -framerate=25 -i "-"  -f flv -acodec aac -vcodec
h264_nvenc  -profile:v high -vf "fps=25,format=yuv420p" -minrate 3000k
-maxrate 3000k -bufsize 6000k output.mp4



More information about the ffmpeg-user mailing list