Trying to get video/x-raw from rtsp stream

Jim Ruxton jim.ruxton at gmail.com
Thu May 7 09:10:22 UTC 2020


I am running gstreamer in Ubuntu 19.10 and having troubles getting a 
pipeline to work.
This pipeline :

/gst-launch-1.0 videotestsrc ! v4l2sink device=/dev/video2/**

works as expected and sends the videotestsrc to my /dev/video2 device 
however I want to send a rtsp stream to /dev/video2.

I have tried the following which I expected to work but it doesn't work.
*/
/* /
/

/gst-launch-1.0 rtspsrc 
location=rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa 
! decodebin ! videoconvert ! video/x-raw,width=640,height=480,format=RGB 
! v4l2sink device=/dev/video2/


Output of the command is:

Setting pipeline to PAUSED ... Pipeline is live and does not need 
PREROLL ... Progress: (open) Opening Stream Progress: (connect) 
Connecting to 
rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa 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 Got context from element 
'vaapipostproc0': gst.gl.GLDisplay=context, 
gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0"; 
Got context from element 'vaapipostproc0': gst.vaapi.Display=context, 
gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayDRM\)\ 
vaapidisplaydrm1";


How can I get the same video/x-raw output format from rtspsrc as I did 
from videotestsrc? I would really appreciate any pointers. I have tried 
a bunch of things with no good results.
Thanks,
Jim


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200507/f0b94a20/attachment.htm>


More information about the gstreamer-devel mailing list