Skip to content

Instantly share code, notes, and snippets.

@ascorbic-acid
Created October 26, 2022 15:39
Show Gist options
  • Save ascorbic-acid/951973f44382991d9af7ea487dcfb318 to your computer and use it in GitHub Desktop.
Save ascorbic-acid/951973f44382991d9af7ea487dcfb318 to your computer and use it in GitHub Desktop.
Create Linux Fake Camera from a Photo
--first install:
sudo apt install v4l2loopback-dkms
sudo apt install ffmpeg
--then run:
ffmpeg -loop 1 -re -i /path/to/picture.png -f v4l2 -vcodec rawvideo -pix_fmt yuv420p /dev/video0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment