H264 via RTSP to v4l2loopback device

Jhonata Poma jpoma at movia.biz
Thu Oct 1 07:37:12 PDT 2015

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:// !
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:// ! 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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151001/ce2142d7/attachment.html>

More information about the gstreamer-devel mailing list