How to use Sony cameras as webcam in Linux #

I've finally found a setup that allows me to get good picture quality on video calls and in youtube videos, while keeping the number of hacks and configuration necessary at zero level.

Now I'm using a Sony a6400 camera with a simple HDMI cable, and a cheap $10 HDMI to USB capture card. It allows the camera to be detected in my system as a plain old webcam, while keeping all the benefits of a good camera, like autofocus and good color balance.

Most guides on the internet will tell you to use companion software from the vendor, and connect the cameras through USB directly. But this has a few shortcomings: