Multiple Titles in CLI

Discussion of the HandBrake command line interface (CLI)
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
PyrO_PrOf
Posts: 3
Joined: Mon Sep 29, 2008 7:52 pm

Multiple Titles in CLI

Post by PyrO_PrOf » Mon Sep 29, 2008 8:10 pm

Hey Folks,

I have searched high and low in this forums (and others) and still cant seem to find an answer to this. I have ripped a DVD of FireFly to my HardDrive, which presents itself as a series of .VOB files When I use:

Code: Select all

 -t 0
I get:

Code: Select all

21:04:25] hb_init: checking cpu count
[21:04:25] hb_init: starting libhb thread
[21:04:25] thread b0081000 started ("libhb")
HandBrake 0.9.2 (2008021900) - http://handbrake.m0k.org/
2 CPUs detected
Opening /Volumes/My Passport/FIREFLY_DISC2 Main Feature/...
[21:04:25] hb_scan: path=/Volumes/My Passport/FIREFLY_DISC2 Main Feature/, title_index=0
[21:04:25] thread b0103000 started ("scan")
[21:04:25] scan: trying to open with libdvdread
[21:04:25] scan: DVD has 4 title(s)
[21:04:25] scan: scanning title 1
[21:04:25] scan: opening IFO for VTS 1
[21:04:25] pgc_id: 1, pgn: 1: pgc: 0x8014a0
[21:04:25] scan: vts=1, ttn=1, cells=0->11, blocks=0->924848, 924849 blocks
[21:04:25] scan: duration is 00:42:13 (2533280 ms)
[21:04:25] scan: checking audio 1
[21:04:25] scan: id=80bd, lang=English (AC3), 3cc=eng
[21:04:25] scan: checking audio 2
[21:04:25] scan: id=81bd, lang=English (AC3), 3cc=eng
[21:04:25] scan: checking subtitle 1
[21:04:25] scan: id=20bd, lang=English, 3cc=eng
[21:04:25] scan: checking subtitle 2
[21:04:25] scan: id=21bd, lang=English, 3cc=eng
[21:04:25] scan: title 1 has 12 chapters
[21:04:25] scan: chap 1 c=0->0, b=0->43709 (43710), 128256 ms
[21:04:25] scan: chap 2 c=1->1, b=43710->62198 (18489), 50413 ms
[21:04:25] scan: chap 3 c=2->2, b=62199->131465 (69267), 203515 ms
[21:04:25] scan: chap 4 c=3->3, b=131466->219086 (87621), 238761 ms
[21:04:25] scan: chap 5 c=4->4, b=219087->330866 (111780), 285547 ms
[21:04:25] scan: chap 6 c=5->5, b=330867->397451 (66585), 185442 ms
[21:04:25] scan: chap 7 c=6->6, b=397452->522454 (125003), 316634 ms
[21:04:25] scan: chap 8 c=7->7, b=522455->646419 (123965), 345688 ms
[21:04:25] scan: chap 9 c=8->8, b=646420->742816 (96397), 280558 ms
[21:04:25] scan: chap 10 c=9->9, b=742817->848011 (105195), 262525 ms
[21:04:25] scan: chap 11 c=10->10, b=848012->918254 (70243), 198737 ms
[21:04:25] scan: chap 12 c=11->11, b=918255->924848 (6594), 37198 ms
[21:04:25] scan: aspect = 16
[21:04:25] scan: scanning title 2
[21:04:25] scan: opening IFO for VTS 2
ERROR: scan: ifoOpen failed[21:04:25] scan: scanning title 3
[21:04:25] scan: opening IFO for VTS 3
ERROR: scan: ifoOpen failed[21:04:25] scan: scanning title 4
[21:04:25] scan: opening IFO for VTS 4
ERROR: scan: ifoOpen failed[21:04:25] scan: decoding previews for title 1
Scanning title 1 of 4...
[21:04:25] scan: preview 1
[21:04:25] scan: AC3, rate=48000Hz, bitrate=192000
[21:04:25] scan: AC3, rate=48000Hz, bitrate=192000
[21:04:25] scan: preview 2
[21:04:25] scan: preview 3
Scanning title 1 of 4...
[21:04:26] scan: preview 4
[21:04:26] scan: preview 5
Scanning title 1 of 4...
[21:04:26] scan: preview 6
[21:04:26] scan: preview 7
[21:04:26] scan: preview 8
Scanning title 1 of 4...
[21:04:26] scan: preview 9
[21:04:26] scan: preview 10
[21:04:26] scan: 720x576, 25.000 fps, autocrop = 0/0/0/0
[21:04:26] scan: title (0) job->width:720, job->height:400
[21:04:26] thread b0103000 exited ("scan")
Scanning title 1 of 4...
[21:04:26] thread b0103000 joined ("scan")
[21:04:26] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 1, ttn 1, cells 0->11 (924849 blocks)
  + duration: 00:42:13
  + size: 720x576, aspect: 1.78, 25.000 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 43710 blocks, duration 00:02:08
    + 2: cells 1->1, 18489 blocks, duration 00:00:50
    + 3: cells 2->2, 69267 blocks, duration 00:03:24
    + 4: cells 3->3, 87621 blocks, duration 00:03:59
    + 5: cells 4->4, 111780 blocks, duration 00:04:46
    + 6: cells 5->5, 66585 blocks, duration 00:03:05
    + 7: cells 6->6, 125003 blocks, duration 00:05:17
    + 8: cells 7->7, 123965 blocks, duration 00:05:46
    + 9: cells 8->8, 96397 blocks, duration 00:04:41
    + 10: cells 9->9, 105195 blocks, duration 00:04:23
    + 11: cells 10->10, 70243 blocks, duration 00:03:19
    + 12: cells 11->11, 6594 blocks, duration 00:00:37
  + audio tracks:
    + 1, English (AC3) (Dolby Surround), 48000Hz, 192000bps
    + 2, English (AC3) (Dolby Surround), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English (iso639-2: eng)
    + 2, English (iso639-2: eng)
[21:04:27] thread b0081000 exited ("libhb")
[21:04:27] thread b0081000 joined ("libhb")
HandBrake has exited.
stanley-jewhursts-macbook:~ sjewhurst$ 
Which detects that there are 4 titles, all of which are episodes on the DVD. I want to encode each title but when i try to select a title with:

Code: Select all

-t 2
I get this output:

Code: Select all

andBrakeCLI -i /Volumes/My\ Passport/FIREFLY_DISC2\ Main\ Feature/ -t 2 -o FireflyDisc2.mp4 -S 1024 -p -v
[21:05:17] hb_init: checking cpu count
[21:05:17] hb_init: starting libhb thread
[21:05:17] thread b0081000 started ("libhb")
HandBrake 0.9.2 (2008021900) - http://handbrake.m0k.org/
2 CPUs detected
Opening /Volumes/My Passport/FIREFLY_DISC2 Main Feature/...
[21:05:17] hb_scan: path=/Volumes/My Passport/FIREFLY_DISC2 Main Feature/, title_index=2
[21:05:17] thread b0103000 started ("scan")
[21:05:17] scan: trying to open with libdvdread
[21:05:17] scan: DVD has 4 title(s)
[21:05:17] scan: scanning title 2
[21:05:17] scan: opening IFO for VTS 2
ERROR: scan: ifoOpen failed[21:05:17] thread b0103000 exited ("scan")
[21:05:17] thread b0103000 joined ("scan")
[21:05:17] libhb: scan thread found 0 valid title(s)
No title found.
[21:05:17] thread b0081000 exited ("libhb")
[21:05:17] thread b0081000 joined ("libhb")
HandBrake has exited.
Basically I just want to be able to encode each title (which in this case corresponds to an episode) to its own file.

Can Anyone help? The GUI Client also detects all four titles but only allows me to select one. Hopefully I have everything thats required by the rules here, and I cant find anything in the Documentation to help.

Stan

jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: Multiple Titles in CLI

Post by jbrjake » Mon Sep 29, 2008 8:36 pm

Looks to me like whatever tool you used to decrypt the disc did a very poor job. Looks like you tried to grab only the main feature (of a tv show with multiple episodes? why?) and then it didn't even bother to rewrite the IFO file to reflect the changes to the file structure.

PyrO_PrOf
Posts: 3
Joined: Mon Sep 29, 2008 7:52 pm

Re: Multiple Titles in CLI

Post by PyrO_PrOf » Mon Sep 29, 2008 8:51 pm

I used Mac The Ripper....

I'm used to ripping only movies so this is completely new to me.
Should i be ripping the entire disc and then encoding with handbrake?

PyrO_PrOf
Posts: 3
Joined: Mon Sep 29, 2008 7:52 pm

Re: Multiple Titles in CLI

Post by PyrO_PrOf » Mon Sep 29, 2008 9:32 pm

jbrjake wrote:Looks to me like whatever tool you used to decrypt the disc did a very poor job. Looks like you tried to grab only the main feature (of a tv show with multiple episodes? why?) and then it didn't even bother to rewrite the IFO file to reflect the changes to the file structure.
Ripped the whole disc and it works fine now! Thanks so much!!

SnorreSelmer
Posts: 31
Joined: Thu Aug 14, 2008 7:02 pm

Re: Multiple Titles in CLI

Post by SnorreSelmer » Thu Oct 23, 2008 7:12 pm

http://forum.handbrake.fr/viewtopic.php?f=10&t=5070

The script at the bottom here I wrote to do just this (one-stop script that encodes all episodes on several discs).

Post Reply