2009-07-10, 07:36
RockDawg Wrote:I brought this up before the re-write and it still is a problem... Traditional DVD file structure returns incorrect duration time after refreshing the media info. nul7, you said before that it is probably reading teh duration of only one of the .vob files, but is there any way you can make this work correctly?
This is the only thing wrong with Ember, and that's an amazing statement in itself!
Anyway, the only way I know of is using mplayer or mencoder
Code:
mplayer -vo null -ao null -frames 0 -identify "M:/300/Video_TS/VIDEO_TS.IFO"
Which gives output like this, where ID_DVD_TITLE_1_LENGTH or ID_LENGTH are the values we're after
Code:
MPlayer Sherpya-SVN-r28311-4.2.5 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU Q6700 @ 2.66GHz (Family: 6, Model: 15, Step
ping: 11)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Playing M:/300/Video_TS/VIDEO_TS.IFO.
VobSub: Bad magic in IFO header
.IFO detected. Redirecting to dvd://
libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdread: Couldn't find device name.
ID_DVD_TITLES=1
ID_DVD_TITLE_1_CHAPTERS=30
ID_DVD_TITLE_1_ANGLES=1
[b]ID_DVD_TITLE_1_LENGTH=6710.240[/b]
libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VTS_02_0.IFO failed
libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VTS_03_0.IFO failed
libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VTS_04_0.IFO failed
libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VTS_05_0.IFO failed
libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VTS_06_0.IFO failed
libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VTS_07_0.IFO failed
libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VTS_08_0.IFO failed
libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VTS_09_0.IFO failed
ID_DVD_DISC_ID=6E32834FB6CE5CE6E6F4CDD85FA5C9AF
There are 1 titles on this DVD.
ID_DVD_CURRENT_TITLE=1
There are 1 angles in this DVD title.
audio stream: 0 format: ac3 (5.1) language: en aid: 128.
ID_AUDIO_ID=128
ID_AID_128_LANG=en
audio stream: 1 format: ac3 (stereo) language: en aid: 129.
ID_AUDIO_ID=129
ID_AID_129_LANG=en
number of audio channels on disk: 2.
subtitle ( sid ): 0 language: en
ID_SUBTITLE_ID=0
ID_SID_0_LANG=en
subtitle ( sid ): 5 language: en
ID_SUBTITLE_ID=5
ID_SID_5_LANG=en
number of subtitles on disk: 2
CHAPTERS: 00:00:00,00:05:02,00:09:56,00:12:43,00:16:09,00:18:54,00:21:32,00:25:5
6,00:28:03,00:31:54,00:33:39,00:36:15,00:39:05,00:42:20,00:47:15,00:50:35,00:53:
16,00:59:08,01:02:39,01:05:53,01:09:43,01:12:43,01:15:24,01:18:57,01:23:07,01:25
:31,01:30:07,01:34:50,01:39:11,01:44:34,
ID_VIDEO_ID=0
MPEG-PS file format detected.
ID_AUDIO_ID=128
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 7500.0 kbps (937.5 kbyte/s)
ID_FILENAME=M:/300/Video_TS/VIDEO_TS.IFO
ID_DEMUXER=mpegps
ID_VIDEO_FORMAT=0x10000002
ID_VIDEO_BITRATE=7500000
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=6710.24
ID_SEEKABLE=1
ID_CHAPTERS=30
==========================================================================
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
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
ID_AUDIO_BITRATE=384000
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...
Exiting... (End of file)
ID_EXIT=EOF