Test-Record Example Segmentation Fault
Platform: Mac OS X Mojave
Receiver Compilation
gcc test-record.c -I/usr/local/Cellar/gstreamer/1.16.0_1/include/gstreamer-1.0/ -I/usr/local/Cellar/gst-rtsp-server/1.16.0_1/include/gstreamer-1.0/ `pkg-config --cflags --libs glib-2.0` -I/usr/local/Cellar/gst-plugins-base/1.16.0_1/include/gstreamer-1.0/ -lgstreamer-1.0 -lgstrtsp-1.0 -lglib-2.0 -lgstrtspserver-1.0 -lgobject-2.0
./a.out "decodebin name=depay0 ! autovideosink"
Receiver Output
stream ready at rtsp://127.0.0.1:8554/test
On the sender, send a stream with rtspclientsink:
gst-launch-1.0 videotestsrc ! x264enc ! rtspclientsink location=rtsp://127.0.0.1:8554/test
[1] 15815 segmentation fault ./a.out "decodebin name=depay0 ! autovideosink"
Sender
gst-launch-1.0 videotestsrc ! x264enc ! rtspclientsink location=rtsp://127.0.0.1:8554/test
Sender Output
Warning: Failed to set locale category LC_NUMERIC to en_TR.
Warning: Failed to set locale category LC_TIME to en_TR.
Warning: Failed to set locale category LC_COLLATE to en_TR.
Warning: Failed to set locale category LC_MONETARY to en_TR.
Warning: Failed to set locale category LC_MESSAGES to en_TR.
Setting pipeline to PAUSED ...
Pipeline is PREROLLED ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://127.0.0.1:8554/test
Progress: (open) Retrieving server options
Redistribute latency...
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending RECORD request
Progress: (record) Sending server stream info
Progress: (request) SETUP stream 0
Progress: (request) Sending RECORD request
Progress: (record) Starting recording
WARNING: from element /GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0: Could not read from resource.
Additional debug info:
gstrtspclientsink.c(2256): gst_rtsp_client_sink_loop_rx (): /GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0:
The server closed the connection.
ERROR: from element /GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0: Could not open resource for reading and writing.
Additional debug info:
gstrtspclientsink.c(2331): gst_rtsp_client_sink_loop_rx (): /GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0:
Could not connect to server. (Generic error)
Execution ended after 0:00:00.746859000
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
~ brew info gstreamer
gstreamer: stable 1.16.0 (bottled), HEAD
Development framework for multimedia applications
https://gstreamer.freedesktop.org/
/usr/local/Cellar/gstreamer/1.16.0_1 (420 files, 22.9MB) *
Poured from bottle on 2019-07-03 at 21:29:59
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/gstreamer.rb
==> Dependencies
Build: bison ✘, gobject-introspection ✘, pkg-config ✔
Required: gettext ✔, glib ✔
==> Options
--HEAD
Install HEAD version
==> Caveats
Consider also installing gst-plugins-base and gst-plugins-good.
The gst-plugins-* packages contain gstreamer-video-1.0, gstreamer-audio-1.0,
and other components needed by most gstreamer applications.
==> Analytics
install: 5,390 (30 days), 14,676 (90 days), 49,221 (365 days)
install_on_request: 2,256 (30 days), 6,645 (90 days), 24,191 (365 days)
build_error: 0 (30 days)
~ brew info gst-rtsp-server
gst-rtsp-server: stable 1.16.0 (bottled)
RTSP server library based on GStreamer
https://gstreamer.freedesktop.org/modules/gst-rtsp-server.html
/usr/local/Cellar/gst-rtsp-server/1.16.0_1 (39 files, 1.8MB) *
Poured from bottle on 2019-07-07 at 00:31:04
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/gst-rtsp-server.rb
==> Dependencies
Build: gobject-introspection ✘, libtool ✔, pkg-config ✔
Required: gettext ✔, gst-plugins-base ✔, gstreamer ✔
==> Analytics
install: 171 (30 days), 529 (90 days), 1,683 (365 days)
install_on_request: 170 (30 days), 524 (90 days), 1,661 (365 days)
build_error: 0 (30 days)
```