[nas] Re: help with using sox with nas
sibusiso xolo
sibxol at b-vol.co.uk
Thu Oct 3 07:51:48 MDT 2002
Greetings,
Tobias Diedrich wrote:
> auplay does seem to have some problems with playing from stdin, but this
> should work:
>
> LD_PRELOAD= sox -w -s -c 2 -r 44100 -t ossdsp /dev/dsp -t raw - |
> LD_PRELOAD=libaudiooss.so sox -t raw -w -s -c 2 -r 44100 - -t ossdsp
> /dev/dsp
I now had a chance to try out the bt848 card in more than one motherbard. I
get the same results: I do not seem to be able to to get sound over a
network using nas/audiooss: I tried the following:
1) I tried running xawtv with the following command;
xawtv LD_PRELOAD=libaudiooss.so AUDIOSERVER=remotenasserver:0 sox -t raw -r
44100 -c 2 -w -s - -t ossdsp /dev/dsp
and I get the response station "-" not found. if I start xawtv with
-station=n or started with -C -| before LD_preload the error disappears
but I still get no sound on the nas server. (Sound only on the local
machine) (I also tried changing to mono -r 8000 -c 1 with the same
results.)
2) I then tried your suggested command
LD_PRELOAD= sox -w -s -c 2 -r 44100 -t ossdsp /dev/dsp -t raw - |
LD_PRELOAD=libaudiooss.so sox -t raw -w -s -c 2 -r 44100 - -t ossdsp
/dev/dsp
I inserted AUDIOSERVER=remotenasserver:0.0 after libausiooss.so
(a) the above command with xawtv -C after the first instance of raw and
the response was as in (1) above.
(b) the above command started in one terminal and xawtv started in other
terminal; there was no response on the nas server but as before sound on
the machine where xawtv is started..
(I get the same response in every case whether I define the sound card with
xawtv -C /dev/dsp (or as above with sox) or with -C /dev/video (i.e.
sound card disconnected from the line-out of the bt848 card).
I have had quite an exhaustive go The bad-luck so far be be due to an
artifact of xawtv, who knows (I have not looked at the sources). I will be
happy to give your other suggestions a whirl.
Thanks again and goodbye
Sibu Xolo
On Wednesday 02 October 2002 13:58, Tobias Diedrich wrote:
> sibusiso xolo wrote:
> > I am trying to route sound from a bt848 tv/radio card (using v4l) to a
> > remote nas server: I have done the following:-
> > 1) I have libaudiooss installed
> > 3) the commands
> > export AUDIOSERVER=remote:0.0 and
> > export LD_PRELOAD=/usr/X11R6/lib/libaudiooss.so.1.0
> > are issued on the local and remote hosts.
>
> You only need this on the client (local) host. For the server it is
> sufficient if it runs nasd.
>
> > 4) on the local host with the bt848 card I use the sound
> > routing/conversion utility known as sox as follows:
> > sox -w -c 2 -r 44100 -t ossdsp /dev/dsp -t raw - | auplay -l
> >
> > but nothing happens. I would be grateful for any help ffrom nas users
> > who
>
> In this case it is not good to globally export the LD_PRELOAD line
> because this means libaudiooss is linked agains every app you start
> after that and it always tries to redirect accesses to /dev/dsp to the
> server.
> auplay does seem to have some problems with playing from stdin, but this
> should work:
>
> LD_PRELOAD= sox -w -s -c 2 -r 44100 -t ossdsp /dev/dsp -t raw - |
> LD_PRELOAD=libaudiooss.so sox -t raw -w -s -c 2 -r 44100 - -t ossdsp
> /dev/dsp
>
> Here the first sox command is used without libaudiooss preloaded so that
> it will access your real soundcard and the second is used with
> libaudiooss preloaded so that the output will get redirected to the
> server.
More information about the Nas
mailing list