Can't get RTSP stream

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't get RTSP stream

AtomicJosh
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@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@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/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Can't get RTSP stream

Nicolas Dufresne-5
Le mardi 17 avril 2018 à 11:15 -0700, AtomicJosh a écrit :

> 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@tegra-ubuntu:~$ gst-launch-1.0 rtspsrc
> location=rtsp://192.168.2.119/554/h264 ! rtph264depay ! h264parse !
> omxh264dec ! nveglglessink
> Setting pipeline to PAUSED ...
If you pick a recent GStreamer version and avoids nvivida's plugins,
does it still fails ?

>
> 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@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/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (201 bytes) Download Attachment