Video wont play anymore

its a problem with both youtube and videos on my pc

if i run mpv on a video this is the output before not being able to play the video (it does cache it it just doesn't ever play it)

```
mpv video.mp4
Resuming playback. This behavior can be disabled with --no-resume-playback.
(+) Video --vid=1 (*) (h264 1920x1080 60.000fps)
(+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
[ffmpeg] AVHWDeviceContext: Failed to query surface attributes: 20 (the requested function is not implemented).
[vo/gpu/vaapi-egl] failed to retrieve libavutil frame constraints
Cannot load libcuda.so.1
Using hardware decoding (vaapi).
[ao/pulse] The stream is suspended. Bailing out.
AO: [alsa] 48000Hz stereo 2ch float
VO: [gpu] 1920x1080 vaapi[nv12]
AV: 00:00:00 / 00:00:18 (1%) A-V: -0.000
Saving state.

Exiting... (Quit)
```
garuda-inxi
System:
Kernel: 5.18.1-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=0133cd8a-e39e-45cf-ab8c-6e1ee6565d1d rw rootflags=subvol=@
rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 loglevel=3
Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.4 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: Dell product: Inspiron 3593 v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: Dell model: 0TGVJN v: A00 serial: <superuser required> UEFI: Dell
v: 1.19.0 date: 12/10/2021
Battery:
ID-1: BAT0 charge: 33.6 Wh (100.0%) condition: 33.6/42.0 Wh (79.9%)
volts: 13.0 min: 11.4 model: SWD-ATL3.618 DELL WJPC404 type: Li-ion
serial: <filter> status: full
CPU:
Info: model: Intel Core i3-1005G1 bits: 64 type: MT MCP arch: Ice Lake
family: 6 model-id: 0x7E (126) stepping: 5 microcode: 0xB0
Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
L1: 160 KiB desc: d-2x48 KiB; i-2x32 KiB L2: 1024 KiB desc: 2x512 KiB
L3: 4 MiB desc: 1x4 MiB
Speed (MHz): avg: 3209 high: 3405 min/max: 400/3400 scaling:
driver: intel_pstate governor: performance cores: 1: 3302 2: 3405 3: 2726
4: 3403 bogomips: 9523
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Enhanced IBRS, IBPB: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel Iris Plus Graphics G1 vendor: Dell driver: i915 v: kernel
ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:8a56
class-ID: 0300
Device-2: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
bus-ID: 1-6:3 chip-ID: 0c45:671e class-ID: 0e02
Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
compositor: kwin_x11 driver: X: loaded: intel unloaded: modesetting
alternate: fbdev,vesa gpu: i915 display-ID: :0 screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
s-diag: 414mm (16.31")
Monitor-1: eDP-1 mapped: eDP1 model: AU Optronics 0x607a built: 2019
res: 1366x768 hz: 60 dpi: 102 gamma: 1.2 size: 340x190mm (13.39x7.48")
diag: 394mm (15.5") ratio: 16:9 modes: 1366x768
OpenGL: renderer: Mesa Intel UHD Graphics (ICL GT1) v: 4.6 Mesa 22.1.0
direct render: Yes
Audio:
Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Dell
driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_icl
bus-ID: 00:1f.3 chip-ID: 8086:34c8 class-ID: 0403
Sound Server-1: ALSA v: k5.18.1-zen1-1-zen running: yes
Sound Server-2: JACK v: 1.9.21 running: no
Sound Server-3: PulseAudio v: 16.0 running: yes
Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell
driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000
bus-ID: 01:00.0 chip-ID: 10ec:8136 class-ID: 0200
IF: enp1s0 state: down mac: <filter>
Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
vendor: Dell driver: ath10k_pci v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 bus-ID: 02:00.0 chip-ID: 168c:0042 class-ID: 0280
IF: wlp2s0 state: up mac: <filter>
IF-ID-1: anbox0 state: down mac: <filter>
Bluetooth:
Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-10:4
chip-ID: 0cf3:e009 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
Local Storage: total: 238.47 GiB used: 107.23 GiB (45.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: A-Data
model: IM2P33F3 NVMe 256GB size: 238.47 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 91002105 temp: 42.9 C scheme: GPT
Partition:
ID-1: / raw-size: 128.16 GiB size: 128.16 GiB (100.00%)
used: 107.18 GiB (83.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
used: 56.9 MiB (22.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 128.16 GiB size: 128.16 GiB (100.00%)
used: 107.18 GiB (83.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 128.16 GiB size: 128.16 GiB (100.00%)
used: 107.18 GiB (83.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 128.16 GiB size: 128.16 GiB (100.00%)
used: 107.18 GiB (83.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 7.54 GiB used: 697.6 MiB (9.0%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 69.0 C mobo: 48.0 C
Fan Speeds (RPM): cpu: 3841
Info:
Processes: 231 Uptime: 12h 1m wakeups: 6 Memory: 7.54 GiB
used: 3.62 GiB (48.0%) Init: systemd v: 251 tool: systemctl Compilers:
gcc: 12.1.0 clang: 13.0.1 Packages: pacman: 1893 lib: 528 Shell: fish
v: 3.4.1 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.16
Garuda (2.6.3-2):
System install date:     2021-09-05
Last full system update: 2022-06-03 ā†»
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       Probably (Run as root to verify)
Snapshots:               Timeshift
Failed units:            anbox-container-manager.service

Try to disable one of these sound servers (and reboot afterward). Disabling it in Garuda Assistant should be fine.

3 Likes

so now when i reboot my computer i can play a video off of mpv but after i open firefox it changes here are the two top is after reboot bottom is after opening firefox

mpv Videos/1halloween.mp4
Resuming playback. This behavior can be disabled with --no-resume-playback.
(+) Video --vid=1 (*) (h264 1280x720 29.970fps)
(+) Audio --aid=1 (*) (aac 2ch 44100Hz)
[ffmpeg] AVHWDeviceContext: Failed to query surface attributes: 20 (the requested function is not implemented)
.
[vo/gpu/vaapi-egl] failed to retrieve libavutil frame constraints
Using hardware decoding (vaapi).
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 1280x720 vaapi[nv12]
AV: 00:00:50 / 00:01:20 (62%) A-V:  0.000
Saving state.

Exiting... (Quit)
mpv Videos/1halloween.mp4
Resuming playback. This behavior can be disabled with --no-resume-playback.
(+) Video --vid=1 (*) (h264 1280x720 29.970fps)
(+) Audio --aid=1 (*) (aac 2ch 44100Hz)
[ffmpeg] AVHWDeviceContext: Failed to query surface attributes: 20 (the requested function is not implemented)
.
[vo/gpu/vaapi-egl] failed to retrieve libavutil frame constraints
Using hardware decoding (vaapi).
[ao/pulse] The stream is suspended. Bailing out.
AO: [alsa] 44100Hz stereo 2ch float
VO: [gpu] 1280x720 vaapi[nv12]
AV: 00:00:50 / 00:01:20 (62%) A-V: -0.000 Dropped: 1
Saving state.

Exiting... (Quit)

sure enough pipewire isnt running at the start of the boot however i cant just remove it

What results do you get if you disable Pulse instead of PipeWire?

so by disabling pipewire i managed to get it to run but every reboot it would pop back up i made a .sh file with systemctl --user stop pipewire.socket and systemctl --user stop pipewire.socket in order to avoid the problem and have it auto-run at start... this works for intended purposes

What about the Firefox thing?

That's not a solution nor a 'fix.' It's barely a workaround.

1 Like

Firefox works fine now

I mean... it solved my problem so it is by all means a "solution" just not one that your too satisfied with, dudes recommendation worked but undid itself after reboot so I just made it run the command on boot

if you have a better way im all ears however

Yes, Iā€™d like to see you follow-up with the help that @BluishHumility has proffered. It has about a 98% (100, ā€˜cept nothing is perfect) chance of providing an actual solution rather than a hack to solve a user-created problem that shouldnā€™t exist in the first place. Like a dog chasinā€™ its own tail.

Get my drift?

It does seem a little hacky, but on the other hand if it works, it works.

I don't know how you ended up on Pulse to begin with, but my guess is something wasn't working properly on PipeWire and switching to Pulse was easier than figuring out how to fix it. Which is fine, nothing wrong with that, but now it seems like that easy fix is starting to drift a little bit and it's taking some extra work to keep it going. This is sometimes referred to as technical debt.

As far as PipeWire goes (in general), it is kind of the direction things are headed. It's a lower-latency server than Pulse, and from what I understand it can handle more stuff and is getting better all the time. Unfortunately, like a lot of new stuff that has the potential to be way better than the old systems we are used to (looking at you Wayland), sometimes stuff isn't working perfectly out of the box and "some assembly may be required".

Like I said, I have nothing against a hacky workaround; I've been known to cobble together a few "solutions" on my setups that I wouldn't care for anyone to inspect too closely. :shushing_face:

2 Likes

You're basically correct, from my understanding. Development on Pulseaudio has ceased. Pipewire is the de facto standard. I say "de facto" for a reason.

Anyway, ALSA, Pipewire with pipewire-media-session as the manager seems to the in-crowd thing today, since wireplumber crapped out. Arch Linux - News: Undone replacement of pipewire-media-session with wireplumber

So the solution lies in (installing and) enabling what needs to be and disabling incongruent sound services. It's just that simple.

But I can only speak of how it works (best) for myself in straight Arch. Today.

regards

1 Like

Yeah, yeah, yeah. We ALL did that in the not-so-distant past of 20-25 or so years ago. But none of us knew any better than hacky shit then. Nowadays thereā€™s no excuse for that inelegant crapā€“a solution to a non-existent problem.