Try to trick ffmpeg into working with this named pipe
This commit is contained in:
parent
f1218a2b4e
commit
dd1de994d5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue