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 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: 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> << 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 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 stream,<br>
<br>the below is my command:<br><br> gst-launch -v udpsrc port=54962 caps="application/x-rtp, media=video, clock-rate=90000, encoding-name=H264" ! rtph264depay ! decodebin2 ! ffmpegcolorspace ! autovideosink<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:: decode_slice_header error<br>0:00:53.468058000 4272 019F78E8 ERROR ffmpeg .:0:: no frame!<br>
0:00:53.677070000 4272 019F78E8 ERROR ffmpeg .:0:: non-existing PPS referenced<br>0:00:53.680071000 4272 019F78E8 ERROR ffmpeg .:0:: non-existing PPS 0 referenced<br>0:00:53.682071000 4272 019F78E8 ERROR ffmpeg .:0:: decode_slice_header error<br>
0:00:53.683071000 4272 019F78E8 ERROR ffmpeg .:0:: no frame!<br>0:00:53.685071000 4272 019F78E8 ERROR ffmpeg .:0:: non-existing PPS referenced<br>0:00:53.687071000 4272 019F78E8 ERROR ffmpeg .:0:: non-existing PPS 0 referenced<br>
0:00:53.689071000 4272 019F78E8 ERROR ffmpeg .:0:: decode_slice_header error<br>0:00:53.691071000 4272 019F78E8 ERROR ffmpeg .:0:: no frame!<br>...<br>...<br><br>can anyone helps??<br>
<br><br clear="all"><br>-- <br>Hsiao-heng Lu<br>