[8.0ß3] Animated GIFs speed is too high

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

User avatar
Flint
Power Member
Power Member
Posts: 3503
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

[8.0ß3] Animated GIFs speed is too high

Post by *Flint »

Sample image:
http://www.hlcomic.com/images/82anim.gif
If you open it in web browser, IrfanView or Imagine, the ball bounces with period ~1 sec. In TC 8.0's Lister without plugins the animation is ~5 times faster.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It is a matter of taste which speed program should choose. Sample GIF have no delays set for any frame. Try to set frame delays and test it. Test this image, TC shows it with correct speed (for 1s per frame).
Last edited by MVV on 2011-09-30, 12:17 UTC, edited 2 times in total.
User avatar
Flint
Power Member
Power Member
Posts: 3503
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

MVV wrote:It is a matter of taste which speed program should choose. Sample GIF have no delays set for any frame.
Unfortunately, I do not know the GIF format, but I tested it in 6 different programs (Opera, IE, Firefox, IrfanView, Imagine, default Windows viewer) and all they showed it with the same speed. In such situation I tend to think that TC is doing something wrong. Maybe, there is a standard for default delay value? Or not a standard, but just common practice?
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for the image, I can see it too. Maybe GDI+ is reporting wrong values? I will check it.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Flint, Imagine plugin has Animation factory tool that allows to see and change delays for frames.

However fast animation allows to see blinking that lack of double-bufferzation causes.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed the delay between frames is stored in the image itself. Lister should actually handle that. I will check why it fails with that specific image.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16027
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2ghisler(Author)

The delay of this specific image is set to 0 - so actually GDI+ is doing correctly. With Imagine plugin you can select to set a minimum delay time for each frame. If that is disabled the gif looks the same with Imagine and GDI+
Last edited by petermad on 2011-10-07, 18:08 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Flint
Power Member
Power Member
Posts: 3503
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

petermad wrote:If that is disabled the gif looks the same with Imagine and GDI+
But not with all other programs…
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
petermad
Power Member
Power Member
Posts: 16027
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Well, QuickTime Player shows it with no frame delay. But I admit, that it is the only program that I could find on my system that does that.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think TC may provide a parameter for minimal gif frame delay. :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I will use a minimum of 80 ms, that seems to be used by browsers like Firefox.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Christian, INI parameter won't harm anyway. E.g. if there is a gif movie that requires fast frame rate, it will slow it down...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will consider it.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Fixed in b4.
Thanks for GifMinDelay parameter, it works perfectly. :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for confirming the fix! The parameter is not in the help yet because it's experimental.
Author of Total Commander
https://www.ghisler.com
Post Reply