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, 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
|
||||||
|
Loading…
Reference in New Issue
Block a user