Can You Reduce File Since in Handbrake Again

What'due south the problem with Handbrake?

When you're using Handbrake to convert from one container format to the other (i.e. MKV to MP4 in your case), Handbrake will re-encode the video. See as well the respective characteristic request that would have enabled video passthrough:

Lamentable, adding video passthrough is not planned. HandBrake is designed to be a video transcoder. Information technology wasn't designed to allow passthrough.

So, someday yous're changing containers with Handbrake, your video is going to become re-encoded, which means it a) takes fourth dimension and b) may introduce quality loss.

Do I have to re-encode? Couldn't I only swap the container?

Since passthrough is not possible, ask yourself: Practice I need to re-encode? If you just desire to alter the container from MKV to MP4, you lot usually don't need to encode anything, you lot just modify the "wrapping" around the video. This doesn't lose quality, and information technology'll be a much faster process.

You can swap containers easily with FFmpeg – you just take to tell it to copy the video and audio streams:

          ffmpeg -i input.mkv -c re-create -map 0 output.mp4                  

There are as well tools like MP4Box which can besides create MP4 containers — the same exists for MKV with MKVtoolnix.

However, there's a big caveat: this only works if the sound and video codecs are supported in the target (MP4) container, which is the case for H.264/H.265 and AAC, for example, but non for many others. As well, subtitle format back up for MP4 is different from MKV, and actually quite restricted, then this control may fail.

If this command does non work, and if your input uses the incorrect codecs for the output container, you will probably take to re-encode. In this example, the codecs will be adapted to the output container.

To sympathize why this is necessary, it'southward important to learn the difference between video codecs and containers. This will help yous sympathize why changing containers works and why the containers MP4 and MKV have footling to do with video codecs, actually.

Why is re-encoding bad, anyway?

You can (normally) not retain total quality when encoding a video that was already encoded. This is because the original has already been compressed by throwing away information, and by doing it again you're introducing generation loss.

Often, you want to re-encode video when for instance its dimensions change, or you lot need a specific scrap rate to squeeze your video stream into, or your original video uses a codec that you tin can't play for whatever reason.

So, if yous load your MKV video into Handbrake, and re-encode it with x264, the H.264 encoder Handbrake uses, store it in an MP4 container, yous are going to lose quality no matter what, unless you gear up the bitrate or quality factor so high that you won't (really) encounter the difference. But then, the file size volition be bigger equally well.

In the ideal case, you would convert the video to an uncompressed video, which won't lose y'all any quality, but give y'all files of a dozen Gigabytes in size, even for a few minutes of video cloth.

Okay, merely I actually have to re-encode!

If you really have to re-encode, make sure not to set an average bitrate, just choose a Abiding Charge per unit Factor, which is something similar "constant quality". Just similar "variable bit rate" for MP3: Information technology will make sure to spend the $.25 on the video parts that need them and make the overall quality improve — at the same file size.

Sane CRF values are from 19 to 24, where lower means "better". So, you could endeavour with a Charge per unit Gene of 19. Too, make sure to set the "Loftier" profile, which enables the encoder to utilize all bells and whistles and optimize the quality for a given bit charge per unit.

raybrishemed.blogspot.com

Source: https://superuser.com/questions/472420/handbrake-settings-to-convert-mkv-to-mp4-while-retaining-the-original-quality

0 Response to "Can You Reduce File Since in Handbrake Again"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel