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=<a class="moz-txt-link-freetext" href="rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa">rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa ! decodebin ! videoconvert ! video/x-raw,width=640,height=480,format=RGB ! v4l2sink device=/dev/video2
Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Progress: (open) Opening Stream Progress: (connect) Connecting to <a class="moz-txt-link-freetext" href="rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa">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 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi,
I think you need to use rtspclientsync to send media to rstp. I use this for audio: gst-launch-1.0 filesrc location=ogg.ogg ! oggdemux ! rtspclientsink do-timestamp=1 debug=true latency=0 location=rtsp://127.0.0.1:8554/test/record Eric -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks Eric. In my case rtsp is my source not my sync. /dev/video2 is my sink. Jim Ji On Thu., May 7, 2020, 9:45 a.m. desjare, <[hidden email]> wrote: Hi, _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by desjare
Following up on this I got the rtstp stream into /dev/video2 to work using this pipeline:
gst-launch-1.0 rtspsrc location=<a class="moz-txt-link-freetext" href="rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa">rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa ! rtph264depay ! avdec_h264 ! decodebin ! videoconvert ! "video/x-raw,format=YUY2" ! v4l2sink device=/dev/video2
Jim
On 2020-05-07 8:34 a.m., desjare wrote:
Hi, I think you need to use rtspclientsync to send media to rstp. I use this for audio: gst-launch-1.0 filesrc location=ogg.ogg ! oggdemux ! rtspclientsink do-timestamp=1 debug=true latency=0 location=<a class="moz-txt-link-freetext" href="rtsp://127.0.0.1:8554/test/record">rtsp://127.0.0.1:8554/test/record Eric -- 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 |
In reply to this post by Jim Ruxton
Hi,
Try removing the vaapi elements Edward On Thu, 2020-05-07 at 05:10 -0400, Jim Ruxton wrote: > 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/470011e600ef003a004ee33696235d > aa ! 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 > > > _______________________________________________ > 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 |
Free forum by Nabble | Edit this page |