Well, one of our Debian Linux experts in our local LUG, who I think is on this
list, well, Dallas wrote me this script. We call it "strm2mp3"
So for example when I wanted to record France24 during State of the Union, I
would type:
strm2mp3 `cat france24`
/home/chime/mp3/news/france24-president-obama-state-of-the-union-01282014.mp3
In the small file of france24 I have an url. Now hopefully Dallas won't mind
my sharing this following 20lines.
#!/bin/bash
YOURFIFO="/tmp/${RANDOM}.fifo" ;
while [ -e "${YOURFIFO}" ]
do
YOURFIFO="/tmp/${RANDOM}.fifo" ;
done ;
mkfifo "${YOURFIFO}" ;
# ( lame --quiet -q 2 -V 4 "${YOURFIFO}" "${2}" ; rm -f "${YOURFIFO}" ) &
( sox -q -t wav "${YOURFIFO}" -t wavpcm -s - | \
lame --quiet -q 2 -V 4 - "${2}" ; rm -f "${YOURFIFO}" ) &
mplayer -nocache -ao pcm:fast:file="${YOURFIFO}" -vc null -vo null "${1}"
Back again live, Dallas also made a similar which I can rip Firefox type
streams, which maybe one of us will post at a later time. Hope that helps.
Hart
_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list