[Live-devel] Some questions about the LiveMedia sourcecode.

Ross Finlayson finlayson at live.com
Fri Apr 8 11:34:17 PDT 2005


>           I have read the souce code of our LiveMedia for a few days. I 
> found that
>the live median can not support MPEG-4 Program Stream directly. Though it 
>can support
>MPEG, H.263+ or JPEG video, and several audio codecs separately.
>       I mean that I can use it for the Program MPEG1or2 Stream, but I can 
> not use it
>for MPEG-4 program Stream. I only found the MPEG-4 video element 
>processing part in
>the code. I think if I want to deal with the MPEG-4 Program Stream,I have 
>to modify some parts of the code.
>       Can some one can give me some suggestions. If I am wrong, please 
> let me know and
>give me some advice on how to implement it . Your advice  will be appreciated.

Unfortunately I'm not familiar with the use of MPEG-4 data within MPEG 
Program Streams.  (Traditionally, Program Streams are used only for MPEG-1 
or 2 data, and MPEG-4 data is stored within MPEG-4 format files (which we 
currently do not support).)

However, if you want to look at supporting MPEG-4 data within Program 
Streams, then the place to look would be the setting (and testing) of the 
"fMPEGversion" field in "MPEG1or2Demux.cpp".

You will also need to change the way you process the Elementary Streams 
that you extract from the "MPEG1or2Demux".  In particular, the Video 
Elementary Stream will need to be passed through a "MPEG4VideoStreamFramer" 
(rather than a "MPEG1or2VideoStreamFramer").  The Audio Elementary Stream 
will need to be passed through a "MPEG4AudioStreamFramer" (a class that 
currently does not exist).


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



More information about the live-devel mailing list