You are not logged in.

#1 2024-07-19 02:28:49

mucasan
Member
Registered: 2024-07-19
Posts: 7

[SOLVED] Youtube videos aren't working on any browser

I have recently tried to play youtube on my browser, however whenever I tried to play a video, it would play for 1 second, and then stop playing. However, the sound would go a little bit further, before stopping too. After several minutes, the video would advance 1 second again and the audio went along a bit too. This pattern kept happening, and I'd like to solve it. It also seems like it breaks other videos of the browser, so if any of you could help me, I'd be thankful! :) 

I've tried the following:

Running youtube videos on librewolf, google chrome, chromium, firefox and brave and got no result. (didn't work)
Running the browser on safe mode(didn't work)
Played a youtube video throughout mpv and its youtube URL (worked but browser videos are still broken)
Thought it could be NVIDIA cards issue, so tried to troubleshooting it by running glxgears. (worked just fine)
Installed pipewire-pulse (didn't fix the video problem on the browser)
Played spotify, the soundtrack (worked just fine, however, when it came to the ads with videos, it stopped working and would go into a cycle of retrying to play again)

Checked for any pulseaudio library which could be overlapping pipewire-pulse, so , when running
$ pacman -Sqs | grep pulse
It returned the dependencies associated

libpulse
pipewire-pulse
projectm-pulseaudio
pulse-native-provider
pulseaudio
pulseaudio-alsa
pulseaudio-bluetooth
pulseaudio-equalizer
pulseaudio-equalizer-ladspa
pulseaudio-jack
pulseaudio-lirc
pulseaudio-qt
pulseaudio-rtp
pulseaudio-zeroconf
pulsemixer
pulseview
xfce4-pulseaudio-plugin
 

However, when I tried to remove the libraries with the string pulseaudio by running
$ sudo pacman -Rns pulseaudio
It returned

 error: target not found: pulseaudio 

I tried to check for wireplumber status, so by running:
$ systemctl --user status wireplumber
It returned

● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
     Active: active (running) since Thu 2024-07-18 22:26:59 -03; 34min ago
 Invocation: 734c52678fcf48b49d8c0545fe1d5e60
   Main PID: 848 (wireplumber)
      Tasks: 7 (limit: 18745)
     Memory: 51.1M (peak: 51.6M)
        CPU: 3.326s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
             └─848 /usr/bin/wireplumber

Jul 18 22:26:59 blackarch systemd[836]: Started Multimedia Service Session Manager.
Jul 18 22:27:00 blackarch wireplumber[848]: [0:01:35.583772413] [848] ERROR IPAModule ipa_module.cpp:172 Symbol ipaModuleInfo not found
Jul 18 22:27:00 blackarch wireplumber[848]: [0:01:35.583800613] [848] ERROR IPAModule ipa_module.cpp:292 v4l2-compat.so: IPA module has no valid info
Jul 18 22:27:00 blackarch wireplumber[848]: [0:01:35.583818903] [848]  INFO Camera camera_manager.cpp:313 libcamera v0.3.0
Jul 18 22:52:28 blackarch wireplumber[848]: wp-event-dispatcher: <WpAsyncEventHook:0x6098170e9d30> failed: failed to activate item: Object activation aborted: proxy destro>
Jul 18 22:58:15 blackarch wireplumber[848]: wp-event-dispatcher: <WpAsyncEventHook:0x6098170dddc0> failed: <WpSiStandardLink:0x6098173cfe70> link failed: 1 of 1 PipeWire l>

I tried to check for v4l2 and IPA specific configs, but no return (tried to reinstall pipewire-v4l2 specific lib), so probably the issue lies here.

My system configurations related to video processing are the following:
$ inxi -G

Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q] driver: nvidia
    v: 555.58.02
  Device-3: SunplusIT HD User Facing driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.1
    compositor: kwin_wayland driver: N/A resolution: 1: 1536x864 2: 1536x864
  API: EGL v: 1.5 drivers: iris,nvidia,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 555.58.02
    renderer: NVIDIA GeForce RTX 3070 Laptop GPU/PCIe/SSE2
  API: Vulkan v: 1.3.279 drivers: nvidia,intel surfaces: xcb,xlib,wayland

$ systemctl --user status pipewire

● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
     Active: active (running) since Thu 2024-07-18 22:26:59 -03; 55min ago
 Invocation: 5086f095897a4e7482d515d896aff2bb
TriggeredBy: ● pipewire.socket
   Main PID: 847 (pipewire)
      Tasks: 3 (limit: 18745)
     Memory: 24.1M (peak: 24.7M)
        CPU: 8.358s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─847 /usr/bin/pipewire

Jul 18 22:26:59 blackarch systemd[836]: Started PipeWire Multimedia Service.

$ pactl list sinks

Sink #49
	State: SUSPENDED
	Name: alsa_output.pci-0000_01_00.1.hdmi-ac3-surround
	Description: GA104 High Definition Audio Controller Digital Surround 5.1 (HDMI/AC3)
	Driver: PipeWire
	Sample Specification: s32le 6ch 48000Hz
	Channel Map: front-left,front-right,rear-left,rear-right,front-center,lfe
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB,   rear-left: 65536 / 100% / 0.00 dB,   rear-right: 65536 / 100% / 0.00 dB,   front-center: 65536 / 100% / 0.00 dB,   lfe: 65536 / 100% / 0.00 dB
	       balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_01_00.1.hdmi-ac3-surround.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.class = "generic"
		alsa.device = "0"
		alsa.id = "a52:1,'hw:1,3'"
		alsa.name = "a52:1,'hw:1,3'"
		alsa.resolution_bits = "32"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "a52:1,'hw:1,3'"
		alsa.sync.id = "00000000:00000000:00000000:00000000"
		api.alsa.card.longname = "HDA NVidia at 0x60000000 irq 17"
		api.alsa.card.name = "HDA NVidia"
		api.alsa.path = "plug:{SLAVE=\"a52:1,'hw:1,3'\"}"
		api.alsa.pcm.card = "1"
		api.alsa.pcm.stream = "playback"
		audio.channels = "6"
		audio.position = "FL,FR,RL,RR,FC,LFE"
		card.profile.device = "7"
		device.api = "alsa"
		device.class = "sound"
		device.id = "47"
		device.profile.description = "Digital Surround 5.1 (HDMI/AC3)"
		device.profile.name = "hdmi-ac3-surround"
		device.routes = "0"
		factory.name = "api.alsa.pcm.sink"
		media.class = "Audio/Sink"
		device.description = "GA104 High Definition Audio Controller"
		node.name = "alsa_output.pci-0000_01_00.1.hdmi-ac3-surround"
		node.nick = "a52 1,'hw 1,3'"
		node.pause-on-idle = "false"
		object.path = "alsa:acp:NVidia:7:playback"
		port.group = "playback"
		priority.driver = "1000"
		priority.session = "1000"
		factory.id = "19"
		clock.quantum-limit = "8192"
		client.id = "46"
		node.driver = "true"
		node.loop.name = "data-loop.0"
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "49"
		object.serial = "49"
		api.acp.auto-port = "false"
		api.alsa.card = "1"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio1"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.bus = "pci"
		device.bus_path = "pci-0000:01:00.1"
		device.enum.api = "udev"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_01_00.1"
		device.nick = "HDA NVidia"
		device.plugged.usec = "7752587"
		device.product.id = "0x228b"
		device.product.name = "GA104 High Definition Audio Controller"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
		device.vendor.id = "0x10de"
		device.vendor.name = "NVIDIA Corporation"
		alsa.card = "1"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0x60000000 irq 17"
		alsa.driver_name = "snd_hda_intel"
		alsa.mixer_name = "Nvidia GPU 9e HDMI/DP"
		alsa.components = "HDA:10de009e,10251547,00100100"
		device.string = "1"
	Formats:
		pcm

Sink #60
	State: RUNNING
	Name: alsa_output.pci-0000_00_1f.3.analog-stereo
	Description: Built-in Audio Analog Stereo
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 62259 /  95% / -1.34 dB,   front-right: 62259 /  95% / -1.34 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.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.class = "generic"
		alsa.components = "HDA:10ec0295,10251534,00100002 HDA:80862812,80860101,00100000"
		alsa.device = "0"
		alsa.driver_name = "snd_hda_intel"
		alsa.id = "PCH"
		alsa.long_card_name = "HDA Intel PCH at 0x6205270000 irq 217"
		alsa.mixer_name = "Realtek ALC295"
		alsa.name = "ALC295 Analog"
		alsa.resolution_bits = "16"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.sync.id = "00000000:00000000:00000000:00000000"
		api.alsa.card.longname = "HDA Intel PCH at 0x6205270000 irq 217"
		api.alsa.card.name = "HDA Intel PCH"
		api.alsa.path = "front:0"
		api.alsa.pcm.card = "0"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "7"
		device.api = "alsa"
		device.class = "sound"
		device.id = "48"
		device.profile.description = "Analog Stereo"
		device.profile.name = "analog-stereo"
		device.routes = "2"
		factory.name = "api.alsa.pcm.sink"
		media.class = "Audio/Sink"
		device.description = "Built-in Audio"
		node.name = "alsa_output.pci-0000_00_1f.3.analog-stereo"
		node.nick = "ALC295 Analog"
		node.pause-on-idle = "false"
		object.path = "alsa:acp:PCH:7:playback"
		port.group = "playback"
		priority.driver = "1009"
		priority.session = "1009"
		factory.id = "19"
		clock.quantum-limit = "8192"
		client.id = "46"
		node.driver = "true"
		node.loop.name = "data-loop.0"
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "50"
		object.serial = "60"
		node.max-latency = "16384/48000"
		api.alsa.period-size = "1024"
		api.alsa.period-num = "32"
		api.alsa.headroom = "0"
		api.acp.auto-port = "false"
		api.alsa.card = "0"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio0"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.bus = "pci"
		device.bus_path = "pci-0000:00:1f.3"
		device.enum.api = "udev"
		device.form_factor = "internal"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_00_1f.3"
		device.nick = "HDA Intel PCH"
		device.plugged.usec = "8527183"
		device.product.id = "0x43c8"
		device.product.name = "Tiger Lake-H HD Audio Controller"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.vendor.id = "0x8086"
		device.vendor.name = "Intel Corporation"
		device.string = "0"
	Ports:
		analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability group: Legacy 3, availability unknown)
		analog-output-headphones: Headphones (type: Headphones, priority: 9900, availability group: Legacy 2, not available)
	Active Port: analog-output-speaker
	Formats:
		pcm

Checked for journalctl logs and it returned nothing.

It's nice to say that I've configured OPTIMUS to integrate both NVIDIA discrete card and Intel integrated card. Not really sure if it'd influence in videos running on the browser.

Last edited by mucasan (2024-07-19 23:21:43)

Offline

#2 2024-07-19 05:22:29

mpan
Member
Registered: 2012-08-01
Posts: 1,343
Website

Re: [SOLVED] Youtube videos aren't working on any browser

Set the video quality to 360p.

Recently Alphabet stopped serving combined streams (video+audio) for anything other than 360p and their CDN seems to be choking while serving DASH content.

Alternatively make sure you watch advertisements in full. However, I don’t know whether this has an actual effect or just a coincidence from lowering bandwidth requirements for the main video.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2024-07-19 17:57:21

mucasan
Member
Registered: 2024-07-19
Posts: 7

Re: [SOLVED] Youtube videos aren't working on any browser

Setting the video on the browser to 360p didn't do the trick. I tried to with even lower quality, and no results regarding youtube browser, even with different browsers, still got the same pattern stated into the post.

Offline

#4 2024-07-19 18:25:56

mucasan
Member
Registered: 2024-07-19
Posts: 7

Re: [SOLVED] Youtube videos aren't working on any browser

Not really sure if these would help, but by running these:

$ sudo dmesg | grep -iE 'snd|sof'

[    0.036777] software IO TLB: area num 16.
[    0.409688] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.409689] software IO TLB: mapped [mem 0x0000000031a8a000-0x0000000035a8a000] (64MB)
[    0.515964] integrity: Loaded X.509 cert 'Microsoft Windows Production PCA 2011: a92902398e16c49778cd90f99e4f9ae17c55af53'
[    0.515974] integrity: Loaded X.509 cert 'Microsoft Corporation UEFI CA 2011: 13adbf4309bd82709c8cd54f316ed522988a1bd4'
[    7.290981] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[    7.291178] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    7.291418] snd_hda_intel 0000:01:00.1: Disabling MSI
[    7.291424] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    7.292784] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.417137] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC295: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    7.417140] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    7.417141] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    7.417142] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    7.417143] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    7.417143] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x19
[    7.417144] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
[ 1453.018524] snd_hda_intel 0000:01:00.1: IRQ timing workaround is activated for card #1. Suggest a bigger bdl_pos_adj.

$ journalctl -xe | grep wireplumber

Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
      Pass -q to turn off this notice.
Jul 19 14:49:37 blackarch wireplumber[815]: [0:00:14.757292060] [815] ERROR IPAModule ipa_module.cpp:172 Symbol ipaModuleInfo not found
Jul 19 14:49:37 blackarch wireplumber[815]: [0:00:14.757305441] [815] ERROR IPAModule ipa_module.cpp:292 v4l2-compat.so: IPA module has no valid info
Jul 19 14:49:37 blackarch wireplumber[815]: [0:00:14.757321009] [815]  INFO Camera camera_manager.cpp:313 libcamera v0.3.0

$ sudo fuser -v /dev/snd/*

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  svillar     815 F.... wireplumber
/dev/snd/controlC1:  svillar     815 F.... wireplumber
/dev/snd/seq:        svillar     814 F.... pipewire

Perhaps this could give you a better insight of what's going on.

Offline

#5 2024-07-19 19:54:52

seth
Member
Registered: 2012-09-03
Posts: 59,740

Re: [SOLVED] Youtube videos aren't working on any browser

Played a youtube video throughout mpv and its youtube URL (worked but browser videos are still broken)

What exactly does that mean?

mpv 'https://www.youtube.com/watch?v=v2AC41dglnM'

plays just fine? "but playing the same url in the browser isn't"?

Played spotify, the soundtrack (worked just fine, however, when it came to the ads with videos, it stopped working and would go into a cycle of retrying to play again)

vainfo

Online

#6 2024-07-19 20:46:06

mucasan
Member
Registered: 2024-07-19
Posts: 7

Re: [SOLVED] Youtube videos aren't working on any browser

For some reason, all my /etc/pipewire /etc/pipewire-pulse and /etc/jack directories were empty. So I accessed  /usr/share/pipewire and its config files, and copied them to the correct directories in the etc folder (following the instructions inside the document). After rebooting again, pipewire, pipewire-pulse and wireplumber aren't working anymore, and now, the audio's broken but the video is fine working on  the browser.

Also, for some reason, KMIX (KDE Plasma's mix controllerI use)  took over control, so I set a pulse rule, that perhaps would solve the problem, by following this https://unix.stackexchange.com/question … ource-busy

So, I created the archive /etc/udev/rules.d/89-pulseaudio.rules and inserted the content

 
DRIVERS=="bcm2835_audio", ENV{PULSE_IGNORE}="1"

These are the logs:
$ sudo fuser -v /dev/snd/*

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  svillar    1448 F.... kmix
/dev/snd/controlC1:  svillar    1448 F.... kmix

$ systemctl --user status wireplumber

○ wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
     Active: inactive (dead) since Fri 2024-07-19 17:17:07 -03; 9min ago
   Duration: 44ms
 Invocation: 7ab8147c114f4acca580514d8da2c89e
   Main PID: 926 (code=exited, status=0/SUCCESS)

Jul 19 17:17:07 blackarch systemd[806]: Started Multimedia Service Session Manager.
Jul 19 17:17:07 blackarch systemd[806]: Stopping Multimedia Service Session Manager...
Jul 19 17:17:07 blackarch wireplumber[926]: wireplumber: stopped by signal: Terminated
Jul 19 17:17:07 blackarch wireplumber[926]: wireplumber: disconnected from pipewire
Jul 19 17:17:07 blackarch systemd[806]: Stopped Multimedia Service Session Manager.
Jul 19 17:17:07 blackarch systemd[806]: Dependency failed for Multimedia Service Session Manager.
Jul 19 17:17:07 blackarch systemd[806]: wireplumber.service: Job wireplumber.service/start failed with result 'dependency'.

$ systemctl --user status pipewire-pulse

 pipewire-pulse.service - PipeWire PulseAudio
     Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; preset: enabled)
     Active: inactive (dead) since Fri 2024-07-19 17:17:07 -03; 11min ago
   Duration: 42ms
 Invocation: f926673462584c188d1fd51085f0cf47
TriggeredBy: ○ pipewire-pulse.socket
   Main PID: 927 (code=exited, status=239/CACHE_DIRECTORY)

Jul 19 17:17:07 blackarch systemd[806]: pipewire-pulse.service: Scheduled restart job, restart counter is at 5.
Jul 19 17:17:07 blackarch systemd[806]: pipewire-pulse.service: Start request repeated too quickly.
Jul 19 17:17:07 blackarch systemd[806]: pipewire-pulse.service: Failed with result 'exit-code'.
Jul 19 17:17:07 blackarch systemd[806]: Failed to start PipeWire PulseAudio.

$ systemctl --user status pipewire

○ pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
     Active: inactive (dead) since Fri 2024-07-19 17:17:07 -03; 13min ago
   Duration: 45ms
 Invocation: 1332c9ed74b84ba7b542eff7272ea420
TriggeredBy: ○ pipewire.socket
   Main PID: 925 (code=exited, status=239/CACHE_DIRECTORY)

Jul 19 17:17:07 blackarch systemd[806]: pipewire.service: Scheduled restart job, restart counter is at 5.
Jul 19 17:17:07 blackarch systemd[806]: pipewire.service: Start request repeated too quickly.
Jul 19 17:17:07 blackarch systemd[806]: pipewire.service: Failed with result 'exit-code'.
Jul 19 17:17:07 blackarch systemd[806]: Failed to start PipeWire Multimedia Service.

plays just fine? "but playing the same url in the browser isn't"?

Yes. It means that it used to work on mpv  and not on the browser, but now both are broken.

By running vainfo, it returned
$ vainfo

Trying display: wayland
vainfo: VA-API version: 1.21 (libva 2.22.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.2.5 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileNone                   :	VAEntrypointStats
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointFEI
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointFEI
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointFEI
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointFEI
      VAProfileHEVCMain               :	VAEntrypointEncSliceLP
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointEncSliceLP
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointEncSlice
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointEncSlice
      VAProfileHEVCMain422_12         :	VAEntrypointVLD
      VAProfileHEVCMain422_12         :	VAEntrypointEncSlice
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          :	VAEntrypointVLD
      VAProfileHEVCSccMain10          :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         :	VAEntrypointVLD
      VAProfileHEVCSccMain444         :	VAEntrypointEncSliceLP
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointEncSliceLP

TLDR: Fixed the video problem, however, it's the audio now that isn't working.

Last edited by mucasan (2024-07-19 20:49:57)

Offline

#7 2024-07-19 21:08:41

seth
Member
Registered: 2012-09-03
Posts: 59,740

Re: [SOLVED] Youtube videos aren't working on any browser

Undo the /etc move and remove ~/.config/wireplumber/
You're btw. not running on the nvidia card (but that's fine and you shouldn't)

I assume you've seen https://wiki.archlinux.org/title/Hardwa … plications (though at 144p, your CPU should be more than capable to decode even VP9)

Online

#8 2024-07-19 22:31:59

mucasan
Member
Registered: 2024-07-19
Posts: 7

Re: [SOLVED] Youtube videos aren't working on any browser

I moved the /etc files and they brought the system back to the same state of the first post. Turns out that my ~/.config/wireplumber file was already gone, but I don't remember removing it. I tried to dig into Hardware video acceleration, however, I had already done the configuration for both NVIDIA and Intel drivers, but it seemed that I had forgotten to add the environment variables. After I added them, my /etc/environment file looked like this:

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia %command%
DRI_PRIME=pci-0000_01_00_0 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep 'OpenGL renderer string'
GBM_BACKEND=nvidia-drm
__GLX_VENDOR_LIBRARY_NAME=nvidia
LIBVA_DRIVER_NAME=iHD
VDPAU_DRIVER=nvidia

After running $ mkinitcpio -P (to restart with the given environment variables), I got the following:

==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
==> Starting build: '6.9.10-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: '6.9.10-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'qla1280'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful

I verified the Hardware video acceleration for firefox, and by reading the wiki, I thought it was already on the proper mode.

So I went to test again the youtube videos, and they were still broken. But I thought about testing what kind of data was being processed by my Intel GPU.

Here's the screenshot: https://postimg.cc/SjZfVTzS

The video section wasn't being processed, but the 3d render was. After all those configurations, the video still isn't working, which is weird, since I've tried to launch firefox from its backend in a Wayland compositor (Hyprland) and got the same results. (Btw, mpv still works just fine)

Last edited by mucasan (2024-07-19 22:35:08)

Offline

#9 2024-07-19 23:01:11

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 677

Re: [SOLVED] Youtube videos aren't working on any browser

I (and a few others around here) had a problem like this after the wireplumber 0.4.17-1 -> 0.5.0-1 update in late March this year. It was fixed by `rm -rf ~/.local/state/wireplumber`.

Offline

#10 2024-07-19 23:18:47

mucasan
Member
Registered: 2024-07-19
Posts: 7

Re: [SOLVED] Youtube videos aren't working on any browser

Running the command rm -rf ~/local/state/wireplumber fixed my problem.

Thank you bulletmark , seth and mpan for taking some of your time to help me.

I'll be editing the name of this forum, and put it as solved.

Offline

Board footer

Powered by FluxBB