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 argumentCould not write header for output file #0 (incorrect codec parameters ?): Invalid argumentError 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