OBS streaming UDP to ffmpeg to v4l2-loopback?


New Member
I asked the same question in the ffmpeg-users mailing list and I feel that any answers may be equally useful here in the OBS forum.

I have configured OBS on a workstation to send a UDP stream to

I can receive the stream with an ffplay command like this:

ffplay -fflags nobuffer -flags low_delay udp://

Instead of showing the stream in the ffplay window, I would like ffmpeg
to send it to v4l2-loopback

I tried some commands like this:

ffmpeg -i udp:// -f v4l2 /dev/video2

ffmpeg -i udp:// \
-vcodec rawvideo \
-pix_fmt yuv420p \
-f v4l2 \

The guvcview utility refuses to open the device /dev/video2

In Firefox, I can select the /dev/video2 webcam and it shows an image
that is intensely green

Can anybody suggest a more specific ffmpeg or ffplay command line for
this scenario?

The package versions are v4l2-loopback 0.12.5-1 and ffmpeg 7:4.3.4-0+deb11u1