Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lossless conversion of MKV to MP4 with Handbrake

What is the argument that I need to provide to prevent Handbrake from losing the quality of the source video when converting to MP4. I've read over all the documentation and I can see where it throttles but I can't find how to tell Handbrake to just ignore the default settings and keep the existing settings.

like image 472
FransAlkemade Avatar asked Feb 10 '15 21:02

FransAlkemade


People also ask

Can I convert MKV to MP4 without losing quality?

With Movavi Video Converter, you can transfer MKV to MP4 without losing quality using the revolutionary SuperSpeed mode. The program supports batch processing that makes conversion even faster. You can also use this smart software to convert MP4 to MKV.

Is Handbrake lossless?

x264 and RF 0 RF 0 applies no compression. It is lossless: it compresses the source without throwing away practically any detail.

Can you remux with Handbrake?

Handbrake does not Remux MKV or MP4. REMUX: A rip of Blu-ray or HD DVD disk to another container format or just stripping the disc of menus and bonus material while keeping the contents of its audio and video streams intact, guaranteeing the exact 1:1 movie quality as on original disk. MKV and MP4 are just containers.


2 Answers

If I understand you correctly, you just want to change the video from mkv to mp4 without changing the actual video. in this case, handbrake is the wrong tool for you, as it can only re-encode the video. But in yourcase, copying the video (and audio) would be more efficient. To do that, use ffmpeg. Google ffmpeg, and install the version for you OS. On windows, use the included batch file to open the ffmpeg prompt, on Linux just use the terminal. In both cases use this:

ffmpeg -i /path/to/video.mkv -c:v copy -c:a copy /path/to/save/video.mp4 

That will create a copy of your video in .mp4 format, andgoes as fast as just copying the file would go.

In case you want to re-encode your video lossless, just use handbrake with constant quality andset the crf value to 18. It's not actually lossless that way, but you wouldn't be able to tell the difference.

like image 90
Fallere Avatar answered Sep 23 '22 22:09

Fallere


Handbrake does not Remux MKV or MP4.

REMUX: A rip of Blu-ray or HD DVD disk to another container format or just stripping the disc of menus and bonus material while keeping the contents of its audio and video streams intact, guaranteeing the exact 1:1 movie quality as on original disk.

MKV and MP4 are just containers.

Looks like you just want to Remux the video and audio into a new container, without re-converting the video and audio.

To do so just download Xmedia Recode and it will allow you to Remux your video file, (basically it just places the contents of whats in your MKV file into a new MP4 container, or vise-versa.

Check out this Xmedia Recode How to guide MKV to MP4: http://www.dvd-guides.com/guides/mobile-video/249-rip-dvd-convert-avi-mkv-to-android

And it will only take seconds or minutes depending on the file.

Also you can look at MKVToolNix for remuxing video and audio.

like image 43
Jonathan Marzullo Avatar answered Sep 21 '22 22:09

Jonathan Marzullo