Video Production Asked on November 27, 2020
I have a camera which when motion is detected uploads JPG files at roughly one a second — so I want to take them and convert them back to video.
For the uploaded files
So I want to use a script to make these into a video – I’d like to
For compression, I feel that the common background and large sections of unchanging video should be highly compressible
I’ll be able to write the scripts which would include
– the selection of the right set of files to include in each video
– production of an intermediate parameter file
– calculation of time span of each still image
– determination of end of movie — including still currently recording
I’m running on a Window’s laptop — but would consider a Raspberry Pi or Ubuntu system.
I’ve looked at FFmpeg but got a little lost of where to start — I did find possible-to-stream-append-images-into-an-existing-mp4. Which is close and I can start with this. However, one answer seemed to be saying that this may cause loss of fidelity with a comment saying no it won’t. Also, I am unsure about how to make the JPGs extend to different lengths and how to watermark a time stamp onto each image
So my questions are
What tool and encoding format is a good match with what I want ?
Should I make the script wait until the files are fully produced or is it possible to append one JPG file to the movie stream at a time with parameters without excessive loss of fidelity?
Is timestamping best done with a watermark on the video – or with some metadata tagging and require the renderer to display timestamps?
I have included one image from the camera
I would use shell scripting thus:
ffmpeg can create a video from an image sequence where the files are named
frame_000.jpg, frame_001.jpeg, frame_002.jpg… thus:
ffmpeg -i frame_%03d.jpg -r 1 output.mp4
-r 1 option sets the frame rate to 1 per second. If the sequence doesn't start with 000 then you can use
-start_number 123 to specify the first frame. more details here
Answered by stib on November 27, 2020
2 Asked on October 28, 2021 by talad88955
2 Asked on October 28, 2021 by daniel-ferreira-castro
1 Asked on October 28, 2021 by skyguy
0 Asked on October 28, 2021 by alwayslearning
1 Asked on October 28, 2021 by kvill
1 Asked on October 28, 2021 by oleksandr-osheko
0 Asked on February 26, 2021 by hashim-aziz
1 Asked on February 19, 2021 by sanchez
2 Asked on February 19, 2021 by thsoft
0 Asked on February 18, 2021 by michael-kahn
3 Asked on February 16, 2021 by gerlof-leuhof
1 Asked on February 2, 2021 by franco-grech
1 Asked on January 25, 2021 by p-jadhav
0 Asked on January 19, 2021 by santhosh
0 Asked on January 19, 2021 by user310291
Get help from others!