Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with a soundcard connected to a Pi zero via the Pi pins #182

Open
blogdemoi opened this issue Oct 24, 2022 · 0 comments
Open

Help with a soundcard connected to a Pi zero via the Pi pins #182

blogdemoi opened this issue Oct 24, 2022 · 0 comments

Comments

@blogdemoi
Copy link

Hello,

I run Darkice + Icecast on a Raspberry Pi zero with a usb soundcard+mic, to livestream audio on my local network and on the web. It is working great.

Recently I bought another soundcard, https://forum.raspiaudio.com/t/ultra-installation-guide/21 which connects to the Pi pins.

I can record audio with this card. However when I wish to use it as my source card in Darkice I have an error message:

$ darkice -c darkice.cfg
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: darkice.cfg
Using ALSA DSP input device: plughw:1,0
Could not set POSIX real-time scheduling, this may cause recording skips.
Try to run darkice as the super-user.
DarkIce: AlsaDspSource.cpp:195: can't set hardware parameters [0]

I selected this card in raspi-config.

My darkice.cfg is:

[general]
duration = 0 # duration in s, 0 forever
bufferSecs = 1 # buffer, in seconds
reconnect = yes # reconnect if disconnected

[input]
device = plughw:1,0 # Soundcard device for the audio input
sampleRate = 44100 # sample rate 11025, 22050 or 44100
bitsPerSample = 16 # bits
channel = 2 # 2 = stereo

[icecast2-0]
bitrateMode = vbr # constant bit rate ('cbr' constant, 'abr' average)
quality = 0.6
format = vorbis # format. Choose 'vorbis' for OGG Vorbis
#bitrate = 320 # bitrate
server = localhost # or IP
port = 8000 # port for IceCast2 access
password = xxx # source password for the IceCast2 server
mountPoint = son.ogg # mount point on the IceCast2 server .mp3 or .ogg
name = xxx
public = no
description = xxx
url = https://xxx

What could be wrong?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant