diff --git a/lib/philomena/processors/webm.ex b/lib/philomena/processors/webm.ex index 0b8b2dd4..17b2f019 100644 --- a/lib/philomena/processors/webm.ex +++ b/lib/philomena/processors/webm.ex @@ -83,7 +83,7 @@ defmodule Philomena.Processors.Webm do gif = Briefly.create!(extname: ".gif") scale_filter = "scale=w=#{width}:h=#{height}:force_original_aspect_ratio=decrease" palette_filter = "paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle" - rate_filter = "fps=1/#{duration},settb=1/2,setpts=N" + rate_filter = "fps=1/#{duration / 10},settb=1/2,setpts=N" filter_graph = "[0:v] #{scale_filter},#{rate_filter} [x]; [x][1:v] #{palette_filter}" {_output, 0} =