Static image fake webcam
This post describes how to create a dummy webcam that will provide stream of static image.
- Install v4l2loopback.
Make sure version of current kernel (uname -r) matches the version ofkernel-develpackage. -
Activate compiled kernel module
sudo modprobe v4l2loopback -
Provided previous step created new device
/dev/video1, instructffmpegto fed the video device by image dataffmpeg -loop 1 -re -i <path-to-the-image> -f v4l2 -vcodec rawvideo -pix_fmt yuv420p /dev/video1
Reference: https://github.com/umlaeute/v4l2loopback/wiki/Ffmpeg