![]() Hopefully someone can help with this, apologies if this is a duplicate question but as mentioned, I have tried searching, a lot. etc) use the following command: ffmpeg -r 60 -f image2 -s 1920x1080 -i pic04d.png -vcodec libx264 -crf 25 -pixfmt yuv420p test.mp4 where the 04d means that zeros will be padded until the length of the string is 4 i.e 0001 0020 0030 2000 and so on. I know the %d is looking for an input from the list at the end but from what I can see this is also the way to tell the FFMPEG to use all files in the image location. To take a list of images that are padded with zeros ( pic0001.png, pic0002.png. I have tried searching for a solution but not getting anywhere fast. ![]() TypeError: %d format: a number is required, not str (screen_resolution, image_location, subfolder, count, preset, qaulity, duplicated_frame, video_path, video_filename), shell = True) Proc = subprocess.Popen("C:\\ffmpeg\\ffmpeg.exe -r 1 -f image2 -s %s \ This is my code for generating the video: def create_video(screen_resolution, image_location, subfolder, count, preset, qaulity, duplicated_frame, video_path, video_filename): I have some code that takes a snapshot of the screen every X seconds and then creates a video out of these files however I am having issues when creating the video. I am fairly new to Python and this is my first time using ffmpeg (basing this code on a colleagues).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |