mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
fix duration scale
This commit is contained in:
parent
b9ad5643dc
commit
d406e1ee1c
1 changed files with 1 additions and 1 deletions
|
@ -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} =
|
||||
|
|
Loading…
Reference in a new issue