ffmpy
ffmpy copied to clipboard
piping subsequent raw frames to ffmpeg
Would it be possible to pipe subsequent frames to the subprocess? I would like to do something like this:
< initialize ffmpy in "pipe mode" >
for i in range(0,100):
< generate a frame >
< pipe the frame to the subprocess >
< close the pipe >
I think this is related to #13.
Thanks for reporting this.
At the moment this is not possible, because stdin
argument value for ffmpeg subprocess is hard-coded. I think it should be fairly easy to allow the caller to specify stdin value, and then you should be able to use e.g. named pipes to achieve what you need. I'll see what I can do to fix this.