I have saved the RTP payloads in file and vlc can play the file without problem. So the RTP payloads is ok.<br>But when payloads are sent to vlc in RTP packets, vlc fails to play the stream.<br>Now the stream consists of one I frame and 299 P frames. We find that if I frame is repeated in the stream, vlc encounters the second
<br>I frame and will play normally.<br><br>First, i think the sps and pps in the sdp file is different from the sps and pps in rtp packet streams. vlc receives the sps and pps again and think the new ones are used to update the old ones. But I review the sps and pps in sdp file and am sure they are correct.
<br><br>And I have downloaded the vlc source code from the websites and find vlc is very complex to understand and it is difficult to find the process for RTP packet operations.<br><br>Thanks<br>jogging<br><br><div><span class="gmail_quote">
On 3/9/07, <b class="gmail_sendername">Chris Dobbs</b> <<a href="mailto:chris_dobbs@dobbscr.karoo.co.uk">chris_dobbs@dobbscr.karoo.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2">Can u verify without using VLC that your H264
frames are ok? i.e play it from file or something. VLC will play h264 from file
so maby try that first.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Your SDP looks ok although I'm not familiar
with the specific h263 fmtp options, try just having</font></div>
<div><font face="Arial" size="2">fmtp:96</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">your SDP states you are streaming to port 1100 so
make sure your streamer is in fact doing this (obvious I know
but...)</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Run up ethereal and capture the first couple of
packet and see if they look ok. Check that your RTP header payload type is in
fact 96 and not the non-dynamic one (forget which number this is for
H264...35?)</font></div><span class="sg">
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">-Chris</font></div></span><div><span class="e" id="q_1113691a4c4d2fc8_2">
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="joggingsong@gmail.com" href="mailto:joggingsong@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jogging
song</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="vlc@videolan.org" href="mailto:vlc@videolan.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
vlc@videolan.org</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Friday, March 09, 2007 2:54
AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> [vlc] Re: vlc stop when playing
H.264 RTP stream</div>
<div><font face="Arial" size="2"></font><font face="Arial" size="2"></font><br></div>Thanks, Chris<br>
Payload type in RTP header is 96.<br> Before it is about to receive RTP
stream, vlc need a SDP. I'm not sure whether the sdp file is
right.<br>v=0<br>m=video 1100 RTP/AVP 96<br>b=AS:247<br>a=rtpmap:96 H264/90000
<br>a=fmtp:96 packetization-mode=1;profile-level-id=42001E;<br><br>I read the
RFC3984, and change it to the following.<br><br>v=0<br>m=video 1100 RTP/AVP
96<br>b=AS:247<br>a=rtpmap:96 H264/90000<br>a=fmtp:96
packetization-mode=0;profile-level-id=42001E;sprop-parameteter-sets=Z0IAHpZ0Ficg,aM44gA==
<br><br>It still doesn't work.<br><br>The RTP stream consists of RTP of 300
frames. And only the first frame is an IDR frame(I frame), which has a sps and
pps.<br>All other frame is P frame.<br><br>But VLC stops after printing the
following things: <br>packetizer_h264 debug: found NAL_SPS<br>packetizer_h264
debug: found NAL_PPS <br>I don't know why it stops after recognizing sps and
pps.<br><br><br>And i think sps and pps already are in sdp file, so I don't
send sps and pps.<br>Vlc will print "waiting for
sps".<br><br>Thanks<br>jogging<br><br><br>
<div><span class="gmail_quote">On 3/8/07, <b class="gmail_sendername"><a href="mailto:chris.2.dobbs@bt.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">chris.2.dobbs@bt.com</a></b> <<a href="mailto:chris.2.dobbs@bt.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
chris.2.dobbs@bt.com</a> > wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Not sure
what that erro msg means but here are a f</font></span><span><font color="#0000ff" face="Arial" size="2">ew quick things to
check:</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">1. Are
you setting the RTP payload to 96 in your stream?</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">2. Are
you setting correct timestamp framing intervals in your stream , think u
need to increment rtp timestamp by 30Ms every time u start sending a new
frame. Keep this timestamp constant for frames spanning several
packets.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">3. Are
you keeping the RTP SSRC at constant value all the way
through?</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Can you
post the first few packets here?- use ethereal or something to capture
and I'll take a look.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">-Chris</font></span></div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:vlc-bounce@videolan.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vlc-bounce@videolan.org</a> [mailto:<a href="mailto:vlc-bounce@videolan.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
vlc-bounce@videolan.org</a>] <b>On Behalf Of </b>jogging
song<br><b>Sent:</b> 08 March 2007 12:52<br><b>To:</b> <a href="mailto:vlc@videolan.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vlc@videolan.org</a><br><b>Subject:</b> [vlc] vlc stop when
playing H.264 RTP stream<br></font><br></div>
<div><span>
<div></div>hi,<br> Now I use VLC to play H.264 RTP
stream.I encounter some problems. Before it is about to receive RTP
streams, VLC read a SDP like this,<br>v=0<br>m=video 1100 RTP/AVP
96<br>b=AS:247<br>a=rtpmap:96 H264/90000<br>a=fmtp:96
packetization-mode=1;profile-level-id=42001E;<br><br>Then I send RTP
packets, and VLC recieve them.But VLC stops after printing the following
things:<br>packetizer_h264 debug: found NAL_SPS<br>packetizer_h264 debug:
found NAL_PPS <br><br>Can anyone help me?Thanks<br>Best
Regards<br>jogging<br><br><br><br></span></div></div></blockquote></div><br></blockquote></span></div></div>
</blockquote></div><br>