wang-bin / QtAV

A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
http://qtav.org
3.98k stars 1.51k forks source link

certain video freezes after continuous looping #1025

Open yongkhun opened 6 years ago

yongkhun commented 6 years ago

In Android, when continuous looping a video, after about 30~60 minutes, the video would freeze. After tracing in Android debug log, it freezes when the following error appear:

I/AudioFlinger(234): BUFFER TIMEOUT: remove(4096) from active list on thread 0xb4d53008

I believe it's something to do with the video. How to fix this in QtAV so that even this kind of faulty video will not cause the frozen playback issue after some continuous looping?

Thank you!

LiamMartens commented 6 years ago

I am seeing a similar issue outside of Android on a headless Xvfb setup where it freezes after a couple of hours of looping somehow (very short video, gif like). Have not been able to properly debug because of the type of issue and how long it takes before it freezes, but I am guessing the issue is similar

yongkhun commented 6 years ago

It's quite confirmed that it only happened on certain video only. Some other videos are OK.