[FFmpeg-user] OBS streaming UDP -> ffmpeg -> v4l2-loopback ?

Daniel Pocock daniel at pocock.pro
Sun Aug 7 23:09:35 EEST 2022


Hi all,

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

Regards,

Daniel

-- 
https://danielpocock.com
Follow with RSS: https://danielpocock.com/rss.xml


More information about the ffmpeg-user mailing list