<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Scansoft</TITLE>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16440"></HEAD>
<BODY
style="BACKGROUND-COLOR: #e0e0e0; FONT-FAMILY: Trebuchet MS; COLOR: #005080; FONT-SIZE: 10pt"
background="" bgColor=#e0e0e0>
<DIV><SPAN class=170523213-15022012>Good afternoon,</SPAN></DIV>
<DIV><SPAN class=170523213-15022012></SPAN> </DIV>
<DIV><SPAN class=170523213-15022012>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.</SPAN></DIV>
<DIV><SPAN class=170523213-15022012></SPAN> </DIV>
<DIV><SPAN class=170523213-15022012>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.</SPAN></DIV>
<DIV><SPAN class=170523213-15022012></SPAN> </DIV>
<DIV><SPAN class=170523213-15022012>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.</SPAN></DIV>
<DIV><SPAN class=170523213-15022012></SPAN> </DIV>
<DIV><SPAN class=170523213-15022012>Thank you for all your
assistance.</SPAN></DIV>
<DIV><SPAN class=170523213-15022012>Regards</SPAN></DIV>
<DIV><SPAN class=170523213-15022012></SPAN><SPAN
class=170523213-15022012></SPAN><STRONG>____________________________</STRONG></DIV><BR>
<DIV align=left><STRONG>Shaheed Abdol</STRONG></DIV><BR>
<DIV align=left><FONT color=#909090 size=1><STRONG></STRONG></FONT></DIV><IMG
border=0 hspace=0 alt="Scansoft Technologies" align=baseline
src="cid:170523213@15022012-00E8"><BR>
<DIV align=left><FONT color=#909090 size=1><STRONG>Web: <A
href="http://www.scansoft.co.za/">www.scansoft.co.za</A></DIV>
<DIV align=left><FONT color=#909090 size=1><STRONG>Tel: +27 21 913
8664</STRONG></FONT></DIV>
<DIV align=left><FONT color=#909090 size=1><STRONG>Cell: +27 79 835
8771</STRONG></FONT></DIV></STRONG></FONT>
<DIV> </DIV></BODY></HTML>