How can I change a video container without re-encoding or compressing the file?

3

2

When I ripped my Kill Bill DVD I used handbrake and put it into a single avi. I realize that I didn't get the subtitles, so what I want to do is convert the AVI to MKV and put the subtitles in the mkv. How do I go about doing this without losing any qualityI don't care about compressing or anything ju? I don't care about compressing or anything, just want to change the container.

If handbrake can do it, I'd prefer to use that since I already have it.

GiH

Posted 2009-11-04T20:10:51.287

Reputation: 3 667

Answers

3

MKVtoolnix can help with this. I believe someone else already suggested this package to you in an answer to another question. As a commenter on that answer mentions, it will repackage your AVI with no quality lost.

Basically, you just run the mkvmerge program. Since AVI and SRT files are both supported, you should be able to run this and get a working MKV.

$ mkvmerge -o out.mkv input.avi input.srt

If you run into problems, you'll need to figure out the proper tweaks to the command -- it can do a lot of things, but it can't guess what you want from it. The documentation is a great place to start.

quack quixote

Posted 2009-11-04T20:10:51.287

Reputation: 37 382

i just tested it to make sure... if your SRT file is in sync already, it really is that easy. – quack quixote – 2009-11-04T20:32:17.203

oh really?? i didn't know that program would also convert the avi, i thought it would only merge the subtitles! Thanks, nice to know I only need one software to do this! :-) – GiH – 2009-11-04T22:09:38.100

1WOW, literally too easy! thanks again! I just ended up using the GUI tool anyway – GiH – 2009-11-04T22:25:03.497

technically there's no "conversion", it just strips the AVI container format and repackages the existing streams in an MKV container. – quack quixote – 2009-11-05T03:08:05.650