Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using Handbrake to rip a DVD to a MKV. The filesize for a ~5GB .VOB rip is a nearly 2GB .MKV.

Is there a program in Ubuntu that shrinks MKV's? I looked around and found a lot of Windows programs, but none that work well in Wine. I was thinking about shrinking it to a 300-400MB file (Like most MKV rips), but I don't know how to shrink it in Ubuntu. Any ideas?

share|improve this question
    
Most mkv rips actually are usually around 700 MB (as per the new "Scene" guidelines) or 1.2 GB. Just saying. –  Thomas Boxley Mar 23 '12 at 23:13
    
Got ya. Ugh, I just need a way to get out of this 2GB range for the rip. Any ideas? –  Ryan McClure Mar 23 '12 at 23:15
    
Lower the bitrate. Depending on your video duration you can calculate it by hand to fit 300 MB –  zetah Mar 23 '12 at 23:17
    
I'll give it a shot and let you know if it works. (So I know for reference, could you tell me what bitrate actually entitles? I'm a bit of a noob at that stuff :P) –  Ryan McClure Mar 23 '12 at 23:20
    
I couldn't know when I don't know the duration. Better search for bitrate calculator, so you can do it yourself in future ^_^ –  zetah Mar 23 '12 at 23:22

2 Answers 2

up vote 4 down vote accepted

Use this:

image

so for your 400MB example, if the duration is 1 hour (3600 seconds):

x = 400MB*8192/3600 = 910 Kbps

Then you subtract 128Kbs for standard 128 Kbps audio (MP3/OGG/AAC whatever) and you are left with ~800 Kbps for your (hopefully x264) video

share|improve this answer
    
Excellent answer! Did exactly what I needed! Thank you so incredibly much!! –  Ryan McClure Mar 24 '12 at 2:02
    
you're welcome :) –  zetah Mar 24 '12 at 2:06
    
Broken image in this answer, please update. –  Yanick Rochon Sep 1 at 0:50

I have been using this MKVToolNix and it is great for dealing with .mkv files.

share|improve this answer
    
Would you care to ellaborate? How would you use this package? –  Yanick Rochon Sep 1 at 0:49
    
So it has been a while since I was using MKVToolNix and I took another look at it now. Apparently I made a mistake to post my answer below this question since it looks that MKVToolNix really can't help you with reducing the size of .mkv files. I was using it for other purposes and mistakenly thought that it could shrink .mkv files as well. It is probably best if I delete the answer. –  eMKi Sep 4 at 10:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.