Created
October 26, 2022 15:39
-
-
Save ascorbic-acid/951973f44382991d9af7ea487dcfb318 to your computer and use it in GitHub Desktop.
Create Linux Fake Camera from a Photo
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
--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