From e9a1ccad1f07c591754482b10185d1a29c2bfdc4 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 2 Apr 2020 16:38:43 -0400 Subject: [PATCH] limit threadcount in video processing stage --- lib/philomena/processors/webm.ex | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/philomena/processors/webm.ex b/lib/philomena/processors/webm.ex index 6bd3f924..ff161988 100644 --- a/lib/philomena/processors/webm.ex +++ b/lib/philomena/processors/webm.ex @@ -32,6 +32,8 @@ defmodule Philomena.Processors.Webm do System.cmd("ffmpeg", [ "-loglevel", "0", + "-threads", + "1", "-y", "-i", file, @@ -91,6 +93,8 @@ defmodule Philomena.Processors.Webm do System.cmd("ffmpeg", [ "-loglevel", "0", + "-threads", + "1", "-y", "-i", file, @@ -115,6 +119,8 @@ defmodule Philomena.Processors.Webm do System.cmd("ffmpeg", [ "-loglevel", "0", + "-threads", + "1", "-y", "-i", file, @@ -149,6 +155,8 @@ defmodule Philomena.Processors.Webm do System.cmd("ffmpeg", [ "-loglevel", "0", + "-threads", + "1", "-y", "-i", file, @@ -171,6 +179,8 @@ defmodule Philomena.Processors.Webm do System.cmd("ffmpeg", [ "-loglevel", "0", + "-threads", + "1", "-y", "-i", file,