Opened 5 years ago

Last modified 5 years ago

#3280 open enhancement

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 (5)

comment:1 follow-up: Changed 5 years ago by cehoyos

  • Keywords dvdnav added
  • Priority changed from normal to wish
  • Status changed from new to open
  • Summary changed from ffprobe shows incorrect duration for an ISO file to Add dvdnav support
  • Type changed from defect to enhancement
  • Version changed from unspecified to git-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 5 years ago by cehoyos (previous) (diff)

comment:2 in reply to: ↑ 1 ; follow-up: Changed 5 years ago by 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

comment:3 in reply to: ↑ 2 ; follow-up: Changed 5 years ago by 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.

comment:4 in reply to: ↑ 3 ; follow-up: Changed 5 years ago by hxuanyu

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 5 years ago by hxuanyu (previous) (diff)

comment:5 in reply to: ↑ 4 Changed 5 years ago by cehoyos

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://

Note: See TracTickets for help on using tickets.