

High-quality encoding using -crf (Constant Rate Factor) and -preset:įfmpeg -i input.mp4 -preset slower -crf 18 output.mp4Ĭonvert a.


Specify the codecs for both video (-c:v) and audio (-c:a)įfmpeg -i input.mp4 -c:v vp9 -c:a mp3 output.mkvĮncode the audio as mp3 and copy the video stream unchanged: ffmpeg -i input.mp4 -c:v copy -c:a mp3 output.mkv mkv (another container format):įfmpeg -i input.webm -c:av copy output.mkv ':av' is the default so this could also be specified with just -c copy:įfmpeg -i input.mkv -c:av copy output.mp4 Remux from MKV (a container format) into MP4 (another container format), lossless copy without re-encoding. A cross-platform solution to record, convert and stream audio and video.
