From: Mark Felder Date: Thu, 27 Aug 2020 18:10:40 +0000 (-0500) Subject: Try to trick ffmpeg into working with this named pipe X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=dd1de994d57e3d9c99bb4e4c7019c696b5153f50;p=akkoma Try to trick ffmpeg into working with this named pipe --- diff --git a/lib/pleroma/helpers/media_helper.ex b/lib/pleroma/helpers/media_helper.ex index 7c2bfbc53..385a4df81 100644 --- a/lib/pleroma/helpers/media_helper.ex +++ b/lib/pleroma/helpers/media_helper.ex @@ -43,11 +43,12 @@ defmodule Pleroma.Helpers.MediaHelper do {:ok, env} <- Pleroma.HTTP.get(url), {:ok, fifo_path} <- mkfifo(), args = [ + "-y", "-i", fifo_path, "-vframes", "1", "-f", "mjpeg", "-loglevel", "error", - "-" + "pipe:" ] do run_fifo(fifo_path, env, executable, args) else