ffmpy icon indicating copy to clipboard operation
ffmpy copied to clipboard

piping subsequent raw frames to ffmpeg

Open carlodri opened this issue 7 years ago • 1 comments

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.

carlodri avatar Jul 12 '17 12:07 carlodri

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.

Ch00k avatar Sep 10 '17 08:09 Ch00k