[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:55:29 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 Gyan):

 There's a hack method which works if you use a build from earlier than
 23rd Dec 2016.

 `ffmpeg -f lavfi -i color=000000 -i 7GPW_LivingRoom.gif -filter_complex
 "[1]reverse,trim=end_frame=1[t];[1][t]concat[g];[0][g]scale2ref[bg][gif];[bg]setsar=1[bg];[bg][gif]overlay=shortest=1,scale=-2:-2"
 livingroom.mp4`

 The idea is to duplicate the last frame of the GIF and append it to
 itself, and use that going forward. The reason for the 23 Dec 2016 cutoff
 is because there's a bug (#6292) with some video filters at present,
 involving the shortest option.

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


More information about the FFmpeg-trac mailing list