Join 3,418 readers in helping fund MetaFilter (Hide)

I want to see what kinds of content a DVD has without having to play it.
June 26, 2014 5:48 PM   Subscribe

I'd like a Win7x64-compatible tool that can dump the structure of a DVD: like, a list of the disc's titles/chapters with their durations, each title's native resolution/display aspect radio, details on the audio tracks each title has, etc. If it can report on details like the menu/program hierarchy—what titles/other menus are accessible through each menu, which titles are set for mandatory playback—and where playback goes next when a specific title ends, so much the better, but that's not required.

I would use this information when setting up the final encodes; I want to know going in which parts of the disc have commentary tracks, where the bonus features have different resolutions from the main program, and so forth. Handbrake isn't smart enough for me to be able to say, for example, "if there's a commentary track, always include it in the encode, otherwise just give me the program audio"—so I need to know that ahead of time. (I have a few TV season sets that are just awful about this, where only certain "special" episodes have commentary, and while it's almost always mentioned on the packaging it isn't always obvious which titles on the disc correspond to those episodes.) Right now I'm opening titles one by one in the Handbrake or VLC GUIs to check their format/contents by hand, which gets really tedious really quickly.

I encode out of a pre-ripped VIDEO_TS hierarchy, but if the analysis tool wants ISO or something, I don't mind changing the workflow as long as Handbrake can encode directly from the same format.

A friend suggested lsdvd but I haven't had any luck getting it built in cygwin.

I've also tried MediaInfo and while it gives the kind of information I want, it reports on the individual VOB/IFO/BUP files from the DVD's filesystem. I need the info on a title-by-title basis.

Related question: is there any way to extract/encode the DVD menus themselves in Handbrake?

posted by Lazlo Nibble to Computers & Internet (4 answers total) 2 users marked this as a favorite
Handbrake has a command line version, going to the directory where handbrake is installed and typing:

HandbrakeCLI -t 0 -i D:\
or whatever your DVD drive is will give a large amount of text about the various titles/tracks, including number of audio tracks. The t in the command above stands for title, and selecting 0 tells it to scan all titles.

[19:11:08] scan: scanning title 2
[19:11:08] scan: opening IFO for VTS 2
[19:11:08] scan: duration is 00:09:12 (552100 ms)
[19:11:08] pgc_id: 1, pgn: 1: pgc: 0x101907d00
[19:11:08] scan: vts=2, ttn=1, cells=0->6, blocks=0->178628, 178629 blocks
[19:11:08] scan: checking audio 1
[19:11:08] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=0
[19:11:08] scan: checking subtitle 1
[19:11:08] scan: id=0x20bd, lang=English, 3cc=eng ext=0
[19:11:08] scan: title 3 has 8 chapters
[19:11:08] scan: chap 1 c=0->0, b=0->38540 (38541), 107469 ms
[19:11:08] scan: chap 2 c=1->1, b=38541->71816 (33276), 89400 ms
[19:11:08] scan: chap 3 c=2->2, b=71817->285143 (213327), 476135 ms
[19:11:08] scan: chap 4 c=3->3, b=285144->551954 (266811), 612310 ms
[19:11:08] scan: chap 5 c=4->4, b=551955->608654 (56700), 124436 ms
[19:11:08] scan: chap 6 c=5->5, b=608655->613272 (4618), 11165 ms
[19:11:08] scan: chap 7 c=6->6, b=613273->629610 (16338), 40080 ms
[19:11:08] scan: chap 8 c=7->7, b=629611->629767 (157), 210 ms
[19:11:08] scan: aspect = 1.77778

The above title has only one audio track.

As far as menus, there is no video container format that both uses dvd menus, and has newer video encoding. You might be able to extract the images of the menu, but it wouldn't have any structure.
posted by zabuni at 7:18 PM on June 26 [1 favorite]

Oh, and the same information can be found by opening a DVD in handbrake, clicking on the activity log, and then clicking on Scan log.
posted by zabuni at 7:34 PM on June 26

Whoops, I quoted the wrong area where you would want to look. It's more towards the end, and looks like:

+ title 4:
+ vts 4, ttn 1, cells 0->7 (641231 blocks)
+ duration: 00:24:21
+ size: 720x480, pixel aspect: 32/27, display aspect: 1.78, 23.976 fps
+ autocrop: 0/0/0/0
+ chapters:
+ 1: cells 0->0, 34503 blocks, duration 00:01:30
+ 2: cells 1->1, 38417 blocks, duration 00:01:29
+ 3: cells 2->2, 238693 blocks, duration 00:09:13
+ 4: cells 3->3, 260972 blocks, duration 00:09:39
+ 5: cells 4->4, 47389 blocks, duration 00:01:38
+ 6: cells 5->5, 4762 blocks, duration 00:00:11
+ 7: cells 6->6, 16338 blocks, duration 00:00:40
+ 8: cells 7->7, 157 blocks, duration 00:00:00
+ audio tracks:
+ 1, English (AC3) (2.0 ch) (iso639-2: eng), 48000Hz, 224000bps
+ subtitle tracks:
+ 1, English (iso639-2: eng) (Bitmap)(VOBSUB)
posted by zabuni at 7:45 PM on June 26

Thanks, zabuni. It's not the nicest format but that's easily resolved with a little scripting. And once the info is parsed I'm guessing it'd be possible to use it to automate the encoding process through the command line as well, which would be a complete solution to my problems.

FWIW I asked about ripping the menus because I noticed this past weekend that a menu on one of my DVDs uses an otherwise-unavailable music track as the BGM. So I'd still be interested in learning how (or if) it'd be possible to extract that, whether it's with Handbrake or some other tool.
posted by Lazlo Nibble at 7:21 AM on June 27

« Older The provider of my baby's flat...   |  OK, hive mind. Hoping you can ... Newer »

You are not logged in, either login or create an account to post comments