rtsp server, save record stream to a file

Dinh Nguyen dinh.nguyen at zinnoinc.com
Sun Sep 2 03:41:54 UTC 2018


I am new to GStreamer ecosystem, and nowhere to be good at C; hence, please
forgive if I put this silly question here.

I am using gst-rtsp server, with test-record to save a "record" stream from
client to a file (mp4), and this is the error.

GST_DEBUG=2 ./build/test-record "( rtph264depay ! h264parse ! mp4mux !
filesink location=result3.mp4 )"
stream ready at rtsp://
On the sender, send a stream with rtspclientsink:
  gst-launch-1.0 videotestsrc ! x264enc ! rtspclientsink
0:00:09.120079875   951       0xd0a190 ERROR              rtspmedia
rtsp-media.c:3637:default_handle_sdp: 0x7f93380452b0: Media has more
or less streams than SDP (0 /= 1)
0:00:09.120101464   951       0xd0a190 ERROR             rtspclient
rtsp-client.c:2946:handle_sdp: client 0xe551a0: could not handle SDP
0:00:09.120110777   951       0xd0a190 ERROR             rtspclient
rtsp-client.c:3107:handle_announce_request: client 0xe551a0: can't
handle SDP


This is the client side:

gst-launch-1.0 videotestsrc ! x264enc ! rtspclientsink
Setting pipeline to PAUSED ...
Pipeline is PREROLLED ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://
Redistribute latency...
Progress: (open) Retrieving server options
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending RECORD request
Progress: (record) Sending server stream info
ERROR: from element
/GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0: Could not
read from resource.
Additional debug info:
gstrtspclientsink.c(3059): gst_rtsp_client_sink_send ():
Got error response: 415 (Unsupported Media Type).
Execution ended after 0:00:00.046342782
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...


Could you please give me a hint for this problems.

Thanks in advanced.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180902/ef04d25c/attachment.html>

More information about the gstreamer-devel mailing list