-
Notifications
You must be signed in to change notification settings - Fork 857
Description
Thumbor request URL
Expected behaviour
The resulting GIFv video should be 4 seconds in duration.
Actual behaviour
The video is 2 seconds in duration.
Operating system
OSx & Ubuntu
Your thumbor.conf
...
OPTIMIZERS = [
# 'thumbor.optimizers.jpegtran',
'thumbor.optimizers.gifv',
]
...
Source of the bug
I did some debugging and have discovered that this issue is being caused by the scale filter used in the ffmpeg command. The scale filter we are using ensures that the video has an even number of pixels for both width and height - because odd pixel numbers in mp4 at least is not valid and ffmpeg will puke.
I have submitted a bug with ffmpeg https://trac.ffmpeg.org/ticket/6294#ticket
However, in the mean time (which could be an hour or years in ffmpeg world) we have some options on our end as well. Mainly, we could drop the scale filter from the command and instead enforce even number of pixels ourselves before we perform the transformation to mp4/webm format. I have confirmed that removing the filter option fixes this problem.
So, I'd like to get some opinions on what we should do.