Opened 4 years ago

Last modified 18 months ago

#8915 open enhancement

Stream_loop on some gifs cause animation jitter

Reported by: videouser Owned by:
Priority: wish Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
Some gifs that are looped with -stream_loop cause animations to play incorrectly. I'm not sure about the cause but at first glance it could be due to incorrect delay between frames.

How to reproduce:

% ffmpeg -v 9 -loglevel 99 -report -stream_loop 3 -i inputBear.gif outputWithJitter.gif

ffmpeg version 4.3.1, used the pre-build binary and tested on mac

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Attachments (3)

ffmpeg-20201002-135120.log (7.4 KB ) - added by videouser 4 years ago.
inputBear.gif (31.6 KB ) - added by videouser 4 years ago.
outputWithJitter.gif (905.2 KB ) - added by videouser 4 years ago.

Download all attachments as: .zip

Change History (5)

by videouser, 4 years ago

Attachment: ffmpeg-20201002-135120.log added

by videouser, 4 years ago

Attachment: inputBear.gif added

by videouser, 4 years ago

Attachment: outputWithJitter.gif added

comment:1 by Elon Musk, 4 years ago

Keywords: loop stream_loop gif removed
Priority: importantwish
Status: newopen
Type: defectenhancement

Nothing to do with gif. This is stream_loop issue with last frame duration.

comment:2 by Elon Musk, 18 months ago

Proper way to loop gifs is with -loop [some positive number] option for gif muxer.

ffmpeg -i inputBear.gif -loop 8192 x.gif

Note: See TracTickets for help on using tickets.