Changing Video Format

Not strictly a Linux question but I do need a solution that runs on Kubuntu 19.10.

I want to make backups of my dvds. The one test dvd made a mkv file using MakeMKV. Of course it’s a large file. I’m trying to reduce the video down to an acceptable size using Handbrake and changing it to mp4. The problem is that the format is not playable on my Samsung tv and somehow the latest update bricked my Nvidia Shield.

How can the format be changed from mkv to mp4 while reducing the size? I’d rather not take more than two steps at the most. And I don’t see how to change the file format in Handbrake. What are my options?


If you are comfortable with the command line, using ffmpeg may be what you’re looking for. You should be able to reduce the file’s size by doing this, after substituting the file’s name where applicable. I suggest making a backup of the file to be safe.

Is it necessary to keep it in the mkv format? After a quick skim of this, I think you may need to convert it to a different format in order to play it on your (smart?) tv.

Not knowing how to change the format is the problem. I want it to be mp4. I need to proof read posts before saving.

I’ll take a look at the links. Thanks

This might be your solution, then. Let me know if you are not familiar with the command line; I may have a graphical option.

1 Like

I’m doing a trial run right now. There is a GUI, WinFF.

I may end up adding a step by using ffmpeg to change the container to mp4 then use handbrake to reduce the size. No worries. Something to play around with. Thanks

this should do:

ffmpeg -i myvideo.whatever -c:v libx264 -c:a copy myvideo.mp4

you can replace libx264 with any codec ffmpeg supports that your tv can read. h264 (the one I indicated in the command above) should work pretty much everywhere.


Did you ever find a solution for this? I am doing the same thing with my DVDs. So I rip it with

makemkvcon --minlength=3600 -r --decrypt --directio=true mkv disc:0 all /home/user/dvd/MOVIE_TITLE

Then when that’s done, I take the mkv that I want from that rip and condense with it HandBrake CLI using

HandBrakeCLI -Z "Fast 1080p30" -i input.mkv -o path/to/output.mp4

This condensed a 5.4GB DVD rip down to 492M and the quality is pretty good (at least on my laptop screen).