Reducing MKV size


Recommended Posts

Hi :)

 

I have a couple of files of anime, like this:

 

 

General
Format                                   : Matroska
Format version                     : Version 2
File size                                 : 534 MiB
Duration                                : 22mn 38s
Overall bit rate                      : 3 294 Kbps
Encoded date                       : UTC 2011-05-05 15:39:57
Writing application               : mkvmerge v4.0.0 ('The Stars were mine') built on Jun  6 2010 16:18:42
Writing library                        : libebml v1.0.0 + libmatroska v1.0.0

Video
ID                                                       : 1
Format                                              : AVC
Format/Info                                      : Advanced Video Codec
Format profile                                 : [email protected]
Format settings, CABAC               : No
Format settings, ReFrames         : 2 frames
Codec ID                                           : V_MPEG4/ISO/AVC
Duration                                            : 22mn 38s
Width                                                 : 1 280 pixels
Height                                                : 720 pixels
Display aspect ratio                        : 16:9
Frame rate mode                            : Constant
Frame rate                                        : 23.976 fps
Color space                                      : YUV
Chroma subsampling                    : 4:2:0
Bit depth                                            : 8 bits
Scan type                                          : Progressive
Language                                         : English
Default                                               : Yes
Forced                                               : No
Color primaries                               : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                            : BT.709

Audio
ID                                                        : 2
Format                                               : AAC
Format/Info                                       : Advanced Audio Codec
Format profile                                  : LC
Codec ID                                          : A_AAC
Duration                                           : 22mn 38s
Channel(s)                                     : 2 channels
Channel positions                        : Front: L R
Sampling rate                                : 48.0 KHz
Compression mode                     : Lossy
Language                                       : English
Default                                            : Yes
Forced                                            : No

 

 

And I want to reduze the size of them, 500/600MB each 22m file is taking a lot of space.

 

I want to reduce 200 or 300MB on each file (let's say they become files of 250 or 300MB), maintaning the same resolution of 720p, the same container MKV and reducing as much as possible the loss of quality in the conversion.

 

 

Is handbrake a good tool for this?

 

The original Format profile is 3.1, if I change to 4.1 would it be worth it? And should I mantain the status of "High"?

 

 

I'm no expert in codecs, far from it and I'm a bit lost on this since the trial and error on files that will take hours to convert is a bit too much time consuming (I'm not being lazy, just realistic that I'm never going to finish this without some point of start where I reduce the trial and error aproach as much as I can).

 

 

Thank you neowin :)

Link to comment
https://www.neowin.net/forum/topic/1205041-reducing-mkv-size/
Share on other sites

Yeah I think Handbrake is your best bet. I wouldn't change the Profile level, all that does is define the spec and set the maximum bitrate. Since you'll be controlling bitrate in Handbrake the achieve the file size you need you don't need to worry about profile level. Changing the profile level is usually only something you have to do to get a file to play in a player that isn't compatible with newer profiles.

I think it's going to be hard to encode your video at 720p and keep it good quality and under 300 MB.

 

Again I'm no expert on codecs and don't want to sound like I'm one (I don't want seem like one and being rude :) ), but you can easily download mkv files of 200/300MB with great 720p quality with the same duration, I'm not trying to reduce to 50 or 100MB files, but to a more reasonable 300MB

This is true, best way is to load your MKV into handbrake and give it a go. I don't think HB offers a target bit-rate option anymore, so you will have to experiment with the RF slider ("quality") to get your desired file-size, and that's going to change between each episode depending on how complicated it is to encode.

 

Again, in HB I don't think you can select a profile setting, but this setting will make little difference to your encoding. Certainly increasing the profile would allow the codec to spend more bits on how it encodes your movie, but only if it needs to and that depends on your source. Levels are described well here http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels if you want to read about them.

 

So in handbrake load your MKV, set the audio tab to pass-through your AAC audio stream (so it doesn't re-encode it), and then set your resolution and frame-rate up to match your source. Use the RF slider to set a quality level (lower number = higher quality) and encode your video and see how it looks at the end :)

 

edit: Yes, some MKVs can be a small file size for 720p, but that's related to the quality of the source material. Dark, low movement, noise-free sources can be encoded to a high quality/low file size no problem. But bright, high movement, noisy source take a higher bit-rate (file-size) to encode to the same quality level. I guess this depends on your source.

This is true, best way is to load your MKV into handbrake and give it a go. I don't think HB offers a target bit-rate option anymore, so you will have to experiment with the RF slider ("quality") to get your desired file-size, and that's going to change between each episode depending on how complicated it is to encode.

 

Again, in HB I don't think you can select a profile setting, but this setting will make little difference to your encoding. Certainly increasing the profile would allow the codec to spend more bits on how it encodes your movie, but only if it needs to and that depends on your source. Levels are described well here http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels if you want to read about them.

 

So in handbrake load your MKV, set the audio tab to pass-through your AAC audio stream (so it doesn't re-encode it), and then set your resolution and frame-rate up to match your source. Use the RF slider to set a quality level (lower number = higher quality) and encode your video and see how it looks at the end :)

 

edit: Yes, some MKVs can be a small file size for 720p, but that's related to the quality of the source material. Dark, low movement, noise-free sources can be encoded to a high quality/low file size no problem. But bright, high movement, noisy source take a higher bit-rate (file-size) to encode to the same quality level. I guess this depends on your source.

 

Many thanks for the help :)

Handbrake is all you need. It has the best encoder and it's simply finding the right options for your kind of media you need. Since you're encoding anime, use the highest profile you can find. It has a lot of optimisations and that should help a lot to keep the size down without losing much quality. And play with the RF slider, target bitrate or filesize is not a good idea.

a lot of people that are suggesting HandBrake haven't tried an easier better program that I have had way drastically more success with. Its a progam called FreeMake and is indeed free. Make sure to decline the extra-ware that comes as an option when installing it. its about 27 megs. Find it from their website or download from filehippo.com

a lot of people that are suggesting HandBrake haven't tried an easier better program that I have had way drastically more success with. Its a progam called FreeMake and is indeed free. Make sure to decline the extra-ware that comes as an option when installing it. its about 27 megs. Find it from their website or download from filehippo.com

 

I dont understand? Handbrake you select the file and save location then press covert what is easier than that! When i instal i don't need to worry about  any extra-ware option to not install.

I dont understand? Handbrake you select the file and save location then press covert what is easier than that! When i instal i don't need to worry about  any extra-ware option to not install.

 

I edit and convert around 20 movies a week. I have tried dozens of different programs, some good, some complicated, some not easy to understand, some too extravagant, some with horrible ui's, and some with bad results either with video or audio problems. Its been probably a year and a half since using handbrake, but the handbrake I used for about 4 months had an extremely horrible UI which would confuse people that didn't quite know what they were doing. And almost 25% of the time, audio synchronization would not be correct with converting flash to avi or MP4. After trying Freemake, I can't imagine why anyone would use anything else. The program is extremely simple with a very clean and logical UI, has close to 98% success rate (from my usage stats) and can give the user extremely advanced settings if they so should desire to fine tune it. Have you tried FreeMake for comparison?

 

added: downloading the current Handbreak version to see if it has changed since last using it.

 

 

Added: after downloading and installing, I actually was mixing up Handbreak with another converting program. This Handbrake isn't bad and I did like it which is why I did use it for a period of time before switching to FreeMake. But after using Freemake, I defiantly still prefer and recommend Freemake over handbreak. All I can suggest is try it and you may too.

  • Like 1

I edit and convert around 20 movies a week. I have tried dozens of different programs, some good, some complicated, some not easy to understand, some too extravagant, some with horrible ui's, and some with bad results either with video or audio problems. Its been probably a year and a half since using handbrake, but the handbrake I used for about 4 months had an extremely horrible UI which would confuse people that didn't quite know what they were doing. And almost 25% of the time, audio synchronization would not be correct with converting flash to avi or MP4. After trying Freemake, I can't imagine why anyone would use anything else. The program is extremely simple with a very clean and logical UI, has close to 98% success rate (from my usage stats) and can give the user extremely advanced settings if they so should desire to fine tune it. Have you tried FreeMake for comparison?

 

added: downloading the current Handbreak version to see if it has changed since last using it.

 

 

Added: after downloading and installing, I actually was mixing up Handbreak with another converting program. This Handbrake isn't bad and I did like it which is why I did use it for a period of time before switching to FreeMake. But after using Freemake, I defiantly still prefer and recommend Freemake over handbreak. All I can suggest is try it and you may too.

 

Dont convert alot of content. Will take a look at this program. What content i do convert atm handbrake works for me. Will look at your Freemake.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I just want to know why the volume control feature in the browser version keeps appearing then disappearing, here today - gone tomorrow. Now it's gone again. Annoying as hell.
    • When you have only lies and blood libels to present, you've lost. And how hard is it for you to look up BBC and AP? You hate Jews, just admit it.
    • This article does not make sense and it’s very evident, the bug wasn’t confirmed to exist, because the application itself runs on editions of Windows which make it impossible to run Hyper-V VMs on, “Basically, Claude Desktop on Windows spins up a 1.8GB Hyper-V virtual machine if you use Claude Cowork or agent mode even once.”, suggests the bug is caused by something else otherwise it would only happen to users with the capability of running Hyper-V VMs and that’s only if Hyper-V was enabled which is by default not enabled. The true issue is that the author who reported the bug used the incorrect terminology, it’s actually a container, not a VM that is being started by the way. There were users on macOS reporting the same issue, Hyper-V, doesn’t exist on that platform obviously. Every single user who confirmed the problem in the last week was either using macOS making this issue impossible to be relevant to them, or was a comment talking about WSL, which the author indicated 3 months ago was disabled.
    • “To prevent hallucination issues and keep the database clean, the platform uses a multi-agent verification loop to check code quality.” - This absolutely isn’t happening. ”Before the massive rise of LLMs, which tanked its traffic by about 50% over the last couple of years, Stack Overflow was the go-to website for millions of programmers seeking coding solutions.” - It still is trusted, because the community of users, blocked other users from submitting false and misleading answers generated by AI agents that can be convinced something it generated is actually incorrect even if it’s actually correct. The company itself doesn’t know what it wants to be so it keeps trying and failing to introduce AI features to the platform. This effort will also fail, already submitted one successful poison pill, look forward to generating more.
  • Recent Achievements

    • One Month Later
      Sopa flores earned a badge
      One Month Later
    • First Post
      StaticMatrix earned a badge
      First Post
    • Week One Done
      StaticMatrix earned a badge
      Week One Done
    • Rookie
      lamborghiniv10 went up a rank
      Rookie
    • One Month Later
      pinnclepd earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      524
    2. 2
      PsYcHoKiLLa
      211
    3. 3
      +Edouard
      159
    4. 4
      Steven P.
      98
    5. 5
      ATLien_0
      83
  • Tell a friend

    Love Neowin? Tell a friend!