[FFmpeg-trac] #6294(avfilter:open): gif frame delay dropped from last frame when scale filter is used

FFmpeg trac at avcodec.org
Tue Apr 11 23:16:24 EEST 2017


#6294: gif frame delay dropped from last frame when scale filter is used
------------------------------------+------------------------------------
             Reporter:  okor        |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avfilter
              Version:  git-master  |               Resolution:
             Keywords:  fps         |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by okor):

 Ah, so it does. The other filter I'm using with gifs creates a canvas to
 set the background color for transparent regions in gifs: `ffmpeg -f lavfi
 -i color=000000 -i livingroom.gif -filter_complex
 "[0][1]scale2ref[bg][gif];[bg]setsar=1[bg];[bg][gif]overlay=shortest=1,
 scale=-2:-2" livingroom.mp4`

 And that results in a 2 second video yet again.

 Or just with the canvas filter: `ffmpeg -f lavfi -i color=000000 -i
 livingroom.gif -filter_complex
 "[0][1]scale2ref[bg][gif];[bg]setsar=1[bg];[bg][gif]overlay=shortest=1,
 scale=-2:-2" livingroom.mp4`

 Same thing, a 2 second video where I'd expect a 4 second video.

 So maybe some filters break the gif timings and others do not? And
 possibly all simple filters.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6294#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list