Try to trick ffmpeg into working with this named pipe
authorMark Felder <feld@FreeBSD.org>
Thu, 27 Aug 2020 18:10:40 +0000 (13:10 -0500)
committerMark Felder <feld@FreeBSD.org>
Thu, 27 Aug 2020 18:10:40 +0000 (13:10 -0500)
lib/pleroma/helpers/media_helper.ex

index 7c2bfbc53d48f39c627b3115176bea94c8d7a718..385a4df81ab34bfaebfc1b28aea668a16544b110 100644 (file)
@@ -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