How to convert MP4 to MKV with ffmpeg (Easy steps!)

If you wondering how to convert a video only from command line. These steps are recommended to achieve that.

First you need to install ffmpeg in your system.

Centos/Fedora:

$ sudo dnf install ffmpeg

Ubuntu:

$ sudo apt install ffmpeg

And proceed to convert your desired video:

$ ffmpeg -i input.mp4 -vcodec copy -acodec copy output.mkv

 

Leave a Comment