Hacker News new | ask | show | jobs
by izoow 815 days ago
I don't want to come off as overly harsh, but calling this "Virtual Camera for Linux written in Python" seems a bit too generous considering all this seems to do is ask you for an input file and an output device and then call `ffmpeg -re -i {input_file} -f v4l2 {selected_device}`. Cool idea though, I didn't know you can do this that easily with ffmpeg.
2 comments

I use a similar trick + gphoto to use my digital camera as a webcam, works great even on my old hardware:

    gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video10
I'd sometimes use my Android phone as a webcam by running an app like "IP Webcam" that exposes a video stream of the camera feed and then using the video stream as input for ffmpeg.
Yeh it's a neat script but not really much more.