Delay not honoured when joining .jpg files into a .mp4

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
rmwiseman
Posts: 1
Joined: 2019-03-14T03:30:05-07:00
Authentication code: 1152

Delay not honoured when joining .jpg files into a .mp4

Post by rmwiseman » 2019-03-14T03:45:45-07:00

To be more precise, a similar delay is used, but from what I've found, it seems to be quantised.

I converted a couple of sequences of JPEGs into movies; the first had 554 images, the second had 665.

I tried integer delays (i.e. values for the -delay switch) from 2 to 11 and found that:
  • 2, 3 and 4 all ended up with a delay of exactly 0.04 seconds between frames (equivalent, I believe, to -delay 4) in both movies, based upon the number of frames and the duration ffprobe (and my movie player, though this rounds to the nearest second) reported for the movie;
  • 5, 6, and 7 all ended up with a delay of exactly 0.08 seconds (which is what I'd expect from -delay 8) in both movies;
  • 8, 9 and 10 all ended up with a delay of exactly 0.12 seconds (which is what I'd expect from -delay 12) in both movies; and
  • 11 ended up with a delay of exactly 0.16 seconds (which is what I'd expect from -delay 16) in both movies.
Have I missed some configuration? Even if I have, I assumed the delay shouldn't be quantised like this!

Thanks in advance of any thoughts.

snibgo
Posts: 11929
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Delay not honoured when joining .jpg files into a .mp4

Post by snibgo » 2019-03-14T06:25:09-07:00

What version of IM, on what platform? What were your exact commands?

IM will delegate the work to ffmpeg. If you add "-verbose" to the commands, I expect this will tell you the ffmpeg commands. What are they?
snibgo's IM pages: im.snibgo.com

Post Reply