How can I pipe the output of ffmpeg to ffplay?
At the moment I use a workaround in bash :
mkfifo spam
(ffplay spam 2> /dev/null &) ; capture /dev/stdout | ffmpeg -i - spam
|
|
|
I do not know if it is If it is
(You migth need to add a If it is
For more informations about the |
|||
|
|
|
looks like normal pipes work (at least in windows):
haven't tried it with more complicated input/output though...
is slightly faster startup |
|||
|
|
|
ffmpeg supports piping operations. See that section of the documentation here. I don't know how ffplay works, but to pipe the output of ffmpeg to standard output, you can add the pipe command to the end of the ffmpeg command. Example:
|
|||||
|
will work; you need to set a container format for the output. This is normally set with ffmpeg looking at the extension you give the output, but here you have to set it manually with Note that if you are using Ubuntu 12.04, ffmpeg has been replaced by the libav fork, and you should use |
|||
|
|