[wellylug] Sound recording/file creation problem

jumbophut jumbophut at gmail.com
Mon Aug 30 23:09:20 NZST 2004


Hi all

I have an odd problem.

I run a script to record radio programmes which has a line like this in it:

sox -t ossdsp -w -s /dev/dsp -w -c1 -r8000 -t raw - trim 0:0.0
"30:0.0" | oggenc -q 3 -r -R8000 -C1 -B16 -o temp.ogg  -

sox pulls sound from the sound card, and pipes it to oggenc, which
saves it in an ogg file called temp.ogg.

This script has worked just fine for me for a long time, exactly like this.

However, I go to run it today, and get no audio saved.  There is a
temp.ogg file in my home dir, running to about 4K, which is much too
small, and contains no replayable audio.

The funny thing is, if I change the file name to ./temp.ogg, it works
fine.  I get a big ogg file and perfect sound (well, as perfect as 8k
samples/sec mono will ever be).

This wasn't a problem before, so I don't understand why I have to
explicitly add the path now.  Any clues?

-- 
Tony (echo 'spend!,pocket awide' | sed 'y/acdeikospntw!, /l at omcgtjuba.phi/')




More information about the wellylug mailing list