Try to trick ffmpeg into working with this named pipe

This commit is contained in:
Mark Felder 2020-08-27 13:10:40 -05:00
parent f1218a2b4e
commit dd1de994d5
1 changed files with 2 additions and 1 deletions

View File

@ -43,11 +43,12 @@ def video_framegrab(url) do
{:ok, env} <- Pleroma.HTTP.get(url), {:ok, env} <- Pleroma.HTTP.get(url),
{:ok, fifo_path} <- mkfifo(), {:ok, fifo_path} <- mkfifo(),
args = [ args = [
"-y",
"-i", fifo_path, "-i", fifo_path,
"-vframes", "1", "-vframes", "1",
"-f", "mjpeg", "-f", "mjpeg",
"-loglevel", "error", "-loglevel", "error",
"-" "pipe:"
] do ] do
run_fifo(fifo_path, env, executable, args) run_fifo(fifo_path, env, executable, args)
else else