gif speed is very fast

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
owenclements
Posts: 1
Joined: 2019-08-02T22:54:03-07:00
Authentication code: 1152

gif speed is very fast

Post by owenclements »

Hi all, I am a Linux user in which I have used the "convert" command to get a list of images from a .mov file and converting those images into a .gif.

While the process works, whenever I used the ImageMagick application to open the .gif files, the speed that it is playing the .gif is very fast, and there is a need for me to click on the "speed" button followed by the "slower" option so as to match the speed with the .mov.

My question would be wow can I check or ensure that the .gif animation is playing at its 'supposed' speed/ framerate? (Using either the Faster/ Slower speed does not seems to assure me that I am converting my .gif animation correctly..)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: gif speed is very fast

Post by fmw42 »

What was your command to convert the files to gif? Did you include -delay XXX. See https://imagemagick.org/Usage/anim_basics/ and https://imagemagick.org/script/command- ... .php#delay

What is your Imagemagick version?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: gif speed is very fast

Post by snibgo »

I don't think IM will automatically set the delay rate. You can get this from ffmpeg or ffprobe:

Code: Select all

ffprobe ball4.mov
:
:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ball4.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    creation_time   : 1970-01-01 00:00:00
  Duration: 00:00:00.04, start: 0.000000, bitrate: 374 kb/s
    Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p
, 32x32 [SAR 1:1 DAR 1:1], 228 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : DataHandler
This movie is 25 fps, so "-delay 4" should work.
snibgo's IM pages: im.snibgo.com
Post Reply