Open Bug 1633341 Opened 4 years ago Updated 5 days ago

[Flatpak] Firefox flatpak youtube avc video: An error occurred. Please try again later.

Categories

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

75 Branch
x86_64
Linux
defect

Tracking

()

Tracking Status
firefox-esr68 --- affected
firefox75 --- wontfix
firefox76 --- wontfix
firefox77 --- wontfix
firefox78 --- affected

People

(Reporter: monteiro, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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

Steps to reproduce:

Opened this video: https://www.youtube.com/watch?v=tSIk1QvIM2E&list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI&index=15

Actual results:

The video will stop playing with: an error occurred. Please try again later.
If it doesn't stop automatically then clicking on the progress bar of the video until it gives the error.

Expected results:

VIdeo played without error.

OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Blocks: flatpak

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

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

Is a more detailed error provided in the web console (tools -> web developer -> web console) when playback fails?

Flags: needinfo?(monterro)
Attached file webconsole.txt

Yes it does.

Flags: needinfo?(monterro)

I suspect this is because of the ffmpeg extension used by the flatpack package, which I believe shims through to OpenH264. It looks like in this case it's failing to decode something. I'm not sure there's much we can do here, Firefox will use ffmpeg if it's already available, but we're limited in the underlying ffmpeg impl that's available.

Priority: -- → P5

Is firefox using the system ffmpeg or a flatpak one? Should this bug be reported elsewhere?

Flags: needinfo?(bvandyk)
Flags: needinfo?(bvandyk) → needinfo?(mtabara)
See Also: → 1628407

We're not currently using ffmpeg, but OpenH264. More details in bug 1628407, as :darkspirit mentioned.

Flags: needinfo?(mtabara)
Flags: needinfo?(jan)
Severity: normal → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(jan)

There's also ffmpeg-full extension available: if you install the org.freedesktop.Platform.ffmpeg-full//22.08 from flathub you will have the ffmpeg with acceleration available.

I'm no longer experiencing this problem on latest firefox flatpak versions.

I installed the latest org.freedesktop.Platform.openh264 and org.freedesktop.Platform.ffmpeg-full
Unfortunately it still does not play h264

By the latest do you mean org.freedesktop.Platform.ffmpeg-full//22.08 ?

(In reply to Emerson Bernier from comment #10)

By the latest do you mean org.freedesktop.Platform.ffmpeg-full//22.08 ?

Yes. I tested all versions and not work. Interestingly, the problem disappeared after updating another flatpak.

I'm correcting myself, I can still reproduce the problem.

(In reply to monteiro from comment #12)

I'm correcting myself, I can still reproduce the problem.

What linux do you use? I have this problem on Fedora.
I have this problem for some time and some flatpak named fedora core (or something like that) repaired this bug.
Surely this was the problem because I had the same system on another device, before the update it did not work and after it did.

I'm using fedora 38 workstation and the firefox flatpak from flathub.

(In reply to monteiro from comment #14)

I'm using fedora 38 workstation and the firefox flatpak from flathub.

I also used flatpak from flathub but the error was also on the flatpak version from fedora. I looked at some other distributions and there firefox (flatpak ver) worked as expected.

If you want to stay with fedora then I suggest you check what flatpaks you have: flatpak list
uninstall that flatpak which contain fedora in their name: flatpak uninstall --delete-data ....

I'm not sure if this will help anything, probably after reinstallation it will be the same. But I'm 100 percent sure that it was the fault of the fedora flatpak that simulated the environment (not the main firefox flatpak) and that it didn't open videos that needed h264. At least in my case.

I don't have any other firefox installed, nor the fedora flatpak or rpm, I only have the upstream one that Mozilla is responsible for on flathub.

(In reply to monteiro from comment #16)

I don't have any other firefox installed, nor the fedora flatpak or rpm, I only have the upstream one that Mozilla is responsible for on flathub.

This is not what I mean. Every flatpak app needs an environment i.e. other flatpaks. Flatpak firefox is installed with other flatpaks. For example, the Freedesktop Platform (org.freedesktop.Platform) or the KDE Application Platform (org.kde.Platform). Just type "flatpak list" in the terminal and you have the whole list. That is, I mean the runtime for that application or additional dependencies like openh264 (org.freedesktop.Platform.openh264).

I have 13 app but 30 flatpaks:
flatpak list --app | wc -l
13
flatpak list | wc -l
30

So when I had firefox flatpak installed on fedora (from flathub) I also had the org.fedora.Platform runtime. You can check which runtime your firefox is using:
flatpak list --app --columns=application,runtime

"All Flatpaks in Fedora target the org.fedora.Platform runtime. " - https://docs.fedoraproject.org/en-US/flatpak/runtimes/

I know what you mean and have checked, I don't have any fedora runtime installed because I never installed a flatpak from fedora.

(In reply to monteiro from comment #18)

I know what you mean and have checked, I don't have any fedora runtime installed because I never installed a flatpak from fedora.

Ok then, sorry. I have looked at several other distributions(debian, debian testing, ubuntu, opensuse TW, arch) and this problem does not occur there. After the org.fedora.Platform update, it started working. The update came after struggling with the problem for several days. I even asked on the fedora discord, nothing helped. So I was convinced that it was definitely the fault of org.fedora.Platform.

Summary: Firefox flatpak youtube avc video: An error occurred. Please try again later. → [Flatpak] Firefox flatpak youtube avc video: An error occurred. Please try again later.
See Also: → 1807886
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: