[Live-devel] Streaming AVI files

Ross Finlayson finlayson at live.com
Fri Mar 4 22:10:14 PST 2005

>1) How can i stream AVI files? Is there any sample program to stream AVI 

No, not yet.

>If i have to create my own class can you please guide me? Basically i
>want to use the testOnDemandRTSPServer to stream AVI files also.

If you're *really* interested in doing this, you could look at how MPEG 
Program Stream files are demultiplexed and streamed on demand.  Be warned, 
though, that this code is non-trivial.  In particular, you would need AVI 
equivalents to each of the following classes:
- MPEG1or2Demux
- MPEG1or2FileServerDemux.hh
- MPEG1or2DemuxedElementaryStream
- MPEG1or2DemuxedServerMediaSubsession

>2) As Quick Time player is not able to play the MP3 files is ther any
>other way to stream the MP3 files? like converting the format to WAV
>and send it?

You could do this, but it would require writing a new filter class that 
decoded the MP3 data into raw PCM before streaming it.  Of course, this 
would increase the network bandwidth considerable.  So, needless to say, I 
don't recommend this.  Instead, just use another media player that's not 
broken (e.g., VLC).

>3) I am in need of a simple RTSP client with GUI which can support
>different media formats and also should be able to play the streams
>sent using RTSP/RTP with LIVE.COM libraries. Is any of the sample
>programs can help in this? I checked the VLC player which is
>supporting live.com libraries. But the code is too huge. I need a
>simple player.

VLC is the media player that I recommend.  If you feel its code is too 
large, then you can remove functionality that you don't need.

	Ross Finlayson

More information about the live-devel mailing list