From be83699e652d9387e50276d673cd775c0acf4b17 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 2 Apr 2020 21:45:21 -0400 Subject: [PATCH] tweak vp8 encoder settings --- lib/philomena/processors/webm.ex | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/lib/philomena/processors/webm.ex b/lib/philomena/processors/webm.ex index ff161988..ab6ede88 100644 --- a/lib/philomena/processors/webm.ex +++ b/lib/philomena/processors/webm.ex @@ -32,8 +32,6 @@ defmodule Philomena.Processors.Webm do System.cmd("ffmpeg", [ "-loglevel", "0", - "-threads", - "1", "-y", "-i", file, @@ -93,25 +91,27 @@ defmodule Philomena.Processors.Webm do System.cmd("ffmpeg", [ "-loglevel", "0", - "-threads", - "1", "-y", "-i", file, "-c:v", "libvpx", - "-quality", + "-deadline", "good", "-cpu-used", - "3", + "5", "-auto-alt-ref", "0", + "-qmin", + "15", + "-qmax", + "35", "-crf", - "10", - "-b:v", - "5M", + "31", "-vf", scale_filter, + "-threads", + "1", webm ]) @@ -119,8 +119,6 @@ defmodule Philomena.Processors.Webm do System.cmd("ffmpeg", [ "-loglevel", "0", - "-threads", - "1", "-y", "-i", file, @@ -138,6 +136,8 @@ defmodule Philomena.Processors.Webm do "5M", "-vf", scale_filter, + "-threads", + "1", mp4 ]) @@ -155,8 +155,6 @@ defmodule Philomena.Processors.Webm do System.cmd("ffmpeg", [ "-loglevel", "0", - "-threads", - "1", "-y", "-i", file, @@ -179,8 +177,6 @@ defmodule Philomena.Processors.Webm do System.cmd("ffmpeg", [ "-loglevel", "0", - "-threads", - "1", "-y", "-i", file,