Created
December 29, 2015 21:48
-
-
Save zburgermeiszter/42b651a11f17578d9787 to your computer and use it in GitHub Desktop.
Loop video file as fake webcam device with ffmpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -re -f concat -i <(for i in {1..9999}; do printf "file '%s'\n" input.mp4; done) -f v4l2 /dev/video1 && !! |
You can also use the stream_loop
parameter and set it to -1
for infinity.
ffmpeg -stream_loop -1 -re -i input.mp4 -map 0:v -f v4l2 /dev/video1
You can also use the
stream_loop
parameter and set it to-1
for infinity.
ffmpeg -stream_loop -1 -re -i input.mp4 -map 0:v -f v4l2 /dev/video1
Thank you 🙏
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get a syntax error upon trying to use this
./main.sh: 1: Syntax error: "(" unexpected