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 @ 
, 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

But it reports an error when we pull it.

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

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,
Progress: (open) Opening Stream
Progress: (connect) Connecting to
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 ():
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 ...
#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.

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

More information about the gstreamer-devel mailing list