<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello, and thanks for the help.<br>
<br>
<blockquote type="cite">
<pre style="white-space: pre-wrap; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">- We see these types of messages all the time in our platform (which
is implemented using live555 on the server.) A different media player
we've tried seems to play the stream without these "glitches".
- I see the same messages using my own RTSP/RTP stack written from scratch.</pre>
</blockquote>
Hmm, it seems so. I've tried it with MPlayer for windows and it is
working fine. The streams are practically unplayable in VLC.<br>
<br>
I event get errors saying: "<span style=" font-style:italic;
color:#ff0000;"></span>more than 5 seconds of late video"<br>
<span style=" font-style:italic; color:#00008b;">main</span><span
style=" font-style:italic; color:#008000;"> warning: </span>playback
too late (61251): up-sampling
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-style:italic; color:#00008b;">main</span><span
style=" font-style:italic; color:#008000;"> warning: </span>playback
too late (60915): up-sampling</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-style:italic; color:#00008b;">avcodec</span><span
style=" font-style:italic; color:#ff0000;"> error: </span>more
than 5 seconds of late video -> dropping frame (computer too
slow ?)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-style:italic; color:#00008b;">main</span><span
style=" font-style:italic; color:#008000;"> warning: </span>picture
is too late to be displayed (missing 1418 ms)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-style:italic; color:#00008b;">main</span><span
style=" font-style:italic; color:#008000;"> warning: </span>picture
is too late to be displayed (missing 1378 ms)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-style:italic; color:#00008b;">main</span><span
style=" font-style:italic; color:#008000;"> warning: </span>picture
is too late to be displayed (missing 1338 ms)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-style:italic; color:#00008b;">main</span><span
style=" font-style:italic; color:#008000;"> warning: </span>picture
is too late to be displayed (missing 1172 ms)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-style:italic; color:#00008b;">main</span><span
style=" font-style:italic; color:#008000;"> warning: </span>picture
is too late to be displayed (missing 1152 ms)</p>
<br>
So the stream cannot be played back in VLC.<br>
<br>
<blockquote type="cite">
<pre style="white-space: pre-wrap; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">I also suggest making sure that:
- streaming H.264 video only works OK (I think you've already done this)
- streaming AAC audio only works OK
before trying to stream both audio and video together.</pre>
</blockquote>
yes, I've tried that: both streams work OK when streamed separately.
The problem only appears when they are streamed together.<br>
<br>
<br>
Btw, what is the correct sequence of closing the RTSP server and
other classes from live555. I do it like this:<br>
<br>
I signal m_doneFlag. Everything is done on a dedicated thread and my
class isn't exiting until it gets the close event (m_hCloseEvt, at
the end), but still something is not cleaned up I can see it in the
output window.<br>
<br>
m_pUsageEnv->taskScheduler().doEventLoop( &m_doneFlag );
// does not return<br>
<br>
// Close everything<br>
//<br>
if(m_pRtpVideoSink != NULL)<br>
{<br>
m_pRtpVideoSink->stopPlaying(); <br>
}<br>
m_pRtpVideoSink = NULL;<br>
<br>
Medium::close(m_pH264FramedSource);<br>
<br>
if(m_pRtpAudioSink != NULL)<br>
{<br>
m_pRtpAudioSink->stopPlaying();<br>
}<br>
m_pRtpAudioSink = NULL;<br>
<br>
Medium::close(m_pAacFrameedSource);<br>
<br>
Medium::close(rtspServer);<br>
Medium::close(rtcpVideo);<br>
Medium::close(rtcpAudio);<br>
<br>
rtpVideoGroupsock.removeAllDestinations();<br>
rtcpVideoGroupsock.removeAllDestinations();<br>
rtpAudioGroupsock.removeAllDestinations();<br>
rtcpAudioGroupsock.removeAllDestinations();<br>
<br>
m_pUsageEnv->reclaim();<br>
<br>
SetEvent( m_hCloseEvt );<br>
<br>
</body>
</html>