PyAV
PyAV copied to clipboard
Add flush method to OutputContainer to force a flush of the buffer
In some cases it's useful to force a flush of the current output buffer. The code is borrowed from the hlsenc.c
Could you please elaborate on the "some cases"? Do you want to do this when closing the file? At other times?
Also it looks as though this only applies to the case where Python I/O is used, won't it crash if proxy.ptr.pb
is not set?
At other times. I want to use pyav to remux a live stream from one container format to another one (fMP4), and pass the output in real time to a downstream application. I want to package the output data per GOP.
Altho I need to use it with the Python I/O it also works when using av.open("filename.ext", "w").
I don't really see a reason to have this