Created
May 10, 2021 23:06
-
-
Save Snuggle/e17fe544fbab16fde91e5a7533b14391 to your computer and use it in GitHub Desktop.
Elgato Cam Link 4K on GNU/Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As people have said it works in OBS easy enough, to get it working in Chrome as a webcam I had to use a loopback to fix the color space RockApe alluded to: | |
sudo modprobe v4l2loopback devices=1 exclusive_caps=1 | |
v4l2-ctl --list-devices # Get the video devices for the camlink and dummy. | |
ELGATO=/dev/video2 | |
V4LOOP=/dev/video4 | |
ffmpeg -f v4l2 -input_format yuyv422 -framerate 60 -video_size 1920x1080 -i $ELGATO -pix_fmt yuyv422 -codec copy -f v4l2 $V4LOOP | |
Now select the dummy in chrome for your webcam. | |
The v4l2 loopback ubuntu package is v4l2loopback-dkms, if you get ffmpeg error | |
# ioctl(VIDIOC_G_FMT): Invalid argument | |
You probably need to build from source / newest version | |
The ffmpeg with -codec copy uses only 8% cpu on a Lenovo X1, so no concerns there. | |
(Source: https://www.reddit.com/r/linuxhardware/comments/dzqmvq/did_anyone_tried_an_elgato_cam_link_4k_on_gnulinux/fjdsx96?utm_source=share&utm_medium=web2x&context=3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment