I know i can make ffmpeg
put its output to stdout
and stderr
using pipe:1
and pipe:2
, respectively, as output_file
parameter. (Docs)
But what about named pipes, can i make it write to one?
If not, is there a way to redirect the data in stdout
to a named pipe in Linux? (something like ffmpeg <parameters> | pipe123
)
This question is a follow-up of this question.
@ab77 answer is spot on except for one major thing that I encountered myself. I do not know if this happens on Linux or other *nix'es but on Mac OS X if you do not put the appropriate extension on the pipe name then it will not pipe. So if the output format is mpeg then the pipe shold be name outpipe.mpg for instance.
You could create a named pipe first and have
ffmpeg
write to it using the following approach:ffmpeg
output to named pipe:reading
outpipe
named pipe (Python
example):-- ab1