H264 via RTSP to v4l2loopback device

Pedro Lacerda pslacerda at gmail.com
Mon Oct 12 22:25:43 PDT 2015


You could simply try the following pipeline and let the uridecodebin
negotiate the format:

gst-launch-1.0 uridecodebin uri=rtsp://127.0.0.1:8554/h264 ! queue !
v4l2sink device=/dev/video1



ab├žs,
Pedro Lacerda

2015-10-01 11:37 GMT-03:00 Jhonata Poma <jpoma at movia.biz>:

> Hello, i've got a local server streaming h264 video over rtsp.
> I can connect to the stream and see it using:
>
> gst-launch-1.0 -v rtspsrc location=rtsp://127.0.0.1:8554/h264 !
> rtph264depay ! avdec_h264 ! autovideosink sync=false
>
> What I aim to do, is sinking on a dummy device created using v4l2loopback
> on /dev/video1
> so: /dev/video0 will provide the stream and /dev/video1 will be used by
> motion to detect movements.
>
> I'm trying to do it by:
>
> gst-launch-1.0 -v rtspsrc location=rtsp://127.0.0.1:8554/h264 ! decodebin
> name=demux \
> demux. ! queue ! videoconvert ! video/x-raw,format=\(string\)YUY2 !
> v4l2sink device=/dev/video1
>
> unfortunately, I get only grey images with some outlines of the subject. I
> guess I'm converting it in a wrong way.
>
> Any hints?
>
> J
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151013/f17d81a0/attachment-0001.html>


More information about the gstreamer-devel mailing list