Closed Bug 1959462 Opened 1 year ago Closed 3 months ago

Video playback with hardware acceleration results in repeated and corrupted frames randomly - Steam Deck

Categories

(Core :: Audio/Video: Playback, defect)

Firefox 137
Unspecified
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ShapeShifter499, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0

Steps to reproduce:

Video playback with hardware acceleration results in repeated and corrupted frames randomly.

Actual results:

After a seemingly random amount of time, notice the video starts repeating some frames with severe corruption before recovering and playing normally again. Attached video showing issue.

Expected results:

Video should not skip or repeat frames, video should not appear corrupted at any time unless purposefully edited to do so.

Attached file Application Basics -
ADDITIONAL INFORMATION

ADDITIONAL INFORMATION

==System==
Steam Deck LCD
BIOS F7A0131
AMD APU 0405
16 GB Ram

Arch Linux (not SteamOS) Kernel 6.13.8-arch1-1
Gnome 48
Wayland
ffmpeg version n7.1 Copyright (c) 2000-2024 the FFmpeg developers
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Mesa Gallium driver 25.0.3-arch1.1 for AMD Custom GPU 0405 (radeonsi, vangogh, LLVM 19.1.7, DRM 3.61, 6.13.8-arch1-1)

Disabling either VP9 codec support or disabling hardware acceleration stops the issue from occurring.

I can not reproduce this on Google Chrome. The "Stats for nerds" option on Youtube shows that both Firefox and Google Chrome are pulling "vp09.00.51.08.01.01.01.01.00 (313) / opus (251)"

Both show a tiny amount of dropped frames, but only Firefox has the corruption and repeated frames sometimes.

I have also collected a Performance profile during one of the cases I saw.
https://share.firefox.dev/3FYaQEB

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

I got the 137.0.1 Firefox update, the issue still seems to occur though the codec used seems to have changed. Youtube "stats for nerds" page now shows "av01.0.12M.08 (401) / opus (251)". It doesn't appear as severe as with VP9.

Took a new Performance profile dump with the update here: https://share.firefox.dev/44lchH4

https://share.firefox.dev/4lju2wt -- one more dump recorded with repeated corrupted frames.

I'm not seeing corrupted frames in the screenshots in the profiles. Are you able to capture a screenshot showing the kind of corruption, please?

Severity: -- → S3

(In reply to Karl Tomlinson (:karlt) from comment #8)

I'm not seeing corrupted frames in the screenshots in the profiles. Are you able to capture a screenshot showing the kind of corruption, please?

The video used during both of these dumps were from this URL: https://www.youtube.com/watch?v=fwq5sT-zLLk
https://share.firefox.dev/4lju2wt - 2m40.50s and on to the end you can see where the video screenshots show the same scene glitches and repeats itself.
https://share.firefox.dev/44lchH4 - 24.85s to 24.96s the video glitches and repeats before recovering normal video playback.

I don't see where my original video attached was. But I posted a recorded video demonstrating the whole issue at reddit: https://www.reddit.com/r/firefox/comments/1jv3m3m/firefox_on_linux_sometimes_videoes_glitch_and/

I'm sorry, the video used in that dump was
https://www.youtube.com/watch?v=EBsIag0TJKk

Thanks. I see what you mean with a small set of frames being played repeatedly, which gives an effect as if the video is getting stuck repeatedly jumping back and forward by small steps over the same frames.

I have the same issue on the same'ish hardware (Steam Deck - OLED version) but with stock SteamOS installed. Also observed when playing on external screen (haven't tried on built-in screen).

Video showing it : https://immich.h.thelazy.net/share/zNRwxywK6ys5bg6d7ZInPTjvow2V6wRIPF3zbqkm2YoF1GlpLoClZA1nd8I0eHWdBi4

I'm having the same issue. Steam Deck 512 LCD, Firefox 137.0.2 (64-bit) (Mozilla Flatpak 1.0). Stock SteamOS. Using external monitor. Everything else works great.

OS: Unspecified → Linux
Summary: Video playback with hardware acceleration results in repeated and corrupted frames randomly. → Video playback with hardware acceleration results in repeated and corrupted frames randomly - Steam Deck

Any updates on this?

I'm currently on version 139.0.1 and can still reproduce this bug.

Based on some comments here and some from the original reddit post I made: https://www.reddit.com/r/firefox/comments/1jv3m3m/firefox_on_linux_sometimes_videoes_glitch_and/ It does appear it could be an issue with dual displays or external monitors maybe?

I'm sorry, I noticed at least one other person who said it occurs on the main screen on the reddit post. I don't use my deck that often not plugged into a monitor to watch youtube. It does appear to occur on all displays after checking.

I get this green whenever playing videos on 139.0.4 using the VP9 or AV1 codec. When turning troubleshooting mode on, the issue disappears. I have no extensions in my browser either. I used both the Flatpak distribution of Firefox and the Fedora packaged one on Fedora 42.

Valve released a new BIOS, F7A0133. I updated the BIOS and set "memory power down mode" to "disabled" with the thought it might help crashes and glitches.

Firefox was updated to v 140.0.4, kernel was updated to 6.15.5-arch1-1

I'm not sure which update seemed to change the issue but I switched back on hardware acceleration and I don't appear to be getting video glitches on YouTube anymore. Can anyone else following this confirm?

I wish you could add edits to a previous comment. It just took longer for it to start appearing this time.

Knocking on wood, I have been able to turn the hardware acceleration back on and I have yet to experience video playback glitches in Youtube or elsewhere in a few weeks now. Currently on Firefox 146.0.1

Please reopen if you experience issues still. I am going to close this as "WorksForMe"

Status: UNCONFIRMED → RESOLVED
Closed: 3 months ago
Resolution: --- → WORKSFORME

This is what shows under my "about:support" page, it appears to show it's working as expected.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: