inline Changing container format

Originally published on May 1st, 2020 (Last updated on May 1st, 2020)

To change only the con­tain­er for­mat (for exam­ple from mkv to mp4) map all streams, set copy for all codecs and spec­i­fy an out­put file with the desired con­tain­er for­mats file-ending.

# Only changes container format!
ffmpeg -i <file>.mkv -map 0 -c copy <out>.mp4

As an exam­ple, this is required because Sony Vegas can’t open MKV con­tain­ers, but MP4 con­tain­ers work fine. No re-encod­ing of either sound or audio is required!


No com­ment sec­tion here 😄

You can reach me over at @knuth_dev or send me an Email.