


For example, if your input has two video streams and one audio stream then only the video stream with the largest frame size will be selected. Think of it like a copy and paste.ĭefault stream selection behavior is to select only one stream per stream type. codec copy stream copies, or "re-muxes", the streams from the input to the output without re-encoding. It auto-detects a Matroska to MP4 container conversion based on input/output filenames. It is one of the backends for many of the GUI tools mentioned in other answers.Ĭhanging container without re-enconding content could not be simpler:įfmpeg -i input.mkv -codec copy output.mp4 Libav is a fork of FFmpeg, which Ubuntu switched to for a few years until Ubuntu 15.04. Perhaps the easiest tool for that is ffmpeg, or avconv from the libav-tools package.
