I know this isn't exactly in spirit with what's normally posted to this
list, but I think it's topical, and maybe one or more of you can lend me
some advice.



I need to know the most universal way possible how to tell if I am
properly receiving signal from line-in on my soundcard.  I'm using oss
and ossmix in my init scripts (ossmix configs listed below) to set up
mixing from line-in.  

Ultimately, I'm testing this because I need to encode a live mp3 stream
from line-in and pass it off to icecast.  I've been using a small C
program written by Tim Pozar, called catdsp, which should open up the
dsp device and start writing the PCM data to STDOUT, called by his
mixice.pl (since I couldn't ever get liveice to work at all), and the
resulting sound from icecast is jumbled, and alternates between noise
and silence.

Would my best way of testing this be running catdsp piped to {some encoder}
and make a test MP3 file out of that?  What if catdsp is the problem; is
there some other way to setup a pipe from my DSP device?  I just know very
little about several parts of this, so they could -all- be bad, for all
I know.

Also, I've tried several versions of lame (3.01, 3.70, notlame 3.13), and
they all seem to operate roughly the same, under the above (mixice.pl +
icecast) circumstances.  I fully expect to have to take this discussion
to the icecast list, if I find that my line-in recording is not the problem.

Last, this is a mandrake linux box with a 2.2.14 kernel.  It's a soundblaster
card which is fully supported by OSS, but I don't know exactly which one.
The ossmix configs were leftover from when this box was used to pull
line-in to rebroadcast using real{producer|server|etc}.  So, I'm certain
the soundcard is adequately supported.


I really appreciate any help.  I'm including snippets of mentioned things,
below, in hopes that they'll clarify some of what I've said.  For the sake
of brevity, I'll leave out mixice.pl and catdsp.c, but they can be found
at http://www.lns.com/papers/mixice/mixice.pl and 
http://www.lns.com/papers/catdsp/catdsp.c respectively.



Abbe DeMoss


:

ossmix, called from init scripts:

/usr/local/lib/oss/ossmix -d0 line.rec ON
/usr/local/lib/oss/ossmix -d0 mic.rec OFF
/usr/local/lib/oss/ossmix -d0 line 100
/usr/local/lib/oss/ossmix -d0 igain 100

mixice.pl config bits:

# Audio...
$ksamplerate = 22.05;                   # Sample rate in KHz;
$samplerate = $ksamplerate * 1000;      # Sample rate in Hz;
$kbitrate = 56;                 # Bit rate in Kb/s;
$bitrate = $kbitrate * 1000;    # Bit rate in Hz;
$mono = 0;              # 1=mono; 0=stereo

# Stereo arguments...
$catdspmono = "";
$lamemono = "";
$mp3encmono = "";

$device = "/dev/dsp";

# Server to send to...
$hostname = "localhost";
$port = 8000;                   # icecast server/control port
$password = "<removed>";
$audiocast_login = 1;
$audiocast_mountpoint = "/live";

# Description of stream...
$name = "Radio Free Groovetech";
$genre = "whatever";
$url = "http://www.groovetech.com";
$public = 0;            # 1=Public; 0=Private (not announced) stream

--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to