[FFmpeg-devel] [WIP] DVD reader protocol

Stefano Sabatini stefasab at gmail.com
Mon Jan 23 22:48:22 CET 2012


In data Monday 2012-01-23 12:20:49 +0100, Erik Van Grunderbeeck ha scritto:
> I see the follow -up on patches still takes time, I see I submitted this one
> 3 years ago :)

Great to find you still around :).
 
> There's a number of other changes that need to happen on this patch. I
> haven't worked on it for quite some time, but could if there's interest (and
> I find the time)
> 
> I did a quick read on the list archive on responses. In general:
> 
> 1) Yes, pts/dts can change and jump anywhere in a vob. It doesn't need to
> start from 0 neither, and interleaved angle changes (and alternative scenes)
> mean that you have to use the IFO file to read a DVD. Libdvd handles that.
> 
> 2) The code in ffplay/ffmpeg needs to handle new streams being found (and
> possibly decoded). Example: subtitles in DVD often start several
> seconds/minutes into the movie, and if not found by the dedect routines will
> now never decode. Same with audio.
> 
> 3) In general, find_stream_info needs to be turned to a 0 buffer. Otherwise
> resyncing with libdvd becomes a major headache.
> 
> 4) Stream resets need to be handled. Vob files often concatenate several
> audio formats (aac 2 channel jumping to aac 5 channel  for example), usually
> in the preview section of a DVD (the "preview" features on most DVD's). Some
> with video (going from ntsc <-> pal and back)
> 
> 5) a/v sync needs to be more robust. Usually because audio can be delayed
> several packets in a vob file.
> 
> 6) Things need to be signaled back to the dvd : wait and delay modes, menu
> selections, etc. libdvd handles this, but the app needs to tell it with to
> do.
> 
> 7) Streams need to be able to be cleared (or deleted/reset) when a new
> vob/movie part is encountered.
> 

> If someone wants to work on part of this, I can do some (or advise on how)
> of it, but I don't have loads of times anymore these days. 

That would be highly appreciated, first of all I'd ask you to comment
on your framework patches which I'm reattaching for convenience (and
which clearly need to be cleaned up and rebased against the latest
codebase), togheter with the dvdproto patch with a few more fixes
(mostly cosmetics).

Current patch alone allows to play the first chapter in the DVD, then
ffplay starts to suck all system memory so I need to kill it.

Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-lavf-add-DVD-reader-protocol.patch
Type: text/x-diff
Size: 28931 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120123/c01784c0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvd0-stream-select.patch
Type: text/x-diff
Size: 1143 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120123/c01784c0/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvd1-avio-h-protocol.patch
Type: text/x-diff
Size: 786 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120123/c01784c0/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvd2-avio-buf.patch
Type: text/x-diff
Size: 449 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120123/c01784c0/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvd3-utils-seek.patch
Type: text/x-diff
Size: 5379 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120123/c01784c0/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvd4-avio-c-protocol.patch
Type: text/x-diff
Size: 1877 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120123/c01784c0/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvd5-misc-stream-change.patch
Type: text/x-diff
Size: 2315 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120123/c01784c0/attachment-0006.bin>


More information about the ffmpeg-devel mailing list