[Live-devel] How to control receiving audio/video stream?
Ross Finlayson
finlayson at live.com
Fri Jun 11 09:12:53 PDT 2004
>I write a program to receive audio/video stream.My program can play
>test.mp3 from rtsp server. In my program file there is a buffer for
>receiving stream.Mp3 stream is only audio stream. Mpeg stream is composed
>of audio and video stream.I need to setup and play 2 subsession to receive
>them. I write program flow chart as follow:
>While (1)
>{
> Get stream to buffer;
> Decode data in buffer
>}
I suggest that you start with the existing "openRTSP" application, because
it already receives audio and video streams from a RTSP server (including
"vobStreamer"), and writes them to a file. Then, you need only replace the
"FileSink"s in this code (in "testProgs/playCommon.cpp") with your own
'sink' (or 'filter'+'sink') that decodes each stream.
Ross Finlayson
LIVE.COM
<http://www.live.com/>
More information about the live-devel
mailing list