Good afternoon,
 
It took me the better part of two full working days, but I discovered
the solution. I would like to post the answer in case somebody else gets
stuck with it.
 
I am pulling data from an IP camera, then subclassing MediaSink class to
decode the data from the camera, then passing the data to a dialog which
displays the output and plays the sound chunks. When I try to play both
video and audio, then the video stream gets stuck, I can play the
individual streams perfectly. After meticulously making incremental
changes to discover the issue, I found that when playing audio using the
PortAudio library, it is required to call the PA_WriteStream(...)
function within a separate thread. The only reason the video was getting
stuck is due to some side-effect (unknown) of the way PortAudio writes
to the default sound device which is not compatible with the way in
which I am using live555.
 
To allow for a bit more clarity, I am using live555 to stream rtsp data,
ffmpeg to decode/transcode the streamed data, Direct3D to display video,
and PortAudio to play sound. With this toolchain it is essential to play
the audio in a seperate thread, else the video sink will lock up.
 
Thank you for all your assistance.
Regards
____________________________

Shaheed Abdol

 

Web: www.scansoft.co.za <http://www.scansoft.co.za/> 
Tel:  +27 21 913 8664
Cell: +27 79 835 8771
 

<<SST Email.png>>

_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to