Opened 4 weeks ago

Last modified 4 weeks ago

#10941 new defect

Delay time of last frame is ignored for GIFs when using movie filter

Reported by: Srikanth Kotagiri Owned by:
Priority: important Component: undetermined
Version: 6.1 Keywords: movie, gif, vfr
Cc: Srikanth Kotagiri Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Srikanth Kotagiri)

Summary of the bug:

I have a sample GIF image where the last frame has a long delay of 10 seconds and total duration of 10.15 seconds.

When I use ffmpeg -i messy.gif -vf fps=100 test.mp4, it creates an mp4 file with 1015 frames as expected. I see that the fps filter received EOF with correct timestamp.

[Parsed_fps_0 @ 0x600003488210] EOF is at pts 1015

However when I try to use the movie filter to read a GIF file the EOF packet has timestamp of 16. [Parsed_fps_0 @ 0x600000f94000] EOF is at pts 16 and the output file only has 16 frames instead of 1015.
I am attaching the GIF file, and the ffmpeg logs to this ticket. I think this is a bug in movie filter, but it could be anywhere in the source pipeline.

How to reproduce:

% ffmpeg -f lavfi -i movie=messy.gif  -vf fps=100 output.mp4

//full log attached to ticket

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

Attachments (3)

messy.gif (154.0 KB ) - added by Srikanth Kotagiri 4 weeks ago.
Source gif file with last frame delay
ffmpeg-correct.log (181.8 KB ) - added by Srikanth Kotagiri 4 weeks ago.
Log file with correct behavior
ffmpeg-wrong.log (13.1 KB ) - added by Srikanth Kotagiri 4 weeks ago.
ffmpeg log with wrong behavior

Download all attachments as: .zip

Change History (4)

by Srikanth Kotagiri, 4 weeks ago

Attachment: messy.gif added

Source gif file with last frame delay

by Srikanth Kotagiri, 4 weeks ago

Attachment: ffmpeg-correct.log added

Log file with correct behavior

by Srikanth Kotagiri, 4 weeks ago

Attachment: ffmpeg-wrong.log added

ffmpeg log with wrong behavior

comment:1 by Srikanth Kotagiri, 4 weeks ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.