Closed Bug 1717177 Opened 4 years ago Closed 4 years ago

After Firefox 89 update in Fedora 34, videos in BBC.com lag/suffer a lot.

Categories

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

Firefox 89
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: Prabesh432, Unassigned)

Details

Attachments

(1 file)

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

Steps to reproduce:

I use Firefox with two extension:

  • Grammarly
  • uBlock Origin
    And I also use "Enhanced Tracking Protection".

None of those extensions did anything to slow down BBC video in Firefox 88.
But now, it lags too much.

For example, this video: https://www.bbc.com/news/av/world-us-canada-57337298
I even tried disabling enhanced browsing mode and unlock origin to see whether it is affecting video processing. But they are not.

Video rendering has bigger impact ever since I have shifted from Ubuntu 21.04 (non-LTS) to Fedora. Sometimes the audios go ahead and the video comes later. It was weird to see.

On Chromium, things are fine. I use it for backup browser.

Please do something about it.

pranav@fedora ~> dnf info firefox
Installed Packages
Name : firefox
Version : 89.0
Release : 2.fc34
Architecture : x86_64
Size : 251 M
Source : firefox-89.0-2.fc34.src.rpm
Repository : @System
From repo : updates

The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Product: Firefox → WebExtensions

(In reply to Pranav bhattarai from comment #0)

For example, this video: https://www.bbc.com/news/av/world-us-canada-57337298
I even tried disabling enhanced browsing mode and unlock origin to see whether it is affecting video processing. But they are not.

It's not exactly clear, can you reproduce these issues in a new profile / with all extensions disabled?

Flags: needinfo?(Prabesh432)

(In reply to Tomislav Jovanovic :zombie from comment #2)

It's not exactly clear, can you reproduce these issues in a new profile / with all extensions disabled?

I have done this after when u said as you can see: https://youtu.be/vfu5-H6nFME

Let me know what do you think.

Flags: needinfo?(Prabesh432)

Hello,

I cannot reproduce the issue on the latest Nightly (91.0a1/20210621213500), Beta (90.0b10/20210620185922) and Release (89.0.1/20210614221319) under Windows 10 x64 and Ubuntu 16.04 LTS (these are the only available OSes I can test on).

Using the two mentioned add-ons with the default settings on https://www.bbc.com/news/av/world-us-canada-57337298 did not cause any video or audio lag.

(In reply to Alex Cornestean from comment #4)

I cannot reproduce the issue on the latest Nightly (91.0a1/20210621213500), Beta (90.0b10/20210620185922) and Release (89.0.1/20210614221319) under Windows 10 x64 and Ubuntu 16.04 LTS (these are the only available OSes I can test on).

I'm using Fedora 34. I don't think extensions are the one which is creating issue.

videos sync a tiny nanosecond later after when a audio has passed, here in Udemy courses too.

Is there some flags I need to enable from about:config?! Do let me know.

(In reply to Pranav bhattarai from comment #3)

(In reply to Tomislav Jovanovic :zombie from comment #2)

It's not exactly clear, can you reproduce these issues in a new profile / with all extensions disabled?

I have done this after when u said as you can see: https://youtu.be/vfu5-H6nFME

Let me know what do you think.

This video cannot be viewed, as it's marked as private.

(In reply to Rob Wu [:robwu] from comment #

This video cannot be viewed, as it's marked as private.

The video should be visible with the link.

Anyway, I have made the video public. Can you try it again and let me know.

I can see the video. Since this bug happens without any extensions installed, I'll move this to the audio/video section of the issue tracker for further triage.

Component: Untriaged → Audio/Video
Product: WebExtensions → Core

Unfortunately, I couldn't reproduce it locally. Could you please help capture a profile for us to examine? Please go to https://profiler.firefox.com
and follow the instructions to record during playing back the BBC video using 'Media' settings.

Please let me know if any questions. Thanks a lot.

Flags: needinfo?(Prabesh432)

Hope this is helpful enough.

Flags: needinfo?(Prabesh432)

By checking the profile in comment 11, the decoded video frames was out-of-order. The decoder would output the first frame that has later timestamp (eg. 33,600,000μs), then output other video frames which are earlier than that frame (eg. timestamp < 33,600,000μs), and follow this pattern to keep outputting groups of frames which has first latest frame and other earlier frames.

And the video sink played the those latest frame which was outputted in the first in the group, which seems to me might be keyframes, all the other frames in between would be discarded by video sink.

Severity: -- → S2
Priority: -- → P3

Do you see this issue on other video sites as well? Or only on BBC?
Thank you.

Flags: needinfo?(Prabesh432)

(In reply to Alastor Wu [:alwu] from comment #13)

Do you see this issue on other video sites as well? Or only on BBC?

I'm glab you asked. I use/love Firefox because of cool privacy settings, other than that I see a lot of issues in Firefox. This is the only reason that I have to keep Chromium as a back up browser. Hope someday, I can't uninstall Chromium peacefully. I try to ignore many weird issues I see in Firefox but something it triggers my nerve and I jump here.

Anyway, back to the main question, the answer is, YES. Yes I see this "video lag" in website like Udemy too. Please do something about it. There might be some/many website too who knows.

Flags: needinfo?(Prabesh432)

Could you run ldconfig -p | grep libavcodec on your computer to see what version of libavcodec you're using? And see if it will help if you reinstall the libavcodec, because the problematic video outputs are generated by the decoder from libavcodec (which is usually bundle in ffmpeg), so I would like to see whther the libavcodec you're using is the root cause.
Thank you.

Flags: needinfo?(Prabesh432)

(In reply to Alastor Wu [:alwu] from comment #15)

Could you run ldconfig -p | grep libavcodec on your computer to see what version of libavcodec you're using? And see if it will help if you reinstall the libavcodec, because the problematic video outputs are generated by the decoder from libavcodec (which is usually bundle in ffmpeg), so I would like to see whther the libavcodec you're using is the root cause.

pranav@fedora ~ [0|1]> ldconfig -p | grep libavcodec
pranav@fedora ~ [0|1]> ldconfig
ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
pranav@fedora ~ [1]> sudo ldconfig -p | grep libavcodec
[sudo] password for pranav:
pranav@fedora ~ [0|1]> dnf search libavcodec
Last metadata expiration check: 0:04:02 ago on Tue 13 Jul 2021 08:59:29 AM +0545.
No matches found.
pranav@fedora ~> dnf search ffmpeg
Last metadata expiration check: 0:05:57 ago on Tue 13 Jul 2021 08:59:29 AM +0545.
kmplayer.x86_64 : A simple front-end for MPlayer/FFMpeg/Phonon
nv-codec-headers.noarch : FFmpeg version of Nvidia Codec SDK headers

A general question: Doesn't Firefox install ffmpeg or libavcodec as a "dependency package" when a user try to install Firefox?!

Flags: needinfo?(Prabesh432)

No. H264 is a proprietary codec, we can't release that as a part of Firefox because that requires proprietary fees. So on Linux we can only play H264 if detecting user's libavcodec successfully (and also need to be right version). So you could try to reinstall your ffmpeg or manually install libavcodec to see if that helps.

After enabling rpmfusion and install FFmpeg, I don't see this issue.

(I wonder how I was able to play or stream BBC videos in earlier versions!)

Probably the ffmpeg you were using on Ubuntu was good. Per comment18, this issue was fixed after the report reinstalled his ffmpeg, close this bug.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: