FFmpeg

FFmpeg documentation

Do not mix input and output files – first specify all input files, then all output files. Also do not mix options which belong to different files. All options apply ONLY to the next input or output file and are reset between files.

To set the video bitrate of the output file to 64 kbit/s:

ffmpeg -i input.avi -b:v 64k -bufsize 64k output.avi

To force the frame rate of the output file to 24 fps:

ffmpeg -i input.avi -r 24 output.avi

To force the frame rate of the input file to 1 fps and the frame rate of the output file to 24 fps:

(valid for raw formats only)

ffmpeg -r 1 -i input.m2v -r 24 output.avi

Related