[Live-devel] Two questions

Ross Finlayson finlayson at live.com
Tue Dec 16 17:28:51 PST 2003


>I am streaming mpeg-4 to Quicktime from my embedded system in which I 
>ported the Live server to.

Bill,

Are you running "testMPEG4VideoStreamer" (or "testOnDemandRTSPServer", 
streaming MPEG-4 video) 'as is', or are you running a modified version of 
one of these applications?  If you are running your own custom code, please 
note that, in general, I can provide only limited support on this mailing 
list 'for free'.  For help with custom code, please consider paying for 
support from LIVE.COM.  If you are interested in this, please let me know 
(by separate email).

>  The problem is that the video seems to go in bursts. About every couple 
> seconds. it will read a block of about 140-150Kbytes (fMaxSize)

This is normal, and OK.  To improve the efficiency of parsing (and ensure 
that very large MPEG structures get parsed OK), the "StreamParser" code 
reads from its source in large chunks (defined by BANK_SIZE in 
"StreamParser.hh").

You should probably not change the "BANK_SIZE" value.  However, you should 
make sure that your code does not block for an excessive period of time 
when reading each chunk of  data.  I.e., make sure that data from your 
input device is buffered (e.g., in a pipe, if your code just reads from 
'stdin').

>Also, about every 20sec I get a block of several 
>"MPEG4VideoStreamParser::parse() EXCEPTION" messages. Is this normal? What 
>does that mean? It doesn't seem related to the above issue.

No, this is perfectly normal.  The "StreamParser" code uses C++ language 
exceptions to handle the case where it runs out of input data (and so needs 
to read more).  These 'exceptions' are not 'errors'.


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list