You are not logged in.

#1 2019-10-20 13:33:02

Guido Budack
Member
From: Switzerland/Philippines
Registered: 2019-05-02
Posts: 7
Website

Darkice stream not displayed in pavucontrol, no audible stream online

Hi
I am streaming audio with Darkice up to my Icecast2 server since years.
I already encountered some problems in form of a non-audible stream in Firefox a while ago which I simply solved by switching from a mp3 source towards an ogg vorbis.
Since one of the last updates of my arch distro I again encounter problems.
The stream connection was and is still established up to my icecast2 server but now I can't see any stream on my local system.
Meaning, before I always saw the Darkice client in pavucontrol (yes, I use pulseaudio, but have the same issue with alsa/mixxx) under 'recording'.
This isn't the case anymore and I wonder why and if someone else already had similar problems.

The end of the story is, that there is no audio arriving anywhere...

Any help is appreciated.

Cheers

Gee

Last edited by Guido Budack (2019-10-20 13:36:57)


The only absolute knowledge attainable by man is that life is meaningless. (L. Tolstoi)

Offline

#2 2019-10-20 13:43:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,771

Re: Darkice stream not displayed in pavucontrol, no audible stream online

Terminal output of darkice? What's your output for

pacmd list-cards
pacmd list-sources
pacmd list-source-outputs

during this? Post in [ code ] [ /code ] tags

Offline

#3 2019-10-20 15:50:12

Guido Budack
Member
From: Switzerland/Philippines
Registered: 2019-05-02
Posts: 7
Website

Re: Darkice stream not displayed in pavucontrol, no audible stream online

1.)

1 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_00_1b.0>
	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 0xf7d00000 irq 34"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1c20"
		device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Internes Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo-Eingabe (priority 65, available: no)
		output:analog-stereo: Analog Stereo-Ausgabe (priority 6500, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: no)
		output:iec958-stereo: Digital Stereo (IEC958)-Ausgabe (priority 5500, available: unknown)
		output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958)-Ausgabe + Analog Stereo-Eingabe (priority 5565, available: no)
		output:hdmi-stereo: Digital Stereo (HDMI)-Ausgabe (priority 5900, available: unknown)
		output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI)-Ausgabe + Analog Stereo-Eingabe (priority 5965, available: no)
		off: Aus (priority 0, available: unknown)
	active profile: <output:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Internes Audio Analog Stereo
	sources:
		alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Internes Audio Analog Stereo
	ports:
		analog-input-front-mic: Vorderes Mikrofon (priority 8500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-rear-mic: Rückwärtiges Mikrofon (priority 8200, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-linein: Line-Eingang (priority 8100, latency offset 0 usec, available: no)
			properties:
				
		analog-output-lineout: Line-Ausgang (priority 9000, latency offset 0 usec, available: yes)
			properties:
				
		analog-output-headphones: Kopfhörer (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
		iec958-stereo-output: Digitalausgang (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
			properties:
				
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "video-display"
				device.product.name = "VZ249"

2.)

1 source(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
	driver: <module-alsa-card.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: IDLE
	suspend cause: (none)
	priority: 1030
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max rewind: 79 KiB
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 2000.00 ms; range is 16.00 .. 2000.00 ms
	monitor_of: 0
	card: 0 <alsa_card.pci-0000_00_1b.0>
	module: 6
	properties:
		device.description = "Monitor of Internes Audio Analog Stereo"
		device.class = "monitor"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7d00000 irq 34"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1c20"
		device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"

3.)

0 source output(s) available.

I didn't change anything in the configuration(s) of any program.

Last edited by Guido Budack (2019-10-21 07:15:58)


The only absolute knowledge attainable by man is that life is meaningless. (L. Tolstoi)

Offline

#4 2019-10-21 11:22:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,771

Re: Darkice stream not displayed in pavucontrol, no audible stream online

Output of darkice? What's

sudo fuser -v /dev/snd/*

while supposedly streaming something?

Offline

#5 2019-10-28 17:34:36

Guido Budack
Member
From: Switzerland/Philippines
Registered: 2019-05-02
Posts: 7
Website

Re: Darkice stream not displayed in pavucontrol, no audible stream online

/dev/snd/controlC0:  myusername       838 F.... pulseaudio
                     root      99107 F.... darkice
/dev/snd/pcmC0D0c:   root      99107 F...m darkice
/dev/snd/pcmC0D0p:   myusername       838 F...m pulseaudio
/dev/snd/timer:      root      99107 f.... darkice

Last edited by Guido Budack (2019-10-28 17:35:19)


The only absolute knowledge attainable by man is that life is meaningless. (L. Tolstoi)

Offline

#6 2019-10-28 17:54:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,771

Re: Darkice stream not displayed in pavucontrol, no audible stream online

Why is darkice running as root? Is it supposed to? How are you starting it, it's unlikely you want that started as root and this is the entire reason for your issue as darkice can not playback on your user's pulseaudio.

Offline

#7 2019-10-28 19:46:46

Guido Budack
Member
From: Switzerland/Philippines
Registered: 2019-05-02
Posts: 7
Website

Re: Darkice stream not displayed in pavucontrol, no audible stream online

immaterial...
The configuration has been the same for years.
Running the server as non-root is a no-brainer and doesn't make any difference. (tried as suggested)
All the hype about 'to be root or not to be' ...
There are folks out there (or even Distros) running under root only.
Beside mentioning that I am very aware of the possibilities and reasons of root etc.

Like I said in my question:
since an operating system upgrade (which I do in regular intervals) the stream is not listed in pavucontrol under 'recording' anymore (which it was before).
My guess is that there has been some fundamental change in the PA binaries or in this particular program and as this prevents darkice's stream to 'get out'.

Last edited by Guido Budack (2019-10-28 19:48:47)


The only absolute knowledge attainable by man is that life is meaningless. (L. Tolstoi)

Offline

#8 2019-10-28 20:50:54

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,771

Re: Darkice stream not displayed in pavucontrol, no audible stream online

PA has never - unless you've done a knowing change in it's configuration which you probably should disclose if that's the case - allowed a non user owned audio stream to connect to a user owned pulseaudio. That includes, and specifically so, root. If running it as your user get's you the "same" issue, what's in your /etc/asound.conf or FWIW ~/.asoundrc ? strace darkice if need be to figure out what it's doing.

You might also want to post your darkice config and redact sensitive info, as that might help figure out where this is going. and for the literal third time, any kind of terminal output from darkice.

I don't care about "used to work" or any root debate, I  worry about facts and the fact right now is that you have two services fighting for the audio device in  incompatible ways (that is - by the state it's currently in - completely irrelevant to any "operating system change", if you insist on continuing in this direction  go through your pacman log and journal logs, downgrade the kernel and potentially the alsa-libs if you are that sure of what's the cause...).

Also FWIW:

pacmd list-source-outputs 
1 source output(s) available.
    index: 0
        driver: <protocol-native.c>
        flags: 
        state: RUNNING
        source: 2 <alsa_output.usb-1e7d_KAVE_XTD_Headset-00.analog-surround-51.monitor>
        volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        muted: no
        current latency: 42.29 ms
        requested latency: 1981.43 ms
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        resample method: copy
        owner module: 10
        client: 16 <darkice-29580>
        properties:
                media.name = "darkice record"
                application.name = "darkice-29580"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "33"
                application.process.id = "29580"
                application.process.user = "videl"
                application.process.host = "arch-videl"
                application.process.binary = "darkice"
                application.language = "C"
                window.x11.display = ":0"
                application.process.machine_id = "ef708790c5d340338fecf6c8033cfd8e"
                application.process.session_id = "2"
                module-stream-restore.id = "source-output-by-application-name:darkice-29580"
[general]
duration=0
bufferSecs=5
[input]
device=pulseaudio
sampleRate=44100
bitsPerSample=16
channel=2
paSourceName=alsa_output.usb-1e7d_KAVE_XTD_Headset-00.analog-surround-51.monitor
[file-0]
format=mp3
bitrate=128
bitrateMode=vbr
quality=0.8
fileName=/home/videl/darkicetest.mp3

Last edited by V1del (2019-10-29 00:44:26)

Offline

#9 2019-10-30 15:03:06

Guido Budack
Member
From: Switzerland/Philippines
Registered: 2019-05-02
Posts: 7
Website

Re: Darkice stream not displayed in pavucontrol, no audible stream online

Appreciate your enthusiasm to help a lot.
Working backwards here the output of darkice:

DarkIce 1.3 live audio streamer, http://code.google.com/p/darkice/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
Copyright (c) 2008-2013, Akos Maroy and Rafael Diniz
This is free software, and you are welcome to redistribute it 
under the terms of The GNU General Public License version 3 or
any later version.

Using config file: /home/kadub/darkice.cfg
Using ALSA DSP input device: default
buffer size:  1764000
encoding
Using POSIX real-time scheduling, priority 4

Then the darkice.cnf:

[general]
duration = 0
bufferSecs =10
reconnect = yes
realtime = yes
rtprio = 4 

# --------------------------------------------------------------------------- #

[input]
device = default
sampleRate = 44100
bitsPerSample = 16
channel = 2
#jackClientName =
#paSourceName =

# --------------------------------------------------------------------------- #

[icecast2-0]
format = vorbis
bitrateMode = cbr
bitrate = 128
quality = 1.0
server = 94.xxx.24.xxx
#server = 85.xxx.67.xxx [other]
port = 8000
password = xxxxxxxxxx
mountPoint = stream.ogg
#sampleRate =
channel = 2
#maxBitrate =
name = www.xxx.xx
description = decription of whatever you prefer
url = http://xxx.xx
genre = whatever genre you prefer
public = yes
#localDumpFile =
#fileAddDate =
#fileDateFormat =
lowpass = -1
highpass = -1

Then there is the (untouched) /etc/asound.conf:

# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

# vim:set ft=alsaconf:

I just see now some 'asound.conf.pacsave' which seems to be some backup made by pacman?:

#
# /etc/asound.conf
#

# Playing nice with ALSA using this as default
pcm.!default {
    type plug
    slave { pcm "jack" }
    }

ctl.mixer0 {
    type hw
    card 1
}


# pcm type jack
pcm.jack {
    type jack
    playback_ports {
        0 system:playback_1
        1 system:playback_2
    }
    capture_ports {
        0 system:capture_1
        1 system:capture_2
    }
}


ctl.!default {
  type pulse
  fallback "sysdefault"
}

The 'other thing' I posted already above...


The only absolute knowledge attainable by man is that life is meaningless. (L. Tolstoi)

Offline

#10 2019-10-30 15:29:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,771

Re: Darkice stream not displayed in pavucontrol, no audible stream online

By default trying to acquire realtime permissions should fail (and - generally - not really be necessary as pulse should have the appropriate realtime guarantees and they should suffice for this usecase)  if invoked as your user. What have you configured to allow this? Did you invoke darkice as root or as your user? What happens if you explicitly switch to the pulseaudio backend in your config? 

Pacsaves are backups of user altered config files of packages that you explicitly removed at some point. If this was the actual file you were used to using then that would explain quite a few things, as that could potentially make use uf  jack -> pulse compatibility layers. You might want to dig through your pacman.log for changes in that regard.

IMO the best way to figure out what is actually going on here - granted you do not think just explicitly switching to a pulse backend to be sufficient - would be to get an strace of darkice and maybe a pacman.log.

Last edited by V1del (2019-10-30 15:29:26)

Offline

#11 2019-11-06 07:12:52

Guido Budack
Member
From: Switzerland/Philippines
Registered: 2019-05-02
Posts: 7
Website

Re: Darkice stream not displayed in pavucontrol, no audible stream online

I read a lot of should, would and could... which doesn't help.
I partially answered your questions already above in my last postings.

Curiously I get a new output from Darkice now, after I reboot with the 'old settings' (see above).
Here's the Darkice output:

DarkIce 1.3 live audio streamer, http://code.google.com/p/darkice/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
Copyright (c) 2008-2013, Akos Maroy and Rafael Diniz
This is free software, and you are welcome to redistribute it 
under the terms of The GNU General Public License version 3 or
any later version.

Using config file: /home/kadub/darkice.cfg
Using ALSA DSP input device: default
buffer size:  1764000
encoding
Using POSIX real-time scheduling, priority 4
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
DarkIce: DarkIce.cpp:1273: can't open connector [0]

As I told you before several times - the configuration was running for years (user independent, the -Darkice- configuration file was always the same)
and my presumption that an system upgrade has to be the reason for don't doing it anymore seems to me as clear as water.


The only absolute knowledge attainable by man is that life is meaningless. (L. Tolstoi)

Offline

#12 2019-11-06 07:55:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,771

Re: Darkice stream not displayed in pavucontrol, no audible stream online

You do not provide enough information towards your system state to more accurately asses the symptoms, so yes there are a lot of would and could since I don't know how your system is/was set up in general.

There was in fact quite a restructure of the jack packages and I do believe that this might have a relevant correlation here. Again if this is "clear as water to you" identify the update that broke, if need be by doing complete system rollbacks to a date where it works and going incremential until the date that it breaks, at which case you will be precisely able to identify the cause, after which it would still have to be determined on whether the behaviour change was actually intended/to be expected or if you've really identified a bug.

All of this seems to me to be a completely unnecessary undertaking, as your stated end goal is to simply have darkice be controllable and show up in pulseaudio, in which case I suggest you simply adjust your darkice config to use pulse, and start it as your user, if needed automatically with a systemd user service and be done with it.

But it's your system and your configuration so you do you.

Last edited by V1del (2019-11-06 07:58:33)

Offline

Board footer

Powered by FluxBB