[Live-devel] A question about the streamparser class!

Ross Finlayson finlayson at live.com
Wed Apr 20 20:47:29 PDT 2005


>     Who can tell me why 150000 is selected here? In my system , memory 
> resource is very
>limited. I can not offer such a big memory just for two buffers scheme. 
>And can anyone tell me
>the minimum size for MPEG4 video streams.

You can probably reduce BANK_SIZE, but it should be at least as large as 
the largest possible MPEG-4 video frame that you expect to see.

A reminder, however: If your application's input source is *discrete* 
MPEG-4 video frames (i.e., each time you read from the input source, you 
get exactly one MPEG-4 frame), then you can use a 
"MPEG4VideoStreamDiscreteFramer" instead of a 
"MPEG4VideoStreamFramer".  The implementation of 
"MPEG4VideoStreamDiscreteFramer" does *not* use a "StreamParser", and uses 
a lot less memory than "MPEG4VideoStreamFramer".


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



More information about the live-devel mailing list