You are not logged in.

#1 2022-01-29 21:21:50

Pound_Hash
Member
Registered: 2022-01-29
Posts: 6

[SOLVED] The audio in qutebrowser is popping/crackling

Tested on YouTube and SoundCloud.

There's no intelligible audio coming through, only the popping/crackling.

sound server:

pipewire 1:0.3.44-1

qutebrowser:

qutebrowser 2.4.0-2

(default QtWebEngine backend)

Other software:

pipewire-alsa 1:0.3.44-1
pipewire-pulse 1:0.3.44-1
wireplumber 0.4.7-1

I already searched for "qutebrowser audio" and didn't see any pertinent posts.

EDIT: See last post for resolution.

Last edited by Pound_Hash (2022-02-01 20:35:14)

Offline

#2 2022-01-29 21:23:02

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

Re: [SOLVED] The audio in qutebrowser is popping/crackling

Just in qutebrowser, nowhere else? During this situation what's your output for

pactl list sinks
pactl list sink-inputs

Offline

#3 2022-01-29 21:27:42

Pound_Hash
Member
Registered: 2022-01-29
Posts: 6

Re: [SOLVED] The audio in qutebrowser is popping/crackling

Wow, you're quick. Thanks!

Yes, the problem only occurs in qutebrowser.

Sorry, I need to edit this post. One second...

Last edited by Pound_Hash (2022-01-29 21:29:13)

Offline

#4 2022-01-29 21:31:10

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

Re: [SOLVED] The audio in qutebrowser is popping/crackling

While actively producing audio in qutebrowser? if that's the output while listening to something then something is wonky on your setup in general.

sudo fuser -v /dev/snd/*
pw-top

Last edited by V1del (2022-01-29 21:31:42)

Offline

#5 2022-01-29 21:31:24

Pound_Hash
Member
Registered: 2022-01-29
Posts: 6

Re: [SOLVED] The audio in qutebrowser is popping/crackling

Output of pactl list sinks:

Sink #45
	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: 49150 /  75% / -7.50 dB,   front-right: 49150 /  75% / -7.50 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.device = "0"
		alsa.driver_name = "snd_hda_intel"
		alsa.id = "ALC3246 Analog"
		alsa.long_card_name = "HDA Intel PCH at 0xef228000 irq 133"
		alsa.name = "ALC3246 Analog"
		alsa.resolution_bits = "16"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		api.alsa.card.longname = "HDA Intel PCH at 0xef228000 irq 133"
		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 = "8"
		device.api = "alsa"
		device.class = "sound"
		device.id = "42"
		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 Analog Stereo"
		node.name = "alsa_output.pci-0000_00_1f.3.analog-stereo"
		node.nick = "HDA Intel PCH"
		node.pause-on-idle = "false"
		object.path = "alsa:pcm:0:front:0:playback"
		priority.driver = "1009"
		priority.session = "1009"
		factory.id = "18"
		client.id = "34"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "45"
		object.serial = "42"
		node.max-latency = "8192/48000"
	Ports:
		analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability group: Legacy 3, availability unknown) lis
		analog-output-headphones: Headphones (type: Headphones, priority: 9900, availability group: Legacy 2, not available)
	Active Port: analog-output-speaker
	Formats:
		pcm

Output of pactl list sink-inputs:

Sink Input #56
	Driver: PipeWire
	Owner Module: n/a
	Client: 58
	Sink: 45
	Sample Specification: float32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Format: pcm, format.sample_format = "\"float32le\""  format.rate = "48000"  format.channels = "2"  format.channel_map = "\"front-left,front-right\""
	Corked: no
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Buffer Latency: 0 usec
	Sink Latency: 0 usec
	Resample method: PipeWire
	Properties:
		client.api = "pipewire-pulse"
		pulse.server.type = "unix"
		application.name = "qutebrowser"
		application.icon_name = "chromium-browser"
		application.process.id = "112999"
		application.process.user = "alan"
		application.process.host = "alans-latitude"
		application.process.binary = "QtWebEngineProcess"
		application.language = "C"
		window.x11.display = ":0"
		application.process.machine_id = "7d6e5ae1926840d7ae10f31db0b69e72"
		application.process.session_id = "1"
		media.name = "Playback"
		node.rate = "1/48000"
		stream.is-live = "true"
		node.name = "qutebrowser"
		node.autoconnect = "true"
		media.class = "Stream/Output/Audio"
		adapt.follower.node = ""
		object.register = "false"
		factory.id = "6"
		audio.adapt.follower = ""
		factory.mode = "split"
		library.name = "audioconvert/libspa-audioconvert"
		client.id = "58"
		object.id = "56"
		object.serial = "405"
		node.latency = "512/48000"
		pulse.attr.maxlength = "4194304"
		pulse.attr.tlength = "8192"
		pulse.attr.prebuf = "6152"
		pulse.attr.minreq = "2048"
		module-stream-restore.id = "sink-input-by-application-name:qutebrowser"

Offline

#6 2022-01-29 21:32:28

Pound_Hash
Member
Registered: 2022-01-29
Posts: 6

Re: [SOLVED] The audio in qutebrowser is popping/crackling

V1del wrote:

While actively producing audio in qutebrowser? if that's the output while listening to something then something is wonky on your setup in general.

sudo fuser -v /dev/snd/*
pw-top

Sorry, my original post was a mistake. I didn't have the audio playing at the time.

Offline

#7 2022-01-29 21:36:36

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

Re: [SOLVED] The audio in qutebrowser is popping/crackling

Can you post pw-top anyway? bit wierd that the buffer latency values aren't filled but that might be a pipewire pulse emulation bug. Try starting qutebrowser with e.g.

PULSE_LATENCY_MSEC=60 qutebrowser

does it get better?

Offline

#8 2022-01-29 22:06:29

Pound_Hash
Member
Registered: 2022-01-29
Posts: 6

Re: [SOLVED] The audio in qutebrowser is popping/crackling

Output of pw-top:

V7pc6QZ.jpg

---

Setting the PULSE_LATENCY_MSEC variable didn't help.

Last edited by Pound_Hash (2022-01-29 22:08:32)

Offline

#9 2022-02-01 20:32:05

Pound_Hash
Member
Registered: 2022-01-29
Posts: 6

Re: [SOLVED] The audio in qutebrowser is popping/crackling

The audio is working now. I installed the qt5-webkit backend along with the gst plugins and set webkit as the backend. The audio worked. So I started filing an issue on Github and while doing so tested the webengine (default) backend again. It was working, surprisingly. So I backtracked and uninstalled the qt5-webkit backend along with the gst plugins (and reset the backend in qute). The audio is still working. So I don't know what the problem was originally. It may have been an upstream bug because I did update all the relevant programs per Arch recommendations.

Last edited by Pound_Hash (2022-02-01 20:34:18)

Offline

#10 2022-03-13 20:43:16

crides
Member
Registered: 2022-03-13
Posts: 1

Re: [SOLVED] The audio in qutebrowser is popping/crackling

I have the same problem yesterday. Found out later I forgot to restart the pipewire and pipewire-pulse services

Offline

Board footer

Powered by FluxBB