inline Changing container format
Originally published on May 1st, 2020 (Last updated on May 1st, 2020)
To change only the container format (for example from
mp4) map all streams, set
copy for all codecs and specify an output file with the desired container formats file-ending.
# Only changes container format! ffmpeg -i <file>.mkv -map 0 -c copy <out>.mp4
As an example, this is required because Sony Vegas can’t open MKV containers, but MP4 containers work fine. No re-encoding of either sound or audio is required!