problem with GStreamer RTSP server

Chuck Crisler ccrisler at mutualink.net
Wed Jul 31 08:21:43 PDT 2013


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.

My pipeline in my RTSP server that doesn't seem to be working is:

(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
)

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! :-)

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?

Jul 31 10:55:36 rtspdaemon[22104]: 0:00:00.088086605 22104
0x8150008 LOG                GST_DEBUG
gstinfo.c:1228:gst_debug_reset_threshold: category rtspmedia matches
pattern 0x81578e0 - gets set to level 5
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088127392 22104
0x8150008 DEBUG              rtspmedia
rtsp-media-factory.c:100:gst_rtsp_media_factory_class_init: Class
Init() called.
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088166434 22104
0x8150008 LOG                GST_DEBUG
gstinfo.c:1228:gst_debug_reset_threshold: category enhrtspmedia
matches pattern 0x81578e0 - gets set to level 5
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088200936 22104
0x8150008 DEBUG           enhrtspmedia
enh-rtsp-media-factory.c:23:enh_rtsp_media_factory_class_init: Class
Init() called.
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088238372 22104
0x8150008 DEBUG              rtspmedia
rtsp-media-factory.c:115:gst_rtsp_media_factory_init:
GstRTSPMediaFactoryInit() called.
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088266867 22104
0x8150008 DEBUG           enhrtspmedia
enh-rtsp-media-factory.c:40:enh_rtsp_media_factory_init:
enh_rtsp_media_factory_init called...
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088298506 22104
0x8150008 DEBUG             RTSPSocket
RTSPSocket.cpp:284:InitializeRTSPServer: RTSP Server is initialized.
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088349560 22104
0x8150008 DEBUG             RTSPSocket
RTSPSocket.cpp:163:SocketCallback: Callback that data is available on
the socket to be read.
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088415282 22104
0x8150008 INFO              RTSPSocket
RTSPSocket.cpp:168:SocketCallback: Received 16 bytes from COMM socket.
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088450133 22104
0x8150008 DEBUG             RTSPSocket
RTSPSocket.cpp:208:SocketCallback: Received input and output RTP
ports, Inp: 62127 Out: 6020
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088552452 22104
0x8150008 INFO              RTSPSocket
RTSPSocket.cpp:135:SendData: Message buffer sent!
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088919403 22104
0x8150008 DEBUG             RTSPSocket
RTSPSocket.cpp:163:SocketCallback: Callback that data is available on
the socket to be read.
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.088991061 22104
0x8150008 INFO              RTSPSocket
RTSPSocket.cpp:168:SocketCallback: Received 8 bytes from COMM socket.
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089032128 22104
0x8150008 DEBUG             RTSPSocket
RTSPSocket.cpp:179:SocketCallback: Starting RTSP Server Processing
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089065023 22104
0x8150008 DEBUG             RTSPSocket
RTSPSocket.cpp:318:InitializePipeline: 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
)
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089154701 22104
0x8150008 DEBUG             rtspserver
rtsp-server.c:442:gst_rtsp_server_sink_init_send:<GstRTSPServer at 0x820d590>
getting address info of 192.168.10.238/554
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089608466 22104
0x8150008 DEBUG             rtspserver
rtsp-server.c:458:gst_rtsp_server_sink_init_send:<GstRTSPServer at 0x820d590>
bind on 192.168.10.238
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089701356 22104
0x8150008 DEBUG             rtspserver
rtsp-server.c:473:gst_rtsp_server_sink_init_send:<GstRTSPServer at 0x820d590>
opened sending server socket with fd 6
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089756391 22104
0x8150008 DEBUG             rtspserver
rtsp-server.c:502:gst_rtsp_server_sink_init_send:<GstRTSPServer at 0x820d590>
listening on server socket 6 with queue of 5
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089816106 22104
0x8150008 DEBUG             rtspserver
rtsp-server.c:508:gst_rtsp_server_sink_init_send:<GstRTSPServer at 0x820d590>
listened on server socket 6, returning from connection setup
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:00.089850259 22104
0x8150008 INFO              rtspserver
rtsp-server.c:510:gst_rtsp_server_sink_init_send:<GstRTSPServer at 0x820d590>
listening on service 554
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.973042884 22104
0x8150008 LOG                GST_DEBUG
gstinfo.c:1228:gst_debug_reset_threshold: category rtspclient matches
pattern 0x81578e0 - gets set to level 5
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.973555176 22104
0x8150008 DEBUG               GST_POLL
gstpoll.c:489:gst_poll_new: controllable : 1
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.973684035 22104
0x8150008 LOG                 GST_POLL
gstpoll.c:1382:gst_poll_set_controllable: 0x8159258: controllable : 1
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.973849002 22104
0x8150008 DEBUG               GST_POLL
gstpoll.c:617:gst_poll_add_fd_unlocked: 0x8159258: fd (fd:8, idx:0)
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.973943428 22104
0x8150008 DEBUG               GST_POLL
gstpoll.c:787:gst_poll_fd_ctl_read_unlocked: 0x8159258: fd (fd:8,
idx:0), active : 1
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.974092402 22104
0x8150008 DEBUG               GST_POLL
gstpoll.c:617:gst_poll_add_fd_unlocked: 0x8159258: fd (fd:7, idx:0)
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.974253667 22104
0x8150008 INFO              rtspclient
rtsp-client.c:1726:gst_rtsp_client_accept: client 0x8159220 connected
to server ip 192.168.10.238, ipv6 = 0
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.974345020 22104
0x8150008 INFO              rtspclient
rtsp-client.c:1729:gst_rtsp_client_accept: added new client 0x8159220
ip 192.168.10.237:58348
Jul 31 10:55:54 rtspdaemon[22104]: 0:00:17.974542255 22104
0x8150008 INFO              rtspclient
rtsp-client.c:1743:gst_rtsp_client_accept: attaching to context
0x8152c68
Jul 31 10:55:54 rtspdaemon[22104]: RTSP request message 0x827b5d8
Jul 31 10:55:54 rtspdaemon[22104]:  request line:
Jul 31 10:55:54 rtspdaemon[22104]:    method: 'OPTIONS'
Jul 31 10:55:54 rtspdaemon[22104]:    uri:    'rtsp://
192.168.10.238:554/chnl.sdp'
Jul 31 10:55:54 rtspdaemon[22104]:    version: '1.0'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130731/e23a7817/attachment-0001.html>


More information about the gstreamer-devel mailing list