Skip to main content

ffmpeg ↔ A/V CLI Dev tool to Encode/Decode/Transcode, Mux/Demux, stream, filter & play

Source: ffmpeg.org/ffmpeg.html

Mux

to combine multiple signal streams (AV/Subs) into single output

Demux

to split signal stream (AV/subs) into multiple separate outputs

Transcode

to convert AV to other format

Decode

to Decompress AV into raw (original) format

Encode

to Compress raw AV into smaller file via Codec

Codec

ffmpeg -i input.mkv -map 0:V:0 -map 0:a:0 -c:v copy -c:a flac -compression_level:a 12 -f matroska output.mkv

convert source MKV from DTSto FLAC

ffmpeg -i source.mp4 -c copy -c:a ac3 destination.mp4

convert source MP4 to new copy with audio to AC3

reincode mkv to flac

ffmpeg -i input.mkv -map 0:V:0 -map 0:a:0 -c:v copy -c:a flac -compression_level:a 12 -f matroska output.mkv

reincode mp4 to ac3

ffmpeg -i __source.mp4 -c copy -c:a ac3 destination.mp4

ffmpeg > handbrake?

References