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

View file

@ -43,11 +43,12 @@ def video_framegrab(url) 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