remove spaces from filtergraph

This commit is contained in:
byte[] 2020-05-19 19:19:53 -04:00
parent 2e3dafe08e
commit fd5116187b
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ defmodule Philomena.Processors.Gif do
scale_filter = "scale=w=#{width}:h=#{height}:force_original_aspect_ratio=decrease"
palette_filter = "paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle"
filter_graph = "[0:v] #{scale_filter} [x]; [x][1:v] #{palette_filter}"
filter_graph = "[0:v]#{scale_filter}[x];[x][1:v]#{palette_filter}"
{_output, 0} =
System.cmd("ffmpeg", [

View file

@ -141,7 +141,7 @@ defmodule Philomena.Processors.Webm do
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 = "setpts=N/TB/2"
filter_graph = "[0:v] #{scale_filter},#{rate_filter} [x]; [x][1:v] #{palette_filter}"
filter_graph = "[0:v]#{scale_filter},#{rate_filter}[x];[x][1:v]#{palette_filter}"
{_output, 0} =
System.cmd("ffmpeg", [