<div dir="ltr"><div><div>I am implementing an RTSP server based on the GStreamer RTSP server. However, I am having a startup problem. There is an unusual architecture that requires a separate program to run and feed video data to my new RTSP program. That program is working properly. I know that because I started it, ran a script that used gst-launch with a pipeline almost identical to the new one and relayed RTP data to a different system, which was able to display it perfectly. However, this was pure RTP without the RTSP server. I think that my RTSP pipeline is proper but I wonder if the GStreamer RTSP code is rejecting it.<br>
<br></div>My pipeline in my RTSP server that doesn't seem to be working is:<br><br>(udpsrc port=62127 ! 'application/x-rtp,media=video,payload=96,clock-rate=90000,encoding-name=H264' ! rtph264depay byte-stream=true ! video/x-h264 ! rtph264pay name=pay0 pt=96 )<br>
<br></div><div>Yes, this pipeline is intended to be a minimal 'pass through'. If anyone can suggest a simplification I would really appreciate it - especially if it worked! :-)<br></div><div><br></div>Here is a brief section of the log file showing the startup when I connected with VLC to the RTSP server. What I don't see is any attempt by udpsrc or rtpbin to do anything. Is it possible that my pipeline is being rejected?<br>
<div><br>Jul 31 10:55:36 rtspdaemon[22104]: 0:00:00.088086605 [331m22104[00m 0x8150008 [37mLOG [00m [00;01;33m GST_DEBUG gstinfo.c:1228:gst_debug_reset_threshold:[00m category rtspmedia matches pattern 0x81578e0 - gets set to level 5<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088127392 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m rtspmedia rtsp-media-factory.c:100:gst_rtsp_media_factory_class_init:[00m Class Init() called.<br>Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088166434 [331m22104[00m 0x8150008 [37mLOG [00m [00;01;33m GST_DEBUG gstinfo.c:1228:gst_debug_reset_threshold:[00m category enhrtspmedia matches pattern 0x81578e0 - gets set to level 5<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088200936 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m enhrtspmedia enh-rtsp-media-factory.c:23:enh_rtsp_media_factory_class_init:[00m Class Init() called.<br>Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088238372 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m rtspmedia rtsp-media-factory.c:115:gst_rtsp_media_factory_init:[00m GstRTSPMediaFactoryInit() called.<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088266867 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m enhrtspmedia enh-rtsp-media-factory.c:40:enh_rtsp_media_factory_init:[00m enh_rtsp_media_factory_init called...<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088298506 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m RTSPSocket RTSPSocket.cpp:284:InitializeRTSPServer:[00m RTSP Server is initialized.<br>Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088349560 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m RTSPSocket RTSPSocket.cpp:163:SocketCallback:[00m Callback that data is available on the socket to be read.<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088415282 [331m22104[00m 0x8150008 [32;01mINFO [00m [00m RTSPSocket RTSPSocket.cpp:168:SocketCallback:[00m Received 16 bytes from COMM socket.<br>Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088450133 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m RTSPSocket RTSPSocket.cpp:208:SocketCallback:[00m Received input and output RTP ports, Inp: 62127 Out: 6020<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088552452 [331m22104[00m 0x8150008 [32;01mINFO [00m [00m RTSPSocket RTSPSocket.cpp:135:SendData:[00m Message buffer sent!<br>Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088919403 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m RTSPSocket RTSPSocket.cpp:163:SocketCallback:[00m Callback that data is available on the socket to be read.<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088991061 [331m22104[00m 0x8150008 [32;01mINFO [00m [00m RTSPSocket RTSPSocket.cpp:168:SocketCallback:[00m Received 8 bytes from COMM socket.<br>Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089032128 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m RTSPSocket RTSPSocket.cpp:179:SocketCallback:[00m Starting RTSP Server Processing<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089065023 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m RTSPSocket RTSPSocket.cpp:318:InitializePipeline:[00m Pipeline: (udpsrc port=62127 ! 'application/x-rtp,media=video,payload=96,clock-rate=90000,encoding-name=H264' ! rtph264depay byte-stream=true ! video/x-h264 ! rtph264pay name=pay0 pt=96 )<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089154701 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m rtspserver rtsp-server.c:442:gst_rtsp_server_sink_init_send:<GstRTSPServer@0x820d590>[00m getting address info of <a href="http://192.168.10.238/554">192.168.10.238/554</a><br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089608466 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m rtspserver rtsp-server.c:458:gst_rtsp_server_sink_init_send:<GstRTSPServer@0x820d590>[00m bind on 192.168.10.238<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089701356 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m rtspserver rtsp-server.c:473:gst_rtsp_server_sink_init_send:<GstRTSPServer@0x820d590>[00m opened sending server socket with fd 6<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089756391 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m rtspserver rtsp-server.c:502:gst_rtsp_server_sink_init_send:<GstRTSPServer@0x820d590>[00m listening on server socket 6 with queue of 5<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089816106 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m rtspserver rtsp-server.c:508:gst_rtsp_server_sink_init_send:<GstRTSPServer@0x820d590>[00m listened on server socket 6, returning from connection setup<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089850259 [331m22104[00m 0x8150008 [32;01mINFO [00m [00m rtspserver rtsp-server.c:510:gst_rtsp_server_sink_init_send:<GstRTSPServer@0x820d590>[00m listening on service 554<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.973042884 [331m22104[00m 0x8150008 [37mLOG [00m [00;01;33m GST_DEBUG gstinfo.c:1228:gst_debug_reset_threshold:[00m category rtspclient matches pattern 0x81578e0 - gets set to level 5<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.973555176 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m GST_POLL gstpoll.c:489:gst_poll_new:[00m controllable : 1<br>Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.973684035 [331m22104[00m 0x8150008 [37mLOG [00m [00m GST_POLL gstpoll.c:1382:gst_poll_set_controllable:[00m 0x8159258: controllable : 1<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.973849002 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m GST_POLL gstpoll.c:617:gst_poll_add_fd_unlocked:[00m 0x8159258: fd (fd:8, idx:0)<br>Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.973943428 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m GST_POLL gstpoll.c:787:gst_poll_fd_ctl_read_unlocked:[00m 0x8159258: fd (fd:8, idx:0), active : 1<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.974092402 [331m22104[00m 0x8150008 [36mDEBUG [00m [00m GST_POLL gstpoll.c:617:gst_poll_add_fd_unlocked:[00m 0x8159258: fd (fd:7, idx:0)<br>Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.974253667 [331m22104[00m 0x8150008 [32;01mINFO [00m [00m rtspclient rtsp-client.c:1726:gst_rtsp_client_accept:[00m client 0x8159220 connected to server ip 192.168.10.238, ipv6 = 0<br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.974345020 [331m22104[00m 0x8150008 [32;01mINFO [00m [00m rtspclient rtsp-client.c:1729:gst_rtsp_client_accept:[00m added new client 0x8159220 ip <a href="http://192.168.10.237:58348">192.168.10.237:58348</a><br>
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.974542255 [331m22104[00m 0x8150008 [32;01mINFO [00m [00m rtspclient rtsp-client.c:1743:gst_rtsp_client_accept:[00m attaching to context 0x8152c68<br>Jul 31 10:55:54 rtspdaemon[22104]: RTSP request message 0x827b5d8<br>
Jul 31 10:55:54 rtspdaemon[22104]: request line:<br>Jul 31 10:55:54 rtspdaemon[22104]: method: 'OPTIONS'<br>Jul 31 10:55:54 rtspdaemon[22104]: uri: 'rtsp://<a href="http://192.168.10.238:554/chnl.sdp">192.168.10.238:554/chnl.sdp</a>'<br>
Jul 31 10:55:54 rtspdaemon[22104]: version: '1.0'<br><br></div></div>