I have a series of 4 900x650 images from which I want to make a 6 second video. My (mis?)understanding was that my specified frame rate would display each image for 1.5 seconds.
The resulting video has a length of 6 seconds, but only seems to play for the first 4 or 5 seconds before skipping to the end. The image files are appropriately named. The preset file and the crf came from another source and I would prefer to not change.
- Place "-f image2" option in front of the "-i" option to make sure the image sequence is handled correctly.
- Avoid muxing codecs into AVI files that are not Intra-Frame only. Avi just does not have the proper mechanisms for dealing with it. Many players have work-arounds to make it work, but each of them implement that their own way so there is no guarantee of consistency. With x264, use something like mp4, mpeg-ts, mkv, etc...
- Another thing about non-Intra-Frame codecs: They are not going to work well with a "slide show" video like this. They encode across multiple frames looking for similarities between frames. Unless the gifs are a continuous video sequence, this will not work well and will smear badly. Try using something like MJPEG. (Which BTW, _does_ work well in an AVI file)
- Nit-pick: frame rates are best represented as numerator/denominator. So instead of "-r 0.667" use "-r 3/2"
- Most importantly: many players do not support low frame rates like this very well at all. ffplay generally shows them correctly, so does the window's wmplayer oddly enough. But many players do not. Even ones based off of ffmpeg's av libraries like VLC or mplayer. Make sure the playback problem isn't just a problem with the player.