Firefox video hangs multiple times in a video for 5-10secs while the audio continues to play

hi,

i’ve a problem with video playback on firefox (youtube, etc).
when playing a video it hangs multiple times in a video for 5-10secs while the audio continues to play. after 5-10secs the image/video playback continues normally.
i do not have this behavior on chrome.

i’ve installed Open h264 and tried installing ffmpeg-libs from rpm fusion free repo…

both did not change anything…

any other suggestions on what to try to resolve the stutter / hangs / freezes if the image?

greetings

# inxi -SG
System:
  Host: nb01 Kernel: 6.4.9-200.fc38.x86_64 arch: x86_64 bits: 64
    Desktop: GNOME v: 44.3 Distro: Fedora release 38 (Thirty Eight)
Graphics:
  Device-1: AMD Rembrandt [Radeon 680M] driver: amdgpu v: kernel
  Device-2: Logitech Webcam C310 driver: snd-usb-audio,uvcvideo type: USB
  Device-3: Luxvisions Innotech Integrated RGB Camera driver: uvcvideo
    type: USB
  Display: wayland server: X.Org v: 22.1.9 with: Xwayland v: 22.1.9
    compositor: gnome-shell driver: dri: radeonsi gpu: amdgpu resolution:
    1: 3840x2160~60Hz 2: 3840x2160~60Hz
  API: OpenGL v: 4.6 Mesa 23.1.5 renderer: AMD Radeon Graphics (rembrandt
    LLVM 16.0.6 DRM 3.52 6.4.9-200.fc38.x86_64)
1 Like

I think you need to install ffmpeg from the non-free rpm fusion repos. Either that, or get the flathub flatpak since it already has everything pre-included.

To get non-free repositories

sudo dnf install [https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm](https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm) -E %fedora).noarch.rpm

Switch free ffmpeg for non-free

sudo dnf swap ffmpeg-free ffmpeg --allowerasing

Install plugins for gstreamer

sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin

Install sound and video packages needed by some applications (probably Firefox in this case)

sudo dnf groupupdate sound-and-video

I got this from the rpmfusion docs.
https://rpmfusion.org/Howto/Multimedia

1 Like

i’ve just installed the flatpak version and will test it, i was able to use my profile directly using about:profiles so i can easily change back and forth between the rpm and the flatpak version if needed. :slight_smile:

thanks for your explanation, and the link!

Great! I generally prefer the flatpak myself, but I know some prefer the rpm.

1 Like