(Translated by https://www.hiragana.jp/)
piping subsequent raw frames to ffmpeg · Issue #19 · Ch00k/ffmpy · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

piping subsequent raw frames to ffmpeg #19

Open
carlodri opened this issue Jul 12, 2017 · 1 comment
Open

piping subsequent raw frames to ffmpeg #19

carlodri opened this issue Jul 12, 2017 · 1 comment

Comments

@carlodri
Copy link

carlodri commented Jul 12, 2017

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.

@Ch00k
Copy link
Owner

Ch00k commented Sep 10, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants