[FFmpeg-user] Last frame with wrong duration - video from images
lsbplsb at yahoo.com
Mon Jun 22 22:22:20 EEST 2020
MPlayer 1.3.0 (Debian), built with gcc-8 (C) 2000-2016 MPlayer Team
$ vlc --version
VLC media player 3.0.11 Vetinari (revision 3.0.11-0-gdc0c5ced72)
I'm running debian 10
On Monday, June 22, 2020, 4:18:12 PM GMT-3, Alexander Strasser <eclipse7 at gmx.net> wrote:
On 2020-06-22 17:34 +0000, Leonardo via ffmpeg-user wrote:
> 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.
> After command
> 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)
If you test with MPlayer, please make sure you have a recent build.
I believe the duration of the last frame wasn't respected in old
versions of MPlayer. Sorry, I can't remember the date when it was
added on top of my head. If you post the version output of mplayer,
I will look it up.
More information about the ffmpeg-user