-
Notifications
You must be signed in to change notification settings - Fork 103
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
Infinite Loop in Media Buffer #46
Comments
Note: |
What protocol do you use? Rtsp? Is it live? Does the stream ends and it doesnt informs the decoder? |
Live stream with udp protocol. |
I've found one dead lock issue when switching streams but this one doesnt sound like it. If you could pause and see the threads at that time and check what does the video demuxer and decoder thread doing. You could also enable ffmpeg logging to see if its a problem with the other side. I will try to reproduce it meanwhile. |
I've seen that on hls protocol after switching streams and seeking. It's like it misses the segments. Maybe by reducing the max packets in the demuxer with the latest update will fix it. Udp is not reliable, try to use tcp if possible and let me know. |
- Adds demuxer timeouts (open/read/seek/close) to the configuration - Resets MaxQueueSize to 100 - Fixes hanging issues on av_read_frame/av_seek_frame by changing the interrupt implementation (possible fix also for #46)
Thanks the loop has stop but the stream stop always after 4.19 minutes [02.04.53.399] [#1] [Player] [SCREAMER] No video frames if I set play stream then it give me the same error but if i reopen the stream by pasting url then it is continue because it is live stream |
Yes this seems that it was happening with the interrupts/timeouts and should be fixed at the current version. Which one did you use? Uncomment also the logging in the InterruptClbk in the DemuxerBase.cs. You probably were getting a read timeout that I increased the values at last version. |
3.1.14 |
Not sure how I can help. I've just tested a udp rtsp camera without any issues. Can you provide the udp url for debugging (even privately / email). Not sure which protocol you use, not sure what configuration you use. Did you change the default config?
And you might need to add more options/flags for your case eg:
|
Long time to check this one, if you still have issues with v3.2.1 probably means that is another similar bug that I had to manually patch ffmpeg libraries. Re-open it if you can provide more details. |
Thanks for support ,It's Work perfectly |
- Adds demuxer timeouts (open/read/seek/close) to the configuration - Resets MaxQueueSize to 100 - Fixes hanging issues on av_read_frame/av_seek_frame by changing the interrupt implementation (possible fix also for #46)
- Adds demuxer timeouts (open/read/seek/close) to the configuration - Resets MaxQueueSize to 100 - Fixes hanging issues on av_read_frame/av_seek_frame by changing the interrupt implementation (possible fix also for #46)
When I start Playing Udp stream video and After 5 minutes of streaming the App enter Infinite Loop in Media Buffer function that has been called in Screamer() function in this part
vFrame is null and no statement is true in this part
The text was updated successfully, but these errors were encountered: