I have a local video and I want to stream it to a dummy webcam video device from v4l2loopback. I created the dummy device at /dev/video1. How to use ffmpeg to steam that local video trial_video.mp4 to the dummy device?
Asked
Active
Viewed 3,299 times
4
slm
- 363,520
- 117
- 767
- 871
Anks_Eagle
- 43
- 1
- 5
1 Answers
4
Based on this AU Q&A titled: Is there any way ffmpeg send video to /dev/video0 on Ubuntu? you can do the following:
$ ffmpeg -re -i trial_video.mp4 -map 0:v -f v4l2 /dev/video1
slm
- 363,520
- 117
- 767
- 871