RaspPi Help

Status
Not open for further replies.

k5acl

Member
Joined
Feb 19, 2016
Messages
11
Location
Austin, TX
I'm new to Linux, trying out the RaspPi streaming project.

I got to this point following the Radio Reference wiki:

pi@raspberrypi:~ $ arecord -f dat -c 1 -D hw:1,0 | \
> /usr/bin/lame -r -s 48 --resample 22.05 -m m -b 16 --cbr --lowpass 4 - - | \
> /usr/bin/ezstream -c /etc/ezstream_bcfy1.xml > /var/log/bcfy1.log 2>&1 &
[1] 1758
bash: /var/log/bcfy1.log: Permission denied
pi@raspberrypi:~ $ Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
arecord: set_params:1239: Channels count non available

I put in my mount number, source password, and changed the name feed in that /etc/.. file & changed the bit rate to 48k

Feed is not active though. Stumped.
 

k5acl

Member
Joined
Feb 19, 2016
Messages
11
Location
Austin, TX
Also tried sudo

Should note that I also tried sudo & that command...

heck maybe its my sound card, just realized that the pi might not be able to power it...

it's a lexicon alpha, didn't see it on the list of sound cards that worked
 
Last edited:

n0rc

Member
Feed Provider
Joined
Oct 28, 2009
Messages
18
Location
Shawnee, KS
I'm new to Linux, trying out the RaspPi streaming project.

I got to this point following the Radio Reference wiki:

pi@raspberrypi:~ $ arecord -f dat -c 1 -D hw:1,0 | \
> /usr/bin/lame -r -s 48 --resample 22.05 -m m -b 16 --cbr --lowpass 4 - - | \
> /usr/bin/ezstream -c /etc/ezstream_bcfy1.xml > /var/log/bcfy1.log 2>&1 &
[1] 1758
bash: /var/log/bcfy1.log: Permission denied
pi@raspberrypi:~ $ Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
arecord: set_params:1239: Channels count non available

I put in my mount number, source password, and changed the name feed in that /etc/.. file & changed the bit rate to 48k

Feed is not active though. Stumped.

First check that you have the sound card sample rate correct. My USB card for the Pi ended up being 96 kHz. Check this by running
Code:
arecord -f dat -r 60000 -D hw:0,0 -d 5 test.wav
. You should see something like
Code:
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 60000 Hz, Stereo
Warning: rate is not accurate (requested = 60000Hz, got = 9600Hz)
         please, try the plug plugin (-Dplug:hw:0,0)
Aborted by signal Interrupt...
Sauce. change the sample rate from 48 to whatever is shown by running that command.

Your next problem is the soundcard probably has more than one channel and the command you're running is setting it to only one channel. The channel count is set in arecord by the -c switch. Change the arecord command to look like this:
Code:
arecord -f dat -c 2 -D hw:1,0
This may not be the "correct" way to handle the "Channels count non available error," but it worked for me.

Also it appears you don't have permission to access /var/log/bcfy1.log for some reason. Try
Code:
sudo chown pi:pi  /var/log/bcfy1.log
sudo chmod 644 /var/log/bcfy1.log
.

Let me know if this works for you. When I get home tonight I can post what I'm running on mine.
 

k5acl

Member
Joined
Feb 19, 2016
Messages
11
Location
Austin, TX
Awesome! Thank you! I'll try that as soon as I get home! My USB sound card has a button on it for mono/stereo. It was in Stereo.
 
Status
Not open for further replies.
Top