What I am trying to achive is to redirect my camera /dev/video0
with a custom video file.
Desired Reasult:
When opened a application like cheese or websites like jitsi which process the buffer from my camera. Is it possible to use already captured video file as camera input.
Previous attempt:
I followed a answer from this answer but i am getting a error message as
[video4linux2,v4l2 @ 0x556927267880] ioctl(VIDIOC_G_FMT): Invalid argument
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 --
Conversion failed!
on executing the command
ffmpeg -re -i ~/Videos/Webcam/sample.webm -map 0:v -f v4l2 /dev/video0
ffmpeg
command… you should be good to go. – Raffa May 27 '21 at 20:17apt policy v4l2loopback-utils v4l2loopback-dkms
and check your installed version...0.12.2-1
works fine but earlier and later versions have issues. The kind of error you get tells me you most likely have a version grater than0.12.2-1
installed... I have seen this error before. – Raffa May 27 '21 at 23:39