![]() ![]() ![]() One workaround is -as shown in the answer above- to fake the effect of 1 FPS by duplicating the images (when we actually have an FPS equals to 10 or more, which is ok for VLC).Įxample: if you have a folder with 12 images, and you would like to generate a video with 1 FPS (which is playable in VLC), then you need to duplicate each image multiple times (let's say 10 times), and then tell FFMPEG to generate a 10 FPS video. So there is currently no clean way to get a video with 1 FPS which is playable in VLC ( don't give up, keep reading). So all videos with 10 FPS or more shouldn't be a problem. After some experiments I realized that VLC crashes for videos with FPS less than 10. This is a bug in VLC (which still exists in version 3.0.6). That's just over double the size, and nowhere near 24 times the size. I then produced a video with the same input images but output at 24 FPS, and it came out to 5.76 kiB. ![]() To test this, I just produced a true 1-FPS video, which came out to 2.24 kiB. ![]() Of course, the command above means each original image is being multiplied, but it is a simpler method than the "slow it down" one you mentioned, and depending on the codec it may not produce a video much larger than a true 1-FPS video. I tested many different output framerates, and 10 seems to be the lowest number you can use that will still produce a video that VLC will play. It is required here, for example, for the video to be playable by Windows Media Player.) (The -pix_fmt yuv420p is just there to ensure compatibility with a wide range of playback programs. The -r 10 means the video will play at 10 frames per second. The -r 1 means the video will play at 1 of the original images per second. If you want a one-liner for FFMPEG that generates a video that plays at 1 frame per second, what you want to do is specify framerates for both input and output, like this:įfmpeg -r 1 -i data/input-%4d.png -pix_fmt yuv420p -r 10 data/output.mp4 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |