Bug 410908

Summary: GIF/APNG Clip freeze
Product: [Applications] kdenlive Reporter: lmtpublicemail
Component: Video Display & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal CC: fritzibaby
Priority: NOR Flags: fritzibaby: Brainstorm+
Version: 19.08.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Attachments: A sample GIF file affected by the bug.

Description lmtpublicemail 2019-08-14 18:42:22 UTC
imported GIF/APNG files will only ever playback correctly once and then freeze until the clip is manually reloaded. This also affects renders where if a given GIF/APNG clip is in the timeline multiple times it will only render the clip once and the others will not be animated.


STEPS TO REPRODUCE
Import a GIF/APNG File and insert it into the timeline.
Playback the GIF/APNG File and after that all additional playbacks of the GIF/APNG will not be animated.

OBSERVED RESULT
GIF/APNG files only animated correctly once and after that the clip will be frozen on one frame until the clip is reloaded by the User.

EXPECTED RESULT
GIF/APNG should animate every single time they are played back

SOFTWARE/OS VERSIONS
Windows: 10
Comment 1 emohr 2019-08-19 18:31:15 UTC
Thanks for reporting. Please upload here the GIF/APNG file so I can test if this is only a Win10 or a general issue.
Comment 2 lmtpublicemail 2019-08-19 20:35:38 UTC
Created attachment 122249 [details]
A sample GIF file affected by the bug.

Here is the GIF file I used when testing the bug.
Comment 3 lmtpublicemail 2019-08-19 20:42:26 UTC
(In reply to emohr from comment #1)
> Thanks for reporting. Please upload here the GIF/APNG file so I can test if
> this is only a Win10 or a general issue.

I uploaded the GIF file I used. I would also like to mention that I encountered the bug on 2 other systems. One of them has Manjaro Linux installed and the other has Windows 7. I think the Manjaro one wasn't on the latest version (I think it was on 18 rather than 19.04) however the Windows 7 one was using the latest version.
Comment 4 emohr 2019-08-20 16:24:48 UTC
Thanks for uploading the animated gif. Yes I confirm the issue that the animated gif is not playing properly. 

It should import and show with 500x451 pixel and 20 frames as a normal clip. 

In Premiere CS6 it works. It seems that Kdenlive doesn't convert the animated gif to a clip. 

I opened issue https://invent.kde.org/kde/kdenlive/issues/335
Comment 5 emohr 2019-08-23 18:07:32 UTC
You can use following workaround: convert the gif with alpha:

ffmpeg -i original.gif -vcodec qtrle output.mov 

and use the mov file instead.
Comment 6 Julius Künzel 2021-02-22 22:04:33 UTC
Git commit 67c97f74216c1ab3d9093c7138aede55a2492972 by Julius Künzel.
Committed on 22/02/2021 at 22:03.
Pushed by jlskuz into branch 'master'.

Treat GIFs as video, not as image
Fixes #335
Related: bug 411180

M  +1    -1    src/bin/clipcreator.cpp

https://invent.kde.org/multimedia/kdenlive/commit/67c97f74216c1ab3d9093c7138aede55a2492972