YouTube playback error on Firefox using Flatpak ffmpeg

I get a playback error with some videos on YouTube Firefox. These play OK on Chrome. Codecs according to YT’s ‘stats for nerds’ are: avc1.4d401e (134) / opus (251)

I’m using the Flatpak version of Firefox and I installed ffmeg from the Flatpak source: org.freedesktop.Platform.ffmpeg-full.

I’ve tried running Firefox with --command=org.freedesktop.Platform and
--command=org.freedesktop.Platform.ffmpeg-full

This is on Silverblue 36.

I have no troubles with youtube videos when using the rpm versions of firefox and with ffmpeg from rpmfusion. Ffmpeg-free from the fedora repo is limited in what codecs it can process because of the licensing & patent/copywrite issues. Ffmpeg and ffmpeg-libs from rpmfusion do not have that limitation.

I have trouble understanding why users seem dedicated to running flatpak versions of apps that are freely available as rpms from the fedora and associated repos, and are fully tested to run problem free on fedora.

Of course silverblue pushes users in that direction, but packages can be installed from the normal repos with rpm-ostree.

Fedora flatpak of firefox or the flathub flatpak of firefox?

Thanks for your input. The reason I wanted to use the Flatpak version of ffmpeg is, according to this Linux Weekly News article, Fedora prefers for legal reasons that non-free packages are sourced there.

It turns out I got mixed up and was running the rpm version of Firefox. Oops. Using the Flatpak version of Firefox my video plays fine. I guess whatever the limitations of the Flatpak version of ffmpeg, it does have the codec for YouTube (H264 ?).

Oh nuts. I got my desktop icons for Firefox mixed up and was running the rpm version. Using the Flatpak version of Firefox my video plays fine. Marking this answer as the Solution.