Can't get RTSP stream
AtomicJosh
jtillett86 at gmail.com
Tue Apr 17 18:15:36 UTC 2018
I can't seem to get Gstreamer to load a RTSP stream from an IP camera. I have
verified the camera works with VLC. This running on a Nvidia TX2 running L4T
28.2 (based on Ubuntu 16.04). GStreamer version is 1.8.3. The pipelines I
have tried are with playbin and rtspsrc. Here are the respective terminal
outputs:
tegra at tegra-ubuntu:~$ gst-launch-1.0 rtspsrc
location=rtsp://192.168.2.119/554/h264 ! rtph264depay ! h264parse !
omxh264dec ! nveglglessink
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://192.168.2.119/554/h264
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
#### It pauses here for about three minutes. Looking at the system monitor,
it gradually uses more CPU and memory until reaching about 105% on CPU, then
giving the following error ####
(gst-launch-1.0:2461): GStreamer-WARNING **: failed to create thread: Error
creating thread: Resource temporarily unavailable
----------------------------------------
tegra at tegra-ubuntu:~$ gst-launch-1.0 playbin uri=rtsp://192.168.2.119/554
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://192.168.2.119/554/
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
#### It pauses here for about three minutes. Looking at the system monitor,
it gradually uses more CPU and memory until reaching about 105% on CPU, then
giving the following error ####
(gst-launch-1.0:2645): GStreamer-WARNING **: failed to create thread: Error
creating thread: Resource temporarily unavailable
----------------------------------------
I can use nvgstplayer-1.0 to play saved video and the script from here
(https://jkjung-avt.github.io/tx2-camera-with-python/) can successfully play
video from the camera built into the TX2. Any ideas on how to resolve this
error?
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list