Talk:HOWTO DVD to Matroska and H.264

From Gentoo Linux Wiki

Jump to: navigation, search

Contents

[edit] Other usefull tools for the job

If you plan to rip to mkv format, you might want to check out ogmrip. This little babe does everything of the above.
It might be a good idea to copy the dvd contents on your harddrive thou, it always gains you some speed. One set-back maybe that ogmrip is missing somewhat of a queue-way of ripping. With this I mean you have to do each title seperatly. But not to worry, shrip (-> command line version) is being developed as I type, so ogmrip/shrip looks like a great solution to me :)
Po0ky 07:30, 25 January 2006 (GMT)

[edit] Subtitles Synchronization

Hello, thanx for this nice guide! I tried it uppon one of my DVDs but I run in a "small" problem. All subtitles I ripped were out of sync. I didn't make an excessive search on the type of de-synchronization but at first look it seems that subtitles are just delayed by some seconds. Any ideas?

[edit] Possible Solution

If your desynchronization is constant, ie: they're all 5 seconds slow or something, Try

mplayer -osdlevel 3 yourfile.264 

and see where the voice actually starts during playback, then look in the appropriate vobsub.idx file and see the stated timestamp for it to appear, calculate the difference and put it in the "delay" field ( if you're using mmg ) for that subtitle ( but in my experience, if you have more than 1 title, they'll all be equally out-of-sync ) ie: if your subtitles are 5 seconds late, put -5000 in the delay field to calibrate. --TheJackal 21:22, 1 January 2008 (UTC)

[edit] Cleaning up

If there's no objections, I'd like to move the specific transocding howto stuff out of here and into a separate section. Generally speaking, you want to focus more on the aspects and features of creating a Matroska file itself and what the container can do. Ultimately, it will take an encoded file of many formats, so it's more relevant what they can do with the multimedia files rather than how to get them there. Plus, there are plenty of places to put howto ripping guides.

Secondly, I would remove the variables in the examples. While they would help for someone who is writing a script, the idea is to teach the basics and not try to throw in another concept (shell scripting) at the same time. It will confuse newcomers who will get the idea that the two are not inseperable. In short, keep it as simple as possible, explaining and discussing the commands and their options, and don't vary too much from that. :)

I'll change it around slowly later if no one disagrees.

SDibb 04:25, 7 November 2007 (UTC)

I object, soley on the grounds of clarity, often in examples arbitrary predefined values are excessively utilized and its unclear as to whether they are 'reccommended' values, magic system internals, or generic undocumented values which the author discovered by poking around. I personally find the variable substitution refreshing , but then again, I am a programmer/shell scripter --TheJackal 21:36, 1 January 2008 (UTC)

And a note to self to add info about aspect ratios, since it's a nice workaround for buggy encoders (mencoder) SDibb

[edit] Minor note on xine and totem

On May 1, 2008 I personally tested totem-2.20.3 (stable from GNOME) with the file Matrix.Reloaded.Trailer-640x346-XviD-1.0beta2-HE_AAC_subtitled.mkv and it works. --- JamesB192 (is an idiot, but what else is new and I censor my own stupidity)

[edit] Howto automation by bash scripting [ DVDAssimilator3000 ]

This guide is the best guide imho for encoding DVDs. I've been using it for a couple of years and haven't find any automated tool that can do such a great job.

So I took the liberty to write a bash script which automates the process described ih the howto.

You can find it here: http://www.andmarios.com/devLog/files/DVDAssimilator3000/DVDAssimilator3000-CLI-Edition-1.2-beta.tar.gz

Just untar it and run it. It will ask you six simple questions:

  1. Where your DVD rests. It can be a ripped DVD folder, an ISO/IMG DVD file or a path to a mounted DVD disk.
  2. Where it should create a temp directory to work in.
  3. Which subtitles you want it to keep.
  4. Which audio streams you want it to keep.
  5. If you wanna override the default bitrate [1800Kbps].
  6. The title of your movie.

Then it will proceed with the process described in the howto, even chapters will get saved.

It's dependencies are the dependencies of this howto:

  • mplayer with x264 support
  • mkvtoolnix
  • cdrtools or libcdio (for working with subtitles of DVD images [iso/img])
  • ogmtools (optional, for chapter extraction)
  • transcode
  • subtitleripper

It is tested with Gentoo x86 and amd64 and Sabayon amd64.

I haven't tested it with NTSC DVDs as in Europe we use PAL so I'm not sure if it work correctly with them (I'm afraid for audio synchronization issues).

A final bit of information: The only place where I differed from the guide is the mencoder settings for the 2nd pass. My settings are towards quality than speed (relative to the howto) as today processors are fast enough. If you want though open the script and near the top there are some variables you can change. Set "secondPass" to fast for the script to use the mencoder settings described in this howto!

Thanx again for this great howto!

--mrsaccess 11:00, 22 May 2008 (UTC)

Personal tools