[FFmpeg-devel] [WIP] DVD reader protocol

Erik Van Grunderbeeck erik at arawix.com
Sun Jan 29 14:21:50 CET 2012


> 7) Streams need to be able to be cleared (or deleted/reset) when a new 
> vob/movie part is encountered.

This btw is another issue you will hit with chapter/vobu changes: a new vobu
can introduce new streams (well, chapters will introduce them, but the are
generated by opening vobu's). 

More often then not these streams in the "new" vobu will be mpeg streams
with the same mpeg stream id's as the stream's in the "old" vobu. Almost
certain with video streams.

Since these new streams are very likely to have different settings, you at
least need to flush all internal cashes (the reference id's for the pictures
for example). The way I had it in the patch was to mark these streams as
invalid, and then on a av_new_stream() do a smart select, deleting them.
This allows the stream to be at the front-end as long as possible, helping
decoder caching of frames (which, in bluray decoding becomes rather
important later (with a bluray lib)).

All in all, the unfortunate news is that its very hard to just do an initial
"get it working" implementation. You sort-of need the whole framework.

E.



More information about the ffmpeg-devel mailing list