[Gllug] Recording a RealAudio radio programme...

Dylan dylan at dylan.me.uk
Fri Oct 3 18:52:48 UTC 2003


On Thursday 02 October 2003 19:02 pm, Stan wrote:
<SNIP>
> cat realgrabnow.sh
> plato:~% cat /home/stan/bin/realgrabnow.sh
> #!/bin/sh
>
> echo "Usage: realgrabhow.sh ShowTitle length URL"
> echo "eg: realgrabnow.sh GoonShow 30
> http://www.bbc.co.uk/bbc7/realplayer/dsatg2.ram"
>
> outputdir='/home/stan/BBC'
> title=$1
> url=$3
> programdate=$(date -d 'now' +%Y_%m_%d_%H_%M)
> outputfile=$outputdir/$title\_$programdate.ogg
>
> vsound -t -s trplayer -n -q -t $2:00 $url | sox -t au - -t wav -r 44100 - |
> oggenc --quiet -o $outputfile -

OK, I got vsound installed (from the link ben sent) and that seems ok, but 
your script (with relevant path change in outputdir) returns:

dylan at scooby:~> ./realgrab.sh test 5 http://www.bbc.co.uk/london/live/fmg2.ram
Usage: realgrabhow.sh ShowTitle length URL
eg: realgrabnow.sh GoonShow 30 http://www.bbc.co.uk/bbc7/realplayer/dsatg2.ram
sox: Failed reading -: Did not detect valid Sun/NeXT/DEC magic number in 
header.
ERROR: Input file "(stdin)" is not a supported format
dylan at scooby:~>

sox is installed, but I don't know how to test it is functioning.

Dylan
-- 
Sweet moderation
Heart of this nation
Desert us not
We are between the wars
- Billy Bragg


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list