You are not logged in.

#1 2023-01-22 22:27:25

k4s5eng
Member
Registered: 2023-01-22
Posts: 5

[Solved] Firefox doesn't play videos

Hi,
Firefox won't read online videos (for example from YouTube) on my freshly installed computer.
When I click on the play icon, the little white circle keeps spinning on the first image of the video but the video is not read.
If I move forward in the video, I can see the image of the selected position but still frozen.
I haven't any error message if I launch Firefox from a terminal.
I have the same behavior with a new Firefox profile.
I don't have the same problem when I use Gnome's native browser "Web".
My configuration:
Gnome / Wayland
GC: Intel Corporation TigerLake-LP GT2 (same behavior when I launch Firefox with my discreet graphic card NVIDIA Corporation TU117M)
ffmpeg et gsteamer pakages are installed.

If you have any idea on the origin of the problem or how I can obtain logs to figure out what's going on please let me now!

Last edited by k4s5eng (2023-01-23 10:50:31)

Offline

#2 2023-01-22 23:28:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,196

Re: [Solved] Firefox doesn't play videos

This most often happens if your audio device is inaccessible which will in turn block firefox from playing the video, when having the issue, what's your output for

sudo fuser -v /dev/snd/*
aplay -lL
#If pulse/pipewire
pactl list cards
pactl list sinks
pactl list sink-inputs

Offline

#3 2023-01-23 08:51:38

k4s5eng
Member
Registered: 2023-01-22
Posts: 5

Re: [Solved] Firefox doesn't play videos

During the installation, I chose to switch from pulseaudio to wireplumber and I'm just realizing that the sound doesn't work at all on my system... so it would appear to be a sound related problem. I may have forgot something in the configuration.

Here's the outputs :

$ sudo fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  proton      1483 F.... pulseaudio
                     proton      1899 F.... wireplumber
/dev/snd/seq:        proton      1898 F.... pipewire
$ aplay -lL
null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default
    Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=PCH
    HDA Intel PCH, ALC293 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC293 Analog
    Front output / input
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC293 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC293 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC293 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC293 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC293 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC293 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
hdmi:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 3
    HDMI Audio Output
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC293 Analog [ALC293 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
$ pactl list cards
Card #0
	Name: alsa_card.pci-0000_00_1f.3
	Driver: module-alsa-card.c
	Owner Module: 6
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0x601f558000 irq 170"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "a0c8"
		device.product.name = "Tiger Lake-LP Smart Sound Technology Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Audio interne"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		input:analog-stereo: Entrée Stéréo analogique (sinks: 0, sources: 1, priority: 32833, available: yes)
		output:analog-stereo: Sortie Stéréo analogique (sinks: 1, sources: 0, priority: 39268, available: yes)
		output:analog-stereo+input:analog-stereo: Duplex stéréo analogique (sinks: 1, sources: 1, priority: 39333, available: yes)
		output:hdmi-stereo: Sortie Digital Stereo (HDMI) (sinks: 1, sources: 0, priority: 5900, available: no)
		output:hdmi-stereo+input:analog-stereo: Sortie Digital Stereo (HDMI) + Entrée Stéréo analogique (sinks: 1, sources: 1, priority: 5965, available: yes)
		output:hdmi-surround: Sortie Digital Surround 5.1 (HDMI) (sinks: 1, sources: 0, priority: 800, available: no)
		output:hdmi-surround+input:analog-stereo: Sortie Digital Surround 5.1 (HDMI) + Entrée Stéréo analogique (sinks: 1, sources: 1, priority: 865, available: yes)
		output:hdmi-surround71: Sortie Digital Surround 7.1 (HDMI) (sinks: 1, sources: 0, priority: 800, available: no)
		output:hdmi-surround71+input:analog-stereo: Sortie Digital Surround 7.1 (HDMI) + Entrée Stéréo analogique (sinks: 1, sources: 1, priority: 865, available: yes)
		output:hdmi-stereo-extra1: Sortie Digital Stereo (HDMI 2) (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra1+input:analog-stereo: Sortie Digital Stereo (HDMI 2) + Entrée Stéréo analogique (sinks: 1, sources: 1, priority: 5765, available: yes)
		output:hdmi-surround-extra1: Sortie Digital Surround 5.1 (HDMI 2) (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra1+input:analog-stereo: Sortie Digital Surround 5.1 (HDMI 2) + Entrée Stéréo analogique (sinks: 1, sources: 1, priority: 665, available: yes)
		output:hdmi-surround71-extra1: Sortie Digital Surround 7.1 (HDMI 2) (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra1+input:analog-stereo: Sortie Digital Surround 7.1 (HDMI 2) + Entrée Stéréo analogique (sinks: 1, sources: 1, priority: 665, available: yes)
		output:hdmi-stereo-extra2: Sortie Digital Stereo (HDMI 3) (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra2+input:analog-stereo: Sortie Digital Stereo (HDMI 3) + Entrée Stéréo analogique (sinks: 1, sources: 1, priority: 5765, available: yes)
		output:hdmi-surround-extra2: Sortie Digital Surround 5.1 (HDMI 3) (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra2+input:analog-stereo: Sortie Digital Surround 5.1 (HDMI 3) + Entrée Stéréo analogique (sinks: 1, sources: 1, priority: 665, available: yes)
		output:hdmi-surround71-extra2: Sortie Digital Surround 7.1 (HDMI 3) (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra2+input:analog-stereo: Sortie Digital Surround 7.1 (HDMI 3) + Entrée Stéréo analogique (sinks: 1, sources: 1, priority: 665, available: yes)
		output:hdmi-stereo-extra3: Sortie Digital Stereo (HDMI 4) (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra3+input:analog-stereo: Sortie Digital Stereo (HDMI 4) + Entrée Stéréo analogique (sinks: 1, sources: 1, priority: 5765, available: yes)
		output:hdmi-surround-extra3: Sortie Digital Surround 5.1 (HDMI 4) (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra3+input:analog-stereo: Sortie Digital Surround 5.1 (HDMI 4) + Entrée Stéréo analogique (sinks: 1, sources: 1, priority: 665, available: yes)
		output:hdmi-surround71-extra3: Sortie Digital Surround 7.1 (HDMI 4) (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra3+input:analog-stereo: Sortie Digital Surround 7.1 (HDMI 4) + Entrée Stéréo analogique (sinks: 1, sources: 1, priority: 665, available: yes)
		off: Éteint (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: output:analog-stereo+input:analog-stereo
	Ports:
		analog-input-internal-mic: Internal Microphone (type: Mic, priority: 8900, latency offset: 0 usec, availability unknown)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:hdmi-stereo+input:analog-stereo, output:hdmi-surround+input:analog-stereo, output:hdmi-surround71+input:analog-stereo, output:hdmi-stereo-extra1+input:analog-stereo, output:hdmi-surround-extra1+input:analog-stereo, output:hdmi-surround71-extra1+input:analog-stereo, output:hdmi-stereo-extra2+input:analog-stereo, output:hdmi-surround-extra2+input:analog-stereo, output:hdmi-surround71-extra2+input:analog-stereo, output:hdmi-stereo-extra3+input:analog-stereo, output:hdmi-surround-extra3+input:analog-stereo, output:hdmi-surround71-extra3+input:analog-stereo
		analog-input-headset-mic: Headset Microphone (type: Headset, priority: 8800, latency offset: 0 usec, availability group: Legacy 2, not available)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:hdmi-stereo+input:analog-stereo, output:hdmi-surround+input:analog-stereo, output:hdmi-surround71+input:analog-stereo, output:hdmi-stereo-extra1+input:analog-stereo, output:hdmi-surround-extra1+input:analog-stereo, output:hdmi-surround71-extra1+input:analog-stereo, output:hdmi-stereo-extra2+input:analog-stereo, output:hdmi-surround-extra2+input:analog-stereo, output:hdmi-surround71-extra2+input:analog-stereo, output:hdmi-stereo-extra3+input:analog-stereo, output:hdmi-surround-extra3+input:analog-stereo, output:hdmi-surround71-extra3+input:analog-stereo
		analog-output-speaker: Speakers (type: Speaker, priority: 10000, latency offset: 0 usec, availability unknown)
			Properties:
				device.icon_name = "audio-speakers"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
		analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, availability group: Legacy 2, not available)
			Properties:
				device.icon_name = "audio-headphones"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
		hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo, output:hdmi-stereo+input:analog-stereo, output:hdmi-surround, output:hdmi-surround+input:analog-stereo, output:hdmi-surround71, output:hdmi-surround71+input:analog-stereo
		hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-stereo-extra1+input:analog-stereo, output:hdmi-surround-extra1, output:hdmi-surround-extra1+input:analog-stereo, output:hdmi-surround71-extra1, output:hdmi-surround71-extra1+input:analog-stereo
		hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-stereo-extra2+input:analog-stereo, output:hdmi-surround-extra2, output:hdmi-surround-extra2+input:analog-stereo, output:hdmi-surround71-extra2, output:hdmi-surround71-extra2+input:analog-stereo
		hdmi-output-3: HDMI / DisplayPort 4 (type: HDMI, priority: 5600, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-stereo-extra3+input:analog-stereo, output:hdmi-surround-extra3, output:hdmi-surround-extra3+input:analog-stereo, output:hdmi-surround71-extra3, output:hdmi-surround71-extra3+input:analog-stereo
$ pactl list sinks
Sink #0
	State: SUSPENDED
	Name: alsa_output.pci-0000_00_1f.3.analog-stereo
	Description: Audio interne Stéréo analogique
	Driver: module-alsa-card.c
	Sample Specification: s16le 2ch 44100Hz
	Channel Map: front-left,front-right
	Owner Module: 6
	Mute: no
	Volume: front-left: 56705 /  87% / -3.77 dB,   front-right: 56705 /  87% / -3.77 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC293 Analog"
		alsa.id = "ALC293 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0x601f558000 irq 170"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "a0c8"
		device.product.name = "Tiger Lake-LP Smart Sound Technology Audio Controller"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "352800"
		device.buffering.fragment_size = "176400"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Stéréo analogique"
		device.description = "Audio interne Stéréo analogique"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Ports:
		analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability unknown)
		analog-output-headphones: Headphones (type: Headphones, priority: 9900, availability group: Legacy 2, not available)
	Active Port: analog-output-speaker
	Formats:
		pcm

And there's no output for the command:

$ pactl list sink-inputs

Last edited by k4s5eng (2023-01-23 08:56:20)

Offline

#4 2023-01-23 10:47:36

k4s5eng
Member
Registered: 2023-01-22
Posts: 5

Re: [Solved] Firefox doesn't play videos

I was affected by this pb: https://archlinux.org/news/undone-repla … replumber/
I installed pipewire-media-session and that resolved both issues (sound on my system and video on Firefox).
Thank you for your pointing me where the problem was V1del!

Offline

#5 2023-01-23 10:54:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,196

Re: [Solved] Firefox doesn't play videos

Yes that's that one. If you really wanted to switch from pulseaudio you'd have to install the full pipewire stack i.e. pipewire-{pulse,alsa} instead of pulseaudio{,-alsa}

Last edited by V1del (2023-01-23 10:55:04)

Offline

#6 2023-01-23 13:50:10

heftig
Developer
From: Germany
Registered: 2010-04-19
Posts: 159

Re: [Solved] Firefox doesn't play videos

Did you have pipewire-pulse installed while it was broken?

Offline

#7 2023-01-23 14:27:57

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,196

Re: [Solved] Firefox doesn't play videos

According to the fuser output above it was a mixed wireplumber/pulseaudio thus somewhat expected to conflict combination.

Offline

#8 2023-01-23 22:11:34

k4s5eng
Member
Registered: 2023-01-22
Posts: 5

Re: [Solved] Firefox doesn't play videos

V1del wrote:

Yes that's that one. If you really wanted to switch from pulseaudio you'd have to install the full pipewire stack i.e. pipewire-{pulse,alsa} instead of pulseaudio{,-alsa}

I was planing on using full Wireplumber, but from what I understood, it wasn't "mature" yet on arch and I switched to Pipewire instead.

Offline

#9 2023-01-23 22:12:28

k4s5eng
Member
Registered: 2023-01-22
Posts: 5

Re: [Solved] Firefox doesn't play videos

V1del wrote:

According to the fuser output above it was a mixed wireplumber/pulseaudio thus somewhat expected to conflict combination.

It's odd cause I didn't install Pulsaudio on my system...

Offline

#10 2023-01-23 23:14:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,196

Re: [Solved] Firefox doesn't play videos

Well evidence speaks against that. What will generally happen if you didn't do this explicitly, that you installed something requiring libpulse and then answered with enter on the question of whether pulseaudio or pipewire-pulse should be installed to satisfy that need, which will pick whatevers selected first.

Unless you used archinstall, in which case  you'd have to ask th0rxed sounds like a bug, it should setup pipewire-pulse if you selected pipewire.

Last edited by V1del (2023-01-23 23:16:34)

Offline

Board footer

Powered by FluxBB