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

[BUG] AV1 playback is having serious performance issues (~10FPS) #251

Open
7 tasks done
ThomasBaruzier opened this issue Jul 2, 2024 · 2 comments
Open
7 tasks done
Labels
bug Something is not working

Comments

@ThomasBaruzier
Copy link

Checklist

  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected app version

1.1.3

Affected Android/Custom ROM version

Android 14 / HyperOS 1.0.2.0

Affected device model

Mi 11 Ultra / SD888

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

Download this video:
video.webm
Change the extention from webm to mkv (because github is letting me upload mkv)
Play the video in Fossify Gallery

Expected behavior

60 FPS playback

Actual behavior

10 FPS playback

Screenshots/Screen recordings

Fossify:
https://github.com/FossifyOrg/Gallery/assets/119688458/948b2e3f-70aa-4b06-ab1e-abdddcc6f2e3

Mpv:
https://github.com/FossifyOrg/Gallery/assets/119688458/f5c562a2-f13b-4d98-a39e-bf498b6c8d13

Additional information

Video file was encoded with SVT AV1 PSY SVT-AV1-PSY 37a5609 (release 2.1.0-A), default settings + crf 40 + tune 3 + sharpness 2 + keyint 600 (10s) + preset 2 + 10 bits + 2 threads. Plays fine in other video players.
Please update the video player library used in this project. Dav1d would be a great choice.

@ThomasBaruzier ThomasBaruzier added bug Something is not working needs triage Issue is not yet ready for PR authors to take up labels Jul 2, 2024
@Aga-C Aga-C removed the needs triage Issue is not yet ready for PR authors to take up label Jul 2, 2024
@Quackdoc
Copy link

Quackdoc commented Jul 3, 2024

seems like fossify is relying on glide for avif decode, and it in turn is relying on a quite old build of libavif, which in turn seems to be relying on dav1d 1.1.0 there is a significant chance that this is the cause of the performance issues, bumping glide's libavif build would probably fix this issue mostly.

@ThomasBaruzier
Copy link
Author

relying on a quite old build of libavif

Seems related to #252

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

No branches or pull requests

3 participants