I use ffmpeg to decode RTSP video.It likes that:
When it’s on the end of file,it block in the av_read_frame() for a long time,why?
I use ffmpeg to decode RTSP video.It likes that: When it’s on the end
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Various reasons can cause long blocking. But you can control the processing time for a I/O layer.
Use the structure
AVFormatContext::interrupt_callbackto set the interrupt handler.