shshankjain / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

webm splitter should be detect network vs. local source #233

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Right now the webm splitter filter (DirectShow) pessimistically assumes that 
the input is a network source, so it does not attempt to use the Cues element 
or otherwise preload clusters.  

But this is too conservative.  The splitter can detect whether the entire 
stream is available by calling the Length method of the IMkvSource object.  If 
available >= total, then this is either a local file source, or the entire 
network source has been downloaded to the network cache.  In this case the 
splitter filter should just behave the same as the source filter.

At a minimum, the splitter should check whether Unparsed returns 0; if so, then 
it is safe to behave as a pure source filter.  That is, you can preload 
clusters and attempt to use the cues element for searching.

Original issue reported on code.google.com by matthewj...@google.com on 16 Nov 2010 at 1:30

GoogleCodeExporter commented 9 years ago

Original comment by matthewj...@google.com on 16 Feb 2012 at 9:56