Skip to content

Install packages

yay -S uxplay obs-gstreamer
sudo pacman -S gst-plugins-good gst-plugins-bad gst-libav
sudo systemctl enable --now avahi-daemon

Start UxPlay and forward video over UDP

uxplay -vrtp "config-interval=1 ! udpsink host=127.0.0.1 port=5000"

GStreamer pipeline for the OBS GStreamer source

udpsrc port=5000 ! application/x-rtp,media=video,encoding-name=H264,payload=96 ! rtph264depay ! decodebin ! videoconvert ! video

Fixing the Black Screen on Scene Switch

In the GStreamer source properties in OBS, untick "Stop pipeline when hidden". If you still get brief black frames, add a leaky queue:

udpsrc port=5000 ! application/x-rtp,media=video,encoding-name=H264,payload=96 ! rtph264depay ! h264parse ! queue leaky=downstream ! decodebin ! videoconvert ! video

Diagnosing the Monochrome ThinkPad Webcam

List camera devices:

v4l2-ctl --list-devices

Check supported formats on each node, replacing N with the device number:

v4l2-ctl -d /dev/videoN --list-formats

Get more detail on a specific node:

v4l2-ctl -d /dev/videoN --info

The colour sensor usually supports MJPG or YUYV. The IR sensor usually only supports a greyscale format. Once you find the colour node, select it in OBS under the Video Capture Device source properties.