Debian-Buster-Stream-to-virtual-Video-Device

From Personal Knowledgebase

This is an How to for Streaming a Desktop and or multible Video devices to a virtual Video device via OBS Studio and ffmpeg:

Install Packages

sudo apt install v4l-utils v4l2loopback-utils obs-studio v4l2loopback-dkms

Add virtual Webcam

sudo modprobe v4l2loopback devices=1 video_nr=10 card_label="OBS Cam" exclusive_caps=1

Add virtual mic

sudo modprobe snd-aloop index=10 id="OBS Mic"

Configure OBS

Set Streaming Server

Set-streaming-Server













Streaming output Settings

Streaming Output Settings































Enable your mic

Enable your mic




















Start the ffmpeg Server

ffmpeg -probesize 32 -analyzeduration 0 -listen 1 -i rtmp://127.0.0.1:1935/live/test -map 0:1 -f v4l2 -vcodec rawvideo /dev/video10 -map 0:0 -f alsa hw:10,1

Start Streaming in OBS

The Stream should now be available at /dev/video10 as virtual Web-Cam