ffmpeg [-y] -i INPUT_FILE [PARAMETER] [-f FORMAT] OUTPUT_FILE
-formats
File formats: D. = Demuxing supported .E = Muxing supported
-codecs /
-encoder /
-decoder
Codecs: D..... = Decoding supported .E.... = Encoding supported ..V... = Video codec ..A... = Audio codec ..S... = Subtitle codec ...I.. = Intra frame-only codec ....L. = Lossy compression .....S = Lossless compression
ffmpeg -i INPUT_FILE -c copy OUTPUT_FILE
-c:v CODEC -c:a CODEC -c copy
ffmpeg -i INPUT_FILE
-c:v ffv1
-c:a pcm_s24le
OUTPUT_FILE
ffmpeg -i INPUT_FILE -c:v ffv1 -c:a pcm_s16le OUTPUT_FILE
-pix_fmt +
Show list: -pix_fmts
ffmpeg -i INPUT_FILE -c:v ffv1 -pix_fmt yuv422p OUTPUT_FILE
(CAUTION: re-encoding required)
-c:a CODEC -ar SAMPLERATE -ac CHANNELS -b:a BITRATE{k,M} -b:v BITRATE{k,M} -minrate BITRATE -maxrate BITRATE -g FRAMES FFV1, which stands for "FF video codec 1", is a lossless intra-frame video codec.
-c:v ffv1 -level {1,3} -coder {0=golomb,1=range} -context {0=small,1=large} -slices {4,6,9,12,16,24,..} -slicecrc {0,1} Source: Wikipedia: FFV1, ffv1.info
ffmpeg -i INPUT_FILE
-an
-c:v ffv1
-level 3
-slices 24
-slicecrc 1
"x264 H.264/MPEG-4 AVC encoder wrapper. [...]
libx264 supports an impressive number of features, [...]"
-c:v libx264 -b:v BITRATE{k,M} -crf 0
(lossless) - 51
(worst)
-preset:v {ultrafast,superfast,veryfast,faster,fast,medium(*),slow,slower,veryslow}
-tune {film,animation,grain,...}
Sources/Links FFmpeg Wiki, FFmpeg docs
ffmpeg -i INPUT_FILE
-an
-c:v libx264
-preset:v superfast
-crf 22