[FFmpeg-user] Last frame with wrong duration - video from images
lsbplsb at yahoo.com
Mon Jun 22 20:34:50 EEST 2020
I have two images named figur001.png and figur002.png that I want to make a video of 10 seconds, each figure being displayed for 5 seconds.
ffmpeg -framerate 1/5 -i figur%03d.png -c:v libx264 -pix_fmt yuv420p -r 30 -vf scale=1920:1080 video.mp4
It seems that the full duration is 10 seconds because ffmpeg displays this:
Duration: 00:00:10.00, start: 0.000000, bitrate: N/A
However, using mplayer or vlc to play the video, the first image is showed during 5 seconds (as it should be) but the second image no.
The second image is displayed by less than a second (0.1s maybe)
Any ideas on how to solve this?
More information about the ffmpeg-user