PDA

View Full Version : MPlayer mapping ID_DVD_TITLE to VTS_... ?


Selur
16th November 2008, 11:07
With mplayer -identify -vo null -ao null -frames 1 dvd://1 -dvd-device "path to VIDEO_TS folder" mplayer gives a bunch of infos:
Playing dvd://1.
ID_DVD_TITLES=21
ID_DVD_TITLE_1_CHAPTERS=20
ID_DVD_TITLE_1_ANGLES=2
ID_DVD_TITLE_2_CHAPTERS=20
ID_DVD_TITLE_2_ANGLES=2
ID_DVD_TITLE_3_CHAPTERS=2
ID_DVD_TITLE_3_ANGLES=1
ID_DVD_TITLE_4_CHAPTERS=2
ID_DVD_TITLE_4_ANGLES=1
ID_DVD_TITLE_5_CHAPTERS=2
ID_DVD_TITLE_5_ANGLES=1
ID_DVD_TITLE_6_CHAPTERS=2
ID_DVD_TITLE_6_ANGLES=1
ID_DVD_TITLE_7_CHAPTERS=2
ID_DVD_TITLE_7_ANGLES=1
ID_DVD_TITLE_8_CHAPTERS=4
ID_DVD_TITLE_8_ANGLES=1
ID_DVD_TITLE_9_CHAPTERS=3
ID_DVD_TITLE_9_ANGLES=1
ID_DVD_TITLE_10_CHAPTERS=2
ID_DVD_TITLE_10_ANGLES=1
ID_DVD_TITLE_11_CHAPTERS=2
ID_DVD_TITLE_11_ANGLES=1
ID_DVD_TITLE_12_CHAPTERS=2
ID_DVD_TITLE_12_ANGLES=1
ID_DVD_TITLE_13_CHAPTERS=2
ID_DVD_TITLE_13_ANGLES=1
ID_DVD_TITLE_14_CHAPTERS=2
ID_DVD_TITLE_14_ANGLES=1
ID_DVD_TITLE_15_CHAPTERS=2
ID_DVD_TITLE_15_ANGLES=1
ID_DVD_TITLE_16_CHAPTERS=2
ID_DVD_TITLE_16_ANGLES=1
ID_DVD_TITLE_17_CHAPTERS=2
ID_DVD_TITLE_17_ANGLES=1
ID_DVD_TITLE_18_CHAPTERS=2
ID_DVD_TITLE_18_ANGLES=1
ID_DVD_TITLE_19_CHAPTERS=2
ID_DVD_TITLE_19_ANGLES=1
ID_DVD_TITLE_20_CHAPTERS=2
ID_DVD_TITLE_20_ANGLES=1
ID_DVD_TITLE_21_CHAPTERS=2
ID_DVD_TITLE_21_ANGLES=1
ID_DVD_TITLE_3_LENGTH=909.400
ID_DVD_TITLE_4_LENGTH=1129.200
ID_DVD_TITLE_5_LENGTH=357.000
ID_DVD_TITLE_14_LENGTH=33.200
ID_DVD_TITLE_15_LENGTH=18.200
ID_DVD_TITLE_18_LENGTH=138.000
ID_DVD_TITLE_20_LENGTH=74.000
ID_DVD_TITLE_21_LENGTH=118.400
ID_DVD_TITLE_1_LENGTH=4854.000
ID_DVD_TITLE_2_LENGTH=4854.000
ID_DVD_TITLE_6_LENGTH=142.600
ID_DVD_TITLE_11_LENGTH=138.000
ID_DVD_TITLE_12_LENGTH=33.400
ID_DVD_TITLE_13_LENGTH=33.200
ID_DVD_TITLE_7_LENGTH=77.200
ID_DVD_TITLE_8_LENGTH=79.600
ID_DVD_TITLE_9_LENGTH=149.400
ID_DVD_TITLE_10_LENGTH=113.000
ID_DVD_TITLE_16_LENGTH=145.000
ID_DVD_TITLE_17_LENGTH=124.880
ID_DVD_TITLE_19_LENGTH=107.600
ID_DVD_DISC_ID=E757EA57C459CC318136A78B7D3EFD3B
There are 21 titles on this DVD.
ID_DVD_CURRENT_TITLE=1
There are 2 angles in this DVD title.
audio stream: 0 format: ac3 (5.1) language: de aid: 128.
ID_AUDIO_ID=128
ID_AID_128_LANG=de
audio stream: 1 format: ac3 (5.1) language: en aid: 129.
ID_AUDIO_ID=129
ID_AID_129_LANG=en
number of audio channels on disk: 2.
subtitle ( sid ): 0 language: de
ID_SUBTITLE_ID=0
ID_SID_0_LANG=de
number of subtitles on disk: 1
CHAPTERS: 00:00:00,00:01:19,00:05:55,00:11:10,00:17:51,00:23:13,00:30:04,00:36:39,00:40:45,00:43:02,
00:46:41,00:49:27,00:53:06,00:56:53,01:00:48,01:03:56,01:06:26,01:08:12,01:11:09,01:12:52,
ID_VIDEO_ID=0
MPEG-PS file format detected.
ID_AUDIO_ID=129
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 9800.0 kbps (1225.0 kbyte/s)
ID_FILENAME=dvd://1
ID_DEMUXER=mpegps
ID_VIDEO_FORMAT=0x10000002
ID_VIDEO_BITRATE=9800000
ID_VIDEO_WIDTH=720
ID_VIDEO_HEIGHT=576
ID_VIDEO_FPS=25.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=4854.00
ID_SEEKABLE=1
ID_CHAPTERS=20
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7778
VO: [null] 720x576 => 1024x576 Mpeg PES
Selected video codec: [mpegpes] vfm: mpegpes (MPEG-PES output (.mpg or DXR3/IVTV/DVB/V4L2 card))
==========================================================================
ID_VIDEO_CODEC=mpegpes
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
ID_AUDIO_ID=128
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
ID_AUDIO_BITRATE=448000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [null] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=a52
Starting playback...
A: 0.1 V: 0.0 A-V: 0.026 ct: 0.000 1/ 1 ??% ??% ??,?% 0 0

Exiting... (End of file) so far so good, but since mplayer sadly does not have any interlaced detection I would like to identify the .vobs that belong to a specific ID_DVD_TITLE_ to be able to analyse the .vobs with mediaInfo. :)

My problem is:

How to get a mapping which .vobs belong to which ID_DVD_TITLE?

Is there an easy way to get this info with mplayer or another tool which could be integrated into a shell script?

Cu Selur

buzzqw
16th November 2008, 11:22
man lsdvd :)

BHH

edit: more hint: check dvd::rip log

Selur
16th November 2008, 12:47
Thanks! Will read&try :)
While at it: Do you know an alternative way for windows? (best solution would be a way to use the same method for windows&linux :))

Cu Selur

Selur
16th November 2008, 14:37
works fine with:
lsdvd -x -t TITLE_BUMBER "PATH TO VIDEO_TS FOLDER"
which gives:
Disc Title: unknown
Title: 01, Length: 01:20:54.000 Chapters: 20, Cells: 42, Audio streams: 02, Subpictures: 01
VTS: 04, TTN: 01, FPS: 25.00, Format: PAL, Aspect ratio: 16/9, Width: 720, Height: 576, DF: Letterbox
Palette: 89680000 108080 eb8080 808080 808080 808080 808080 808080 808080 808080 808080 808080 808080 808080 808080 808080
Number of Angles: 2
Audio: 1, Language: de - Deutsch, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 6, AP: 0, Content: Undefined, Stream id: 0x80
Audio: 2, Language: en - English, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 6, AP: 0, Content: Undefined, Stream id: 0x81
Chapter: 01, Length: 00:01:19.020, Start Cell: 01
Chapter: 02, Length: 00:05:07.370, Start Cell: 02
Chapter: 03, Length: 00:05:49.020, Start Cell: 06
Chapter: 04, Length: 00:07:16.050, Start Cell: 10
Chapter: 05, Length: 00:05:22.130, Start Cell: 13
Chapter: 06, Length: 00:06:50.140, Start Cell: 14
Chapter: 07, Length: 00:06:42.340, Start Cell: 15
Chapter: 08, Length: 00:04:06.050, Start Cell: 19
Chapter: 09, Length: 00:02:16.280, Start Cell: 20
Chapter: 10, Length: 00:03:39.060, Start Cell: 21
Chapter: 11, Length: 00:02:45.160, Start Cell: 22
Chapter: 12, Length: 00:03:39.020, Start Cell: 23
Chapter: 13, Length: 00:03:46.210, Start Cell: 24
Chapter: 14, Length: 00:03:55.080, Start Cell: 25
Chapter: 15, Length: 00:04:06.480, Start Cell: 26
Chapter: 16, Length: 00:03:06.370, Start Cell: 29
Chapter: 17, Length: 00:02:03.660, Start Cell: 33
Chapter: 18, Length: 00:02:56.050, Start Cell: 37
Chapter: 19, Length: 00:01:43.090, Start Cell: 38
Chapter: 20, Length: 00:08:15.510, Start Cell: 39
Cell: 01, Length: 00:01:19.020
Cell: 02, Length: 00:03:58.330
Cell: 03, Length: 00:00:32.360
Cell: 04, Length: 00:00:32.360
Cell: 05, Length: 00:00:04.320
Cell: 06, Length: 00:03:59.020
Cell: 07, Length: 00:00:34.360
Cell: 08, Length: 00:00:34.360
Cell: 09, Length: 00:00:41.280
Cell: 10, Length: 00:00:36.000
Cell: 11, Length: 00:00:36.000
Cell: 12, Length: 00:06:04.050
Cell: 13, Length: 00:05:22.130
Cell: 14, Length: 00:06:50.140
Cell: 15, Length: 00:01:56.120
Cell: 16, Length: 00:00:09.060
Cell: 17, Length: 00:00:09.060
Cell: 18, Length: 00:04:28.100
Cell: 19, Length: 00:04:06.050
Cell: 20, Length: 00:02:16.280
Cell: 21, Length: 00:03:39.060
Cell: 22, Length: 00:02:45.160
Cell: 23, Length: 00:03:39.020
Cell: 24, Length: 00:03:46.210
Cell: 25, Length: 00:03:55.080
Cell: 26, Length: 00:01:00.210
Cell: 27, Length: 00:01:00.210
Cell: 28, Length: 00:02:06.060
Cell: 29, Length: 00:00:53.080
Cell: 30, Length: 00:00:37.140
Cell: 31, Length: 00:00:37.140
Cell: 32, Length: 00:00:59.010
Cell: 33, Length: 00:00:29.170
Cell: 34, Length: 00:00:18.120
Cell: 35, Length: 00:00:18.120
Cell: 36, Length: 00:00:58.250
Cell: 37, Length: 00:02:56.050
Cell: 38, Length: 00:01:43.090
Cell: 39, Length: 00:00:33.100
Cell: 40, Length: 00:00:16.100
Cell: 41, Length: 00:00:16.100
Cell: 42, Length: 00:07:10.210
Subtitle: 01, Language: de - Deutsch, Content: Undefined, Stream id: 0x20,
where "VTS: 04" indicates that the current TITLE exists in the VTS_04 vobs. :)

Now I just need similar way to do this under windows and I got a cross-plattform solution. :)

Cu Selur

buzzqw
16th November 2008, 15:55
on automkv i use vstrip_ifo (check in automkv \exe\vsrip or in autogk folder)

glad to help :)

BHH

Selur
16th November 2008, 15:56
Nice! thanks for the help :)