Skip to content
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

Unhandled Exception in AudioDecoder when seeking multiple times #549

Open
getsolved opened this issue Jan 20, 2025 · 4 comments
Open

Unhandled Exception in AudioDecoder when seeking multiple times #549

getsolved opened this issue Jan 20, 2025 · 4 comments

Comments

@getsolved
Copy link

When seeking in a video multiple times in a short time period, sometimes an unhandled exception is thrown in AudioDecoder class. The app crashes at this moment. Why isn't there any exception handling?

The screenshot is from a webm file playing, with other formats the same situation as well.

Image

Any suggestions?

@SuRGeoNix
Copy link
Owner

This seems either a broken file or an FFmpeg bug. Does this happen with v3.7 (ffmpeg v5) and v3.8 (ffmpeg v6)?
Can you provide a file to reproduce it?

@getsolved
Copy link
Author

getsolved commented Feb 7, 2025

Sorry for my late reply.

You can use any video that is longer than your provided sample. Tested it with different source videos (YT downloads, mkv files, mp4 files, 1 minute videos, 1 hour videos...). When you open a video file in the FlyLeaf Media Player (same behaviour using FlyLeaf Media Player Control in my WPF app) and seek many times (means click ony many different positions on the time progress bar) within a second, the app crashes, giving different exceptions: sometimes detecting audio problems, sometimes finding no frame for the current timestamp. Other behaviour: the play button does not work any more; the video seems to play, but no frame is changed, the current frame is freezed and pause, start, stop does not change anything; you have to restart the app.

Couldn't find out the reason. Very disappoiting to finally have a working WPF app but the embedded media player crashes regularly.

Perhaps you can easily detect the source making these problems. I am kind of helpless.

@getsolved
Copy link
Author

Additional information: using FlyLeafLib 3.8.2, Flyleaf.FFmpeg 7.1.0

All videos are working correctly with "fast seeking" like described above in PotPlayer and VLC Media Player.

@SuRGeoNix
Copy link
Owner

@getsolved Still can't reproduce it. Do you use Flyleaf's FFmpeg libraries or custom build? This is might also related with your hardware. I cannot help if I will not reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants