[FFmpeg-user] Last frame with wrong duration - video from images

Alexander Strasser eclipse7 at gmx.net
Mon Jun 22 22:48:56 EEST 2020


On 2020-06-22 19:22 +0000, Leonardo via ffmpeg-user wrote:
> $ mplayer
> MPlayer 1.3.0 (Debian), built with gcc-8 (C) 2000-2016 MPlayer Team

That is too old unfortunately :(

The timing fix was implemented in SVN revision 37936 and first
released in version 1.4.0 .

I'd advise to build current development (SVN) version of MPlayer.

If you get into trouble building MPlayer, that would be off-topic
for this list. But regarding that you can post on the mplayer-users
mailing list to get help. Or ask on #mplayer on freenode IRC.

Please don't top-post here. If you don't know what it is, look
it up please.


Best regards,
  Alexander


> and
> $ 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:
>
>  Hi!
>
> 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.
>
>
> [...]
>
>   Alexander


More information about the ffmpeg-user mailing list