OBS streaming UDP to ffmpeg to v4l2-loopback?

pocock

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
udp://laptop:55555

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


ffplay -fflags nobuffer -flags low_delay udp://192.168.1.10:5555


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://192.168.1.10:55555 -f v4l2 /dev/video2

ffmpeg -i udp://192.168.1.10:55555 \
-vcodec rawvideo \
-pix_fmt yuv420p \
-f v4l2 \
/dev/video2

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
 
Top