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 |