| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Any news on this one? Straightforward change |
Sorry, something went wrong.
Sorry, something went wrong.
|
Have you already tested the code? |
Sorry, something went wrong.
|
@ArchieMeng could you check with the latest version? I changed it slightly to cover all cases. I tested in my use case, which is: self._ffmpeg_proc = (
ffmpeg.input("pipe:", format="rawvideo", pix_fmt="yuyv422", s=resolution, framerate=cfg().calculate_fps())
.output(self._filename, vcodec=cfg().record_codec)
.overwrite_output()
.run_async(pipe_stdin=True, quiet=True)
)
|
Sorry, something went wrong.
There was a problem hiding this comment.
Can someone else please confirm that this works as intended?
Sorry, something went wrong.
|
Patched and running fine in v0.2.0. Here's how run_async is being called: def run(self):
"""
Run channel encoder
"""
self.process = (
self.output.run_async(
quiet=self.quiet
)
)
self.print("Running")
return_code = self.process.wait()
if return_code:
self.print(f"Exited with code {return_code}") |
Sorry, something went wrong.
|
Just for the record, the secret here is to redirect stderr to stdout and then redirect stdout to /dev/null, otherwise, it doesn't work redirecting both to /dev/null. |
Sorry, something went wrong.
That's a weird bug 🤔 |
Sorry, something went wrong.
|
Yes. It works. Thank you. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #195
Redirect stdout/stderr to DEVNULL when quiet is requested, otherwise, the buffer will be filled until a MemoryError on long encodings.