1

For a while there I found videos that are 42 minutes long, and are great quality. The resolution is 624x352 and when going full screen they still look pretty great.

I recently came across an episode of House on my friends computer, and it was 94.6 MB! Same resolution, same quality, same length – but I just don't know how it was done. I check out the media info on my media player classic and it tells me it was encoded with MKVmerge, however I tried it and I couldn't really get the point of it.

I know there is a tonne to learn about video encoding, and I'm willing to learn to an extent - but is there anyone that could tell me how to get a 350 MB AVI file down to a 95 MB MKV file without losing any quality?

1 Answer 1

3

The AVI or MKV part isn't important here. AVI and MKV both are just "containers" for video and audio data. What counts is the "codec" inside these containers. The actual video data.

Please read the following for more info: What is a Codec (e.g. DivX?), and how does it differ from a File Format (e.g. MPG)? — it is vital to understand the difference between codecs and containers to grasp the underlying concepts.


The most plausible explanation would be that the 350 MB files use DivX or XviD as encoder, an MPEG-4 Part II codec. These are pretty good, but in terms of quality vs. file-size they are a little inefficient and outdated.

You see, an encoder takes the original video and tries to remove all kinds of redundancy, thereby throwing away information. This is how it reduces file size, but by throwing away information it'll also reduce the visible quality. Various encoders have their own strengths when it comes to deciding what to throw away and how to optimize for human perception, but there's no magic encoder that creates a super tiny file with incredible quality.

The smaller videos you have will probably use x264 as encoder, an h.264 codec. h.264 codecs are much more efficient when it comes to quality vs. file size. They manage to retain quality better at low bit rates and file sizes than most other codecs.


Note however that re-encoing an already encoded file will definitely reduce its file size – which is our first goal –, however it will also drastically reduce its quality. This is called generation loss.

The only way to get small files with good quality is to re-encode the originals — ideally, as a customer, that would mean ripping from Blu-ray discs or direct HDTV signals. So, to repeat, you can't re-encode a 350 MB AVI file (that uses XviD) to a 95 MB MKV file (with x264), without experiencing quality loss. You would need the original "House" Blu-ray disc to do that.

For further reading:

1
  • Aaah i see, That actually explains alot. Thank you!
    – Chud37
    Jun 26, 2012 at 11:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .