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
Reading from UDP, PyAv is blocked? #325
Comments
You're opening with something like If you look at the FFmpeg docs there is a I wonder if there is a way to nicely know how much data is has received. |
We do use We try And how about |
THANKS! @mikeboers |
We read source file from UDP using
av.open()
function, and then decode each frame withcontainer.decode()
. It works well when UDP stream is stable. But when UDP stream stops, the program will get blocked at thedecode
line forever. Moreover, if weopen
a wrong UDP stream, the program will also get blocked.Can someone give us some suggestions about this problem? THANKS!
P.S. We have thought about using python's decorator by setting a fixed time to terminate the blocked process, but it doesn't meet our need. We want dynamically terminate the blocked process, which input UDP stream has stopped.
The text was updated successfully, but these errors were encountered: