gspolew.blogg.se

Quotes in ffmpeg command line
Quotes in ffmpeg command line






Os.system('ffmpeg -r 24 -pattern_type glob -i ' + dir + '/*.jpg -c:v copy -codec mpeg4 -q 1 ' + dir + '/timelapse.mp4') Ts=time.strftime('%H%M%S', time.gmtime()) # Create directory based on current timestamp. # The image is then saved with the name img-timestamp.jpg. # The timestamp has to be in the loop so it takes a current time for each photo. # A loop that takes pictures and names them with the time and date. # Gets the camera on and allows it time to detect light levels # A resolution of 1920 x 1080 is approx 1.1MB per photo. # Change the resolution if you want better/lower quality. # Makes a shorter name for the Pi camera, and sets the resolution.








Quotes in ffmpeg command line