thanks for your reply,<br><br>it works now.<br><br>gst-launch udpsrc port=54962 caps=&quot;application/x-rtp,media=video,clock-rate=90000,encoding-name=H264,profile-level-id=428032,sprop-parameter-sets=\&quot;Z0KAMukGCcg\=,aM48gA\=\=\&quot;,payload=96&quot; ! rtph264depay ! decodebin2 ! ffmpegcolorspace ! autovideosink -v<br>
<br><div class="gmail_quote">2010/5/18 Wim Taymans <span dir="ltr">&lt;<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Tue, 2010-05-18 at 15:22 +0800, §µ«í §f wrote:<br>
&gt; hi, all,<br>
&gt;<br>
&gt; I wrote a simple RTSP client to contact an existing RTSP IP CAM,<br>
&gt;<br>
&gt; and take a conversation to the CAM:<br>
&gt;<br>
&gt; &gt;&gt; OPTIONS * RTSP/1.0<br>
&gt; &gt;&gt; CSeq: 30<br>
&gt;<br>
&gt; &nbsp; &lt;&lt; RTSP/1.0 200 OK<br>
&gt; &nbsp; &lt;&lt; CSeq: 30<br>
&gt; &nbsp; &lt;&lt; Public: DESCRIBE,SETUP,PLAY,OPTIONS,PAUSE,TEARDOWN<br>
&gt;<br>
&gt; &gt;&gt; DESCRIBE rtsp://myipcam/h264.sdp RTSP/1.0<br>
&gt; &gt;&gt; CSeq: 31<br>
&gt;<br>
&gt; &nbsp; &lt;&lt; RTSP/1.0 200 OK<br>
&gt; &nbsp; &lt;&lt; CSeq: 31<br>
&gt; &nbsp; &lt;&lt; Cache-Control: no-cache<br>
&gt; &nbsp; &lt;&lt; Content-Length: 171<br>
&gt; &nbsp; &lt;&lt; Content-Type: application/sdp<br>
&gt; &nbsp; &lt;&lt; x-Accept-Retransmit: our-retransmit<br>
&gt; &nbsp; &lt;&lt; x-Accept-Dynamic-Rate: 1<br>
&gt;<br>
&gt; &nbsp; &lt;&lt; v=0<br>
&gt; &nbsp; &lt;&lt; m=video 0 RTP/AVP 96<br>
&gt; &nbsp; &lt;&lt; a=rtpmap:96 H264/90000<br>
&gt; &nbsp; &lt;&lt; a=control:trackID=1<br>
&gt; &nbsp; &lt;&lt; a=fmtp:96<br>
&gt; packetization-mode=1;profile-level-id=428032;sprop-parameter-sets=Z0KAMukGCcg=,aM48gA==<br>
&gt;<br>
&gt; &gt;&gt; SETUP rtsp://myipcam/h264.sdp/trackID=1 RTSP/1.0<br>
&gt; &gt;&gt; CSeq: 32<br>
&gt; &gt;&gt; Transport: RTP/AVP;unicast;client_port=54962-54963<br>
&gt;<br>
&gt; &nbsp; &lt;&lt; RTSP/1.0 200 OK<br>
&gt; &nbsp; &lt;&lt; CSeq: 32<br>
&gt; &nbsp; &lt;&lt; Cache-Control: no-cache<br>
&gt; &nbsp; &lt;&lt; Session: 135514808124572<br>
&gt; &nbsp; &lt;&lt; Transport:<br>
&gt; RTP/AVP;unicast;client_port=-10574--10573;server_port=6970-6971<br>
&gt;<br>
&gt; &gt;&gt; PLAY rtsp://myipcam/h264.sdp RTSP/1.0<br>
&gt; &gt;&gt; CSeq: 33<br>
&gt; &gt;&gt; Session: 135514808124572<br>
&gt; &gt;&gt; Range: npt=0.000-<br>
&gt;<br>
<br>
<br>
&gt; &nbsp; &lt;&lt; RTSP/1.0 200 OK<br>
&gt; &nbsp; &lt;&lt; CSeq: 33<br>
&gt; &nbsp; &lt;&lt; Session: 135514808124572<br>
&gt; &nbsp; &lt;&lt; Range: npt=now-<br>
&gt;<br>
&gt; it works and now the RTSP IP CAM continuously streams packets to my<br>
&gt; local port number (#54962)<br>
&gt;<br>
&gt; but for some purpose I didn&#39;t create an UDP listener on port #54962,<br>
&gt;<br>
&gt; instead, I want to use gstreamer to playback the incoming video<br>
&gt; stream,<br>
&gt;<br>
&gt; the below is my command:<br>
&gt;<br>
&gt; &nbsp; gst-launch -v udpsrc port=54962 caps=&quot;application/x-rtp,<br>
&gt; media=video, clock-rate=90000, encoding-name=H264&quot; ! rtph264depay !<br>
&gt; decodebin2 ! ffmpegcolorspace ! autovideosink<br>
&gt;<br>
<br>
</div></div>You forgot to pass the fmtp parameters to the depayloader on the caps.<br>
In particular, the depayloader does not have sprop-parameter-sets which<br>
contains SPS and PPS for the decoder.<br>
<br>
Wim<br>
<div class="im"><br>
<br>
<br>
&gt; it works to receive the incoming packets,<br>
&gt;<br>
&gt; but error occurs at the decoding stage,<br>
&gt;<br>
&gt; ...<br>
&gt; ...<br>
&gt; 0:00:53.466058000 &nbsp;4272 &nbsp; 019F78E8 ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ffmpeg .:0::<br>
&gt; decode_slice_header error<br>
&gt; 0:00:53.468058000 &nbsp;4272 &nbsp; 019F78E8 ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ffmpeg .:0::<br>
&gt; no frame!<br>
&gt; 0:00:53.677070000 &nbsp;4272 &nbsp; 019F78E8 ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ffmpeg .:0::<br>
&gt; non-existing PPS referenced<br>
&gt; 0:00:53.680071000 &nbsp;4272 &nbsp; 019F78E8 ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ffmpeg .:0::<br>
&gt; non-existing PPS 0 referenced<br>
&gt; 0:00:53.682071000 &nbsp;4272 &nbsp; 019F78E8 ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ffmpeg .:0::<br>
&gt; decode_slice_header error<br>
&gt; 0:00:53.683071000 &nbsp;4272 &nbsp; 019F78E8 ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ffmpeg .:0::<br>
&gt; no frame!<br>
&gt; 0:00:53.685071000 &nbsp;4272 &nbsp; 019F78E8 ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ffmpeg .:0::<br>
&gt; non-existing PPS referenced<br>
&gt; 0:00:53.687071000 &nbsp;4272 &nbsp; 019F78E8 ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ffmpeg .:0::<br>
&gt; non-existing PPS 0 referenced<br>
&gt; 0:00:53.689071000 &nbsp;4272 &nbsp; 019F78E8 ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ffmpeg .:0::<br>
&gt; decode_slice_header error<br>
&gt; 0:00:53.691071000 &nbsp;4272 &nbsp; 019F78E8 ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ffmpeg .:0::<br>
&gt; no frame!<br>
&gt; ...<br>
&gt; ...<br>
&gt;<br>
&gt; can anyone helps??<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Hsiao-heng Lu<br>
</div>&gt; ------------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Hsiao-heng Lu<br>