Skip to content

Instantly share code, notes, and snippets.

View ThatOneCodeDev's full-sized avatar
🛰️
Configuring SATCOM equipment...

Reaper ThatOneCodeDev

🛰️
Configuring SATCOM equipment...
  • SentinelSec Studios
  • Germany
  • 05:55 (UTC +02:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am thatonecodedev on github.
  • I am thatonecodedev (https://keybase.io/thatonecodedev) on keybase.
  • I have a public key ASAqttPH6HG4jmlfCLxT3wIJE5hxzRkpm7xkdgkgG2GL8wo

To claim this, I am signing this object:

@ThatOneCodeDev
ThatOneCodeDev / ffmpeg_mkv_mp4_conversion.md
Created March 16, 2022 02:44 — forked from jamesmacwhite/ffmpeg_mkv_mp4_conversion.md
Easy way to convert MKV to MP4 with ffmpeg

Converting mkv to mp4 with ffmpeg

Essentially just copy the existing video and audio stream as is into a new container, no funny business!

The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.

With ffmpeg this can be achieved with -c copy. Older examples may use -vcodec copy -acodec copy which does the same thing.

These examples assume ffmpeg is in your PATH. If not just substitute with the full path to your ffmpeg binary.

Single file conversion example