mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
remove spaces from filtergraph
This commit is contained in:
parent
2e3dafe08e
commit
fd5116187b
2 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ defmodule Philomena.Processors.Gif do
|
||||||
|
|
||||||
scale_filter = "scale=w=#{width}:h=#{height}:force_original_aspect_ratio=decrease"
|
scale_filter = "scale=w=#{width}:h=#{height}:force_original_aspect_ratio=decrease"
|
||||||
palette_filter = "paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle"
|
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} =
|
{_output, 0} =
|
||||||
System.cmd("ffmpeg", [
|
System.cmd("ffmpeg", [
|
||||||
|
|
|
@ -141,7 +141,7 @@ defmodule Philomena.Processors.Webm do
|
||||||
scale_filter = "scale=w=#{width}:h=#{height}:force_original_aspect_ratio=decrease"
|
scale_filter = "scale=w=#{width}:h=#{height}:force_original_aspect_ratio=decrease"
|
||||||
palette_filter = "paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle"
|
palette_filter = "paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle"
|
||||||
rate_filter = "setpts=N/TB/2"
|
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} =
|
{_output, 0} =
|
||||||
System.cmd("ffmpeg", [
|
System.cmd("ffmpeg", [
|
||||||
|
|
Loading…
Reference in a new issue