projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1218a2
)
Try to trick ffmpeg into working with this named pipe
author
Mark Felder
<feld@FreeBSD.org>
Thu, 27 Aug 2020 18:10:40 +0000
(13:10 -0500)
committer
Mark Felder
<feld@FreeBSD.org>
Thu, 27 Aug 2020 18:10:40 +0000
(13:10 -0500)
lib/pleroma/helpers/media_helper.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/helpers/media_helper.ex
b/lib/pleroma/helpers/media_helper.ex
index 7c2bfbc53d48f39c627b3115176bea94c8d7a718..385a4df81ab34bfaebfc1b28aea668a16544b110 100644
(file)
--- a/
lib/pleroma/helpers/media_helper.ex
+++ b/
lib/pleroma/helpers/media_helper.ex
@@
-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