Closed Bug 1784393 Opened 2 years ago Closed 2 years ago

Video playback becomes corrupted

Categories

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

Firefox 103
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sirrahn, Unassigned, NeedInfo)

Details

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

Steps to reproduce:

Play an embedded video on any website.
This problem has been occurring for about a month on the last 2 version of firefox on a fairly standard (latest stable) fedora install

Actual results:

Sometime the viseo plays correctly for a period but will often be corrupted with different colours (green!) and unclear. Impossible to view.

Expected results:

Normal video

I have tried refreshing, turning off extensions, and reinstalling from dnf and flatpak but to no avail. Videos play by other application have no issues.

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

(In reply to nathan from comment #0)

Sometime the viseo plays correctly for a period but will often be corrupted with different colours (green!) and unclear. Impossible to view.

Is that some videos play correctly for a period, or is the behavior inconsistent on a single video?
Do you have a link to a video where the corrupted behavior consistently demonstrates?

So it is a bit inconsistent across videos - maybe id depends on something to do with the type of video?

I just played videos on you tube and they were fine but then a video (a random choice https://www.reddit.com/r/interestingasfuck/comments/wo9i0f/i_grew_this_bath_salts_crystal_in_my_basement_6/) on reddit kind of starts fine but becomes pixelated and become more and more distorted and will often just be green shapes. I'm also noticing that it can affect the display of everything in firefox (some of ther text I'm writing is affected) and the computer and pointer can become less responsive / freeze for a bit.

The issue you encounter might be bug 1737113. The ffmpeg in the flatpak build is not a full version, which might cause some problems if that is the only ffmpeg users have on their systems. Here is the solution.

https://www.reddit.com/r/interestingasfuck/comments/wo9i0f/i_grew_this_bath_salts_crystal_in_my_basement_6/ plays fine for me with an executable from Mozilla's tarball, but I have seen similar symptoms with webrtc, which may have been using openh264.
So if this is a flakpak build, then flatpak install flathub org.freedesktop.Platform.ffmpeg-full would be worth trying.

The firefox version I am using is RPM from the fedora repository. I had tried the flathub version without any success and then removed both and reinstalled the RPM version - without any change. I have made sure that I have ffmpeg installed on the system.

Something the videos start out fine and then later will be corrupted. I cannot workout if there is any pattern to this or if I am doing anything to cause it. When I just went back to the video example I gave it initially ran fine but then started having the same problems.

I could try the flatpak version that you are suggesting?

The flathub version of Firefox with ffmpeg-full from flathub might be worth trying.
Also, and possibly more informative might be to compare the behavior of a build from https://www.mozilla.org/en-US/firefox/download/thanks/

I've installed the flathub version and the ffmpeg-full from flathub (as opposed to the fedora flatpak or rpm) and it has worked without any problems at all. Thanks for all the advice, I wonder what happened to stop the rpm version working but I am really happy to have firefox back.

Pleased you found a solution.
Thank you for reporting back.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME

nathan, can you check what version of openh264 rpm you have installed?

Flags: needinfo?(sirrahn)

Hi Jeff, looks like I have 2.1.0

Flags: needinfo?(sirrahn)

Sorry, just realised that is the flatpak version. The rpm version is:

Installed: dnf-0:4.13.0-1.fc36.noarch at Sun 05 Jun 2022 23:49:32
Built : Fedora Project at Mon 30 May 2022 09:55:23

Installed: rpm-0:4.17.1-3.fc36.x86_64 at Fri 05 Aug 2022 01:12:06
Built : Fedora Project at Tue 02 Aug 2022 12:31:56

Martin, is there a way to find out what version of openh264 is used for a particular Fedora version?

Flags: needinfo?(sirrahn)
Flags: needinfo?(stransky)

Reporter, can you attach about:support from the Fedora build?

I think it's Bug 1779186 as Fedora comes with VA-API enabled by default. OpenH264 bugs are usually shuttering/freezes but I haven't seen any report about artifacts.

Flags: needinfo?(stransky)
You need to log in before you can comment on or make changes to this bug.