How To Convert An .mkv file To .mp4 File

English

How to convert an .mkv file to .mp4 file using the commandline in Debian 9 Stretch.

If you need to convert a video file from a Matroska container into the mp4 container, do one of the following.

Although, the second option worked best for me and was many times faster, the first option could work better for you.

Thus I am leaving it as an option.

Open a terminal window and type the following command:

sudo apt-get install libav-tools

Press Enter,

How To Convert An .mkv file To .mp4 File.

Now copy and paste the following command, but don't forget changing the input.mkv and output.mp4 names.

avconv -i inputfile.mkv -ar 22050 outputfile.mp4

Press Enter,

Note: This conversion can take more than an hour to complete, thus this is not my preferred tool.


Alternative using FFMPEG, assuming you are in the correct directory of the file you want to convert.

NOTE: If you don't use the copy codec, it will reencode and lose quality.

Type the following command:

ffmpeg -i input.mkv -codec copy output.mp4

Press Enter,

This worked better than using avconv in Debian 9 Stretch and was done in a matter of minutes, without loss of quality.

Games For Linux

Windows has always been the preferred platform for gaming, but after STEAM's interest in Linux more game developers are making their games natively available for Linux.

Disclaimer

All information on this website is published in good faith and for general educational purposes and for use in safe testing environments only. While linuxexperten.com strives to make the information on this site as accurate as possible, linuxexperten.com does not warrant its completeness, reliability and accuracy.

We are not responsible for any losses or damages associated with the use of our website. While we strive to provide only links to useful websites, we have no control over the content of these sites and links to other sites do not constitute a recommendation for all content contained on these websites.

 

Site Information

This is a professional review site that receives compensation from the companies whose products reviewed. Each service or product are thoroughly tested and given high marks if considered to be the very best. Independently owned and the opinions expressed here are no one elses.

 

Limited Time Offers

Coming soon...