PDA

View Full Version : matroska & dvdxchap on multiple angle dvds - the timecodes are just not right


xanas3712
23rd August 2007, 00:12
Ok, I'm sure someone here has to know the info I'm looking for.

The problem is that the information dvdxchap is giving me for the chapters isn't correct. I'm trying to parse this chapter information in order to make a script which appropriately breaks up anime episodes I'm encoding for backups (I'd just rather have them as separate files, I've got no issues making them into one big lump). Since over 50% of my dvds are setup in this "one title = all show" fashion this is the only way I know of to extract the info from the dvd.

The way it was supposed to work is I'd give it the expected amount of length to look for, and it'd scan for the corresponding chapters which it'd then supply to mkvmerge so that the file would be finally split into the individual episodes.

I believe this would work, but the problem is that I've noticed that while the chapter info works fine playing from the dvd, it doesn't work at all when playing from the matroska file. It appears that the timecodes are just wrong, and I'm guessing this has something to do with multiple angles. I've been searching google up and down but I can't find anything at all! which was surprising me very much. Either there is some other way to extract this info.. or something.

In any case I'd appreciate any help either in figuring out how I can otherwise (programatically, with a bash script) extract the info I need to split the episodes.

So far I've used mplayer -vf cropdetect -sstep 200 -identify -nosound -vo null > infofile and such type commands to parse mplayer info during the script to get all kinds of other needed info (aids, sids,largest title#,etc) and so I'm really only stuck on this part. Once I've got that working I'll have a script which will effectively backup my anime dvds to x264/matroska.

Please help!
Thanks!

Oh, this may help see what I'm talking about, this is the output of dvdxchap.

The amount the timecodes are off isn't always the same, it seems to increase during the video so I'm sure it's got to be angle related or something. I noticed this because in kaffeine when I play this video it will tell me that I'm 2 minutes into the video at the very start. Also while the timecode for chapter3 is 1:59 into the video in the mkv the same location is only 1 minute in (audio doesn't sound THAT distorted :P )

CHAPTER01=00:00:00.000
CHAPTER01NAME=Chapter 01
CHAPTER02=00:00:01.500
CHAPTER02NAME=Chapter 02
CHAPTER03=00:01:59.832
CHAPTER03NAME=Chapter 03
CHAPTER04=00:05:00.498
CHAPTER04NAME=Chapter 04
CHAPTER05=00:11:08.063
CHAPTER05NAME=Chapter 05
CHAPTER06=00:16:37.496
CHAPTER06NAME=Chapter 06
CHAPTER07=00:20:52.996
CHAPTER07NAME=Chapter 07
CHAPTER08=00:24:20.796
CHAPTER08NAME=Chapter 08
CHAPTER09=00:27:20.730
CHAPTER09NAME=Chapter 09
CHAPTER10=00:27:50.796
CHAPTER10NAME=Chapter 10
CHAPTER11=00:32:44.196
CHAPTER11NAME=Chapter 11
CHAPTER12=00:35:46.064
CHAPTER12NAME=Chapter 12
CHAPTER13=00:39:30.132
CHAPTER13NAME=Chapter 13
CHAPTER14=00:43:27.499
CHAPTER14NAME=Chapter 14
CHAPTER15=00:48:19.466
CHAPTER15NAME=Chapter 15
CHAPTER16=00:53:37.033
CHAPTER16NAME=Chapter 16
CHAPTER17=00:56:36.767
CHAPTER17NAME=Chapter 17
CHAPTER18=00:57:06.367
CHAPTER18NAME=Chapter 18
CHAPTER19=00:58:06.035
CHAPTER19NAME=Chapter 19
CHAPTER20=01:01:08.235
CHAPTER20NAME=Chapter 20
CHAPTER21=01:05:46.636
CHAPTER21NAME=Chapter 21
CHAPTER22=01:09:57.403
CHAPTER22NAME=Chapter 22
CHAPTER23=01:15:16.736
CHAPTER23NAME=Chapter 23
CHAPTER24=01:20:57.936
CHAPTER24NAME=Chapter 24
CHAPTER25=01:23:58.068
CHAPTER25NAME=Chapter 25
CHAPTER26=01:24:28.134
CHAPTER26NAME=Chapter 26
CHAPTER27=01:28:35.934
CHAPTER27NAME=Chapter 27
CHAPTER28=01:31:38.600
CHAPTER28NAME=Chapter 28
CHAPTER29=01:36:12.801
CHAPTER29NAME=Chapter 29
CHAPTER30=01:40:18.568
CHAPTER30NAME=Chapter 30
CHAPTER31=01:45:18.968
CHAPTER31NAME=Chapter 31
CHAPTER32=01:49:54.902
CHAPTER32NAME=Chapter 32
CHAPTER33=01:52:55.636
CHAPTER33NAME=Chapter 33
CHAPTER34=01:53:25.768
CHAPTER34NAME=Chapter 34
CHAPTER35=01:57:37.168
CHAPTER35NAME=Chapter 35
CHAPTER36=02:00:39.036
CHAPTER36NAME=Chapter 36
CHAPTER37=02:05:27.837
CHAPTER37NAME=Chapter 37
CHAPTER38=02:09:47.937
CHAPTER38NAME=Chapter 38
CHAPTER39=02:14:33.904
CHAPTER39NAME=Chapter 39
CHAPTER40=02:18:51.537
CHAPTER40NAME=Chapter 40
CHAPTER41=02:21:51.869
CHAPTER41NAME=Chapter 41
CHAPTER42=02:22:20.869
CHAPTER42NAME=Chapter 42
CHAPTER43=02:24:48.403
CHAPTER43NAME=Chapter 43
CHAPTER44=02:27:50.203
CHAPTER44NAME=Chapter 44
CHAPTER45=02:31:52.203
CHAPTER45NAME=Chapter 45
CHAPTER46=02:36:11.336
CHAPTER46NAME=Chapter 46
CHAPTER47=02:41:37.103
CHAPTER47NAME=Chapter 47
CHAPTER48=02:46:52.803
CHAPTER48NAME=Chapter 48
CHAPTER49=02:49:53.203
CHAPTER49NAME=Chapter 49
CHAPTER50=02:50:23.269
CHAPTER50NAME=Chapter 50
CHAPTER51=02:50:33.269
CHAPTER51NAME=Chapter 51
CHAPTER52=02:50:33.769
CHAPTER52NAME=Chapter 52
CHAPTER53=02:50:34.269
CHAPTER53NAME=Chapter 53

lol, I literally just posted this and google already has this as the top search when I look for "dvdxchap angles"
Other results are also from my little script on gentoo forums. I guess there aren't a lot using this utility or having problems with it?

xanas3712
23rd August 2007, 04:26
Ok, I think I can figure this out with the lsdvd -d output (which gives the cell times).. it basically shows me what was wrong with my prior thinking.

But man scripting a fix to parse this and subtract the timecodes is a huge pain!