Webcam Notes

required hardware

computer
webcam
microphone

required software

v4l-utils
v4l2loopback
akmod-v4l2loopback
obs-studio
ffmpeg
pavucontrol

module options for video loopback

/etc/modprobe.d/v4l2loopback.conf

options v4l2loopback exclusive_caps=1 video_nr=10,11 card_label="OBS Virtual Camera,WebCam Loopback"

list input devices and formats

v4l2-ctl --list-devices

ffmpeg -f v4l2 -list_formats all -i /dev/video0

create audio sink

pactl load-module module-null-sink sink_name=vidcon_input sink_properties=device.description=vidcon_input

pactl load-module module-remap-source master=vidcon_input.monitor source_name=vidcon_mic source_properties=device.description="vidcon_mic"

redirect web cam to loopback device

ffmpeg -f v4l2 -input_format mjpeg -framerate 60 -video_size 1920x1080 -i /dev/video0 -pix_fmt yuyv422 -f v4l2 /dev/video11

OBS settings

In OBS add the WebCam Loopback as a webcam source.

In OBS dd the actual microphone device as a microphone device.

In OBS click the Start Virtual Camera button to output your scene to the OBS Virtual Camera

In the playback tab of pavucontrol set the OBS-Monitor to output to vidcon_input.

In the Meet, Zoom, etc... select the OBS Virtual Camera and vidcon_mic as your inputs