I am trying to use ffmpeg
to create a video out of an image file that is overwritten constantly. I'm checking the documentation and I can see this is achievable in reverse:
ffmpeg -y -f v4l2 -video_size 1280x720 -i /dev/video0 \
-r 0.2 -qscale:v 2 -update 1 /tmp/webcam.jpg
Is there a way I can recreate this video file from this /tmp/webcam.jpg
file that is being overwritten constantly with the new frame? Ie: Specify a time to loop over the same image?
In this case, an application is sending a new image every split second via a socket and being saved to /tmp/image.jpg
. I need to convert it to a one minute video for example whilst that image is being rewritten.