push the stream in appsrc with gst-rtsp-server

EthanYYYY 1556856560 at qq.com
Tue Sep 25 03:11:13 UTC 2018


Hello everyone,
We want to use RTSP to push the stream, so we installed RTSPserver on TX2
and compiled test-appsrc.c @ 
https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-appsrc.c
<https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-appsrc.c> 
, then we execute test-appsrc.

sudo apt-get install libgstrtspserver-1.0 -y
gcc test-appsrc.c -o test-launch $(pkg-config --cflags --libs gstreamer-1.0
gstreamer-rtsp-server-1.0)
./test-appsrc

But it reports an error when we pull it.

gst-launch-1.0 \
	rtspsrc location=rtsp://nvidia:nvidia@192.168.1.155:8554/test ! \
	rtph264depay ! \
        h264parse ! \
	omxh264dec ! \
	videoscale ! video/x-raw, width=600, height=400 ! \
	videoconvert ! \
	nveglglessink

The error is:

Setting pipeline to PAUSED ...

Using winsys: x11 
Pipeline is live and does not need PREROLL ...
Got context from element 'eglglessink0': gst.egl.EGLDisplay=context,
display=(GstEGLDisplay)NULL;
Progress: (open) Opening Stream
Progress: (connect) Connecting to
rtsp://nvidia:nvidia@192.168.1.155:8554/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not
read from resource.
Additional debug info:
gstrtspsrc.c(5670): gst_rtspsrc_send ():
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Got error response: 503 (Service Unavailable).
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Caught SIGSEGV
#0  0x0000007fa6bd1130 in pthread_join (threadid=548195525120, 
#1  0x0000007fa6c87ed0 in ?? () from /lib/aarch64-linux-gnu/libglib-2.0.so.0
#2  0x0000000000000011 in ?? ()
Spinning.  Please run 'gdb gst-launch-1.0 10948' to continue debugging,
Ctrl-C to quit, or Ctrl-\ to dump core

We have been looking for a long time but for the reason.
Please Let us know the appropriate commands to be used.
Thanks
Ethan




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list