thanks for your reply,<br><br>it works now.<br><br>gst-launch udpsrc port=54962 caps="application/x-rtp,media=video,clock-rate=90000,encoding-name=H264,profile-level-id=428032,sprop-parameter-sets=\"Z0KAMukGCcg\=,aM48gA\=\=\",payload=96" ! rtph264depay ! decodebin2 ! ffmpegcolorspace ! autovideosink -v<br>
<br><div class="gmail_quote">2010/5/18 Wim Taymans <span dir="ltr"><<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>></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>
> hi, all,<br>
><br>
> I wrote a simple RTSP client to contact an existing RTSP IP CAM,<br>
><br>
> and take a conversation to the CAM:<br>
><br>
> >> OPTIONS * RTSP/1.0<br>
> >> CSeq: 30<br>
><br>
> << RTSP/1.0 200 OK<br>
> << CSeq: 30<br>
> << Public: DESCRIBE,SETUP,PLAY,OPTIONS,PAUSE,TEARDOWN<br>
><br>
> >> DESCRIBE rtsp://myipcam/h264.sdp RTSP/1.0<br>
> >> CSeq: 31<br>
><br>
> << RTSP/1.0 200 OK<br>
> << CSeq: 31<br>
> << Cache-Control: no-cache<br>
> << Content-Length: 171<br>
> << Content-Type: application/sdp<br>
> << x-Accept-Retransmit: our-retransmit<br>
> << x-Accept-Dynamic-Rate: 1<br>
><br>
> << v=0<br>
> << m=video 0 RTP/AVP 96<br>
> << a=rtpmap:96 H264/90000<br>
> << a=control:trackID=1<br>
> << a=fmtp:96<br>
> packetization-mode=1;profile-level-id=428032;sprop-parameter-sets=Z0KAMukGCcg=,aM48gA==<br>
><br>
> >> SETUP rtsp://myipcam/h264.sdp/trackID=1 RTSP/1.0<br>
> >> CSeq: 32<br>
> >> Transport: RTP/AVP;unicast;client_port=54962-54963<br>
><br>
> << RTSP/1.0 200 OK<br>
> << CSeq: 32<br>
> << Cache-Control: no-cache<br>
> << Session: 135514808124572<br>
> << Transport:<br>
> RTP/AVP;unicast;client_port=-10574--10573;server_port=6970-6971<br>
><br>
> >> PLAY rtsp://myipcam/h264.sdp RTSP/1.0<br>
> >> CSeq: 33<br>
> >> Session: 135514808124572<br>
> >> Range: npt=0.000-<br>
><br>
<br>
<br>
> << RTSP/1.0 200 OK<br>
> << CSeq: 33<br>
> << Session: 135514808124572<br>
> << Range: npt=now-<br>
><br>
> it works and now the RTSP IP CAM continuously streams packets to my<br>
> local port number (#54962)<br>
><br>
> but for some purpose I didn't create an UDP listener on port #54962,<br>
><br>
> instead, I want to use gstreamer to playback the incoming video<br>
> stream,<br>
><br>
> the below is my command:<br>
><br>
> gst-launch -v udpsrc port=54962 caps="application/x-rtp,<br>
> media=video, clock-rate=90000, encoding-name=H264" ! rtph264depay !<br>
> decodebin2 ! ffmpegcolorspace ! autovideosink<br>
><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>
> it works to receive the incoming packets,<br>
><br>
> but error occurs at the decoding stage,<br>
><br>
> ...<br>
> ...<br>
> 0:00:53.466058000 4272 019F78E8 ERROR ffmpeg .:0::<br>
> decode_slice_header error<br>
> 0:00:53.468058000 4272 019F78E8 ERROR ffmpeg .:0::<br>
> no frame!<br>
> 0:00:53.677070000 4272 019F78E8 ERROR ffmpeg .:0::<br>
> non-existing PPS referenced<br>
> 0:00:53.680071000 4272 019F78E8 ERROR ffmpeg .:0::<br>
> non-existing PPS 0 referenced<br>
> 0:00:53.682071000 4272 019F78E8 ERROR ffmpeg .:0::<br>
> decode_slice_header error<br>
> 0:00:53.683071000 4272 019F78E8 ERROR ffmpeg .:0::<br>
> no frame!<br>
> 0:00:53.685071000 4272 019F78E8 ERROR ffmpeg .:0::<br>
> non-existing PPS referenced<br>
> 0:00:53.687071000 4272 019F78E8 ERROR ffmpeg .:0::<br>
> non-existing PPS 0 referenced<br>
> 0:00:53.689071000 4272 019F78E8 ERROR ffmpeg .:0::<br>
> decode_slice_header error<br>
> 0:00:53.691071000 4272 019F78E8 ERROR ffmpeg .:0::<br>
> no frame!<br>
> ...<br>
> ...<br>
><br>
> can anyone helps??<br>
><br>
><br>
><br>
> --<br>
> Hsiao-heng Lu<br>
</div>> ------------------------------------------------------------------------------<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>
<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>