Opened 11 years ago

Closed 8 months ago

#3280 closed enhancement (fixed)

Add dvdnav support

Reported by: hxuanyu Owned by:
Priority: wish Component: undetermined
Version: git-master Keywords: dvdnav
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I'm running ffprobe on an ISO file which contains 2 titles (one for 59 seconds, and another 1 min). But ffprobe shows a duration of 1 min, which is the duration of only one title.

the ISO file I used is here https://dl.dropboxusercontent.com/u/89678527/2videos.iso

Below is the output of ffprobe

ffprobe version N-58485-ga12b4bd Copyright (c) 2007-2013 the FFmpeg developers

built on Nov 26 2013 22:01:46 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 55.100 / 52. 55.100
libavcodec 55. 44.100 / 55. 44.100
libavformat 55. 21.102 / 55. 21.102
libavdevice 55. 5.101 / 55. 5.101
libavfilter 3. 91.100 / 3. 91.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100

Input #0, mpeg, from '2videos.iso':

Duration: 00:01:00.06, start: 0.033367, bitrate: 9423 kb/s

Stream #0:0[0x1bf]: Data: dvd_nav_packet
Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 96 kb/s
Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x480 [SAR 8:9 DAR 4:3], max. 9000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc

Unsupported codec with id 1145979222 for input stream 0

Change History (6)

comment:1 by Carl Eugen Hoyos, 11 years ago

Keywords: dvdnav added
Priority: normalwish
Status: newopen
Summary: ffprobe shows incorrect duration for an ISO fileAdd dvdnav support
Type: defectenhancement
Version: unspecifiedgit-master

FFmpeg does not currently support reading DVDs, a patch adding dvdnav support was discussed:
http://ffmpeg.org/pipermail/ffmpeg-devel/2009-July/069403.html
http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/93749

Last edited 11 years ago by Carl Eugen Hoyos (previous) (diff)

in reply to:  1 ; comment:2 by hxuanyu, 11 years ago

Replying to cehoyos:

FFmpeg does not currently support reading DVDs, a patch adding dvdnav support was discussed:
http://ffmpeg.org/pipermail/ffmpeg-devel/2009-July/069403.html

But it's only someone's proposal and code hasn't been merged into ffmpeg yet. So I think I need to wait until it becomes formal in ffmpeg

in reply to:  2 ; comment:3 by Carl Eugen Hoyos, 11 years ago

Replying to hxuanyu:

Replying to cehoyos:

FFmpeg does not currently support reading DVDs, a patch adding dvdnav support was discussed:
http://ffmpeg.org/pipermail/ffmpeg-devel/2009-July/069403.html

But it's only someone's proposal and code hasn't been merged into ffmpeg yet. So I think I need to wait until it becomes formal in ffmpeg

Yes, this is a correct analysis of the situation.

in reply to:  3 ; comment:4 by hxuanyu, 11 years ago

Replying to cehoyos:

Replying to hxuanyu:

Replying to cehoyos:

FFmpeg does not currently support reading DVDs, a patch adding dvdnav support was discussed:
http://ffmpeg.org/pipermail/ffmpeg-devel/2009-July/069403.html

But it's only someone's proposal and code hasn't been merged into ffmpeg yet. So I think I need to wait until it becomes formal in ffmpeg

Yes, this is a correct analysis of the situation.

Hi Cehoyos, here I have another question.

ffplay can play this 2 titles' ISO. And when I click in the middle of the player window,
it can successfully jump to the start of 2nd title (2 titles have a same duration).

That means when the player dialog is inited, ffplay knows the whole duration, or the seek is not base on the time, but on file byte position?

==========================================================
I guess seek is not based on time position, because in fact second title starts when I click on about 70% of the whole window width. If it's based on time, 2nd title should start when I click right in the middle of the window

https://dl.dropboxusercontent.com/u/89678527/Untitled.png

Last edited 11 years ago by hxuanyu (previous) (diff)

in reply to:  4 comment:5 by Carl Eugen Hoyos, 11 years ago

Replying to hxuanyu:

here I have another question.

Please post all questions to the user mailing list, this is not a support forum.

But please understand that FFmpeg does not support reading DVDs, if you cannot work on the mentioned patch, the usual work-around is to use MPlayer:
$ mplayer -dumpstream dvd://
or
$ mplayer -dumpstream dvdnav://

comment:6 by Marth64, 8 months ago

Resolution: fixed
Status: openclosed

dvdvideo demuxer powered by dvdnav is merged now.

Note: See TracTickets for help on using tickets.