How to Convert MKV to MPEG in Linux

Written by joshua laud
  • Share
  • Tweet
  • Share
  • Email

With the plethora of video formats and codecs available, a video you've downloaded or recorded may not be in your preferred format. In this instance you can convert the video container or codec to something more commonly used. The matroska (MKV) format, while superior in capabilities, especially in terms of high definition to the MPEG (MPG) format, is not as widely compatible. MPG features universal, cross-platform, native support. Converting MKV video on Linux is easy, as you can utilise the inbuilt FFmpeg converter.

Skill level:


  1. 1

    Open your Linux Terminal. This process will differ depending on your distribution. Check the user documentation for more details. This opens a command-line window ready for you to type in a command.

  2. 2

    Type "cd" (into the command Terminal), followed by the path for your video, to change the directory. For example, in root, if your video is in "/video/," then type "cd video" and press "Enter."

  3. 3

    Type "ffmpeg -i source.mkv output.mpg" (without quotes) into the command window (you won't need to click anywhere, just type). Replace "source" with the file name of your matroska video. Replace "Output" with your desired output file name.

  4. 4

    Press "Enter." The video conversion may take up to a few hours, depending on video size, resolution, quality, length and computing capability.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.