»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 09-04-2003, 07:05 AM   #1 (permalink)
Registered User
 
Lemon[H]ead's Avatar
 
Join Date: Dec 1969
Location: Heriot-Watt Uni
Posts: 1,370
Lemon[H]ead is on a distinguished road
Send a message via AIM to Lemon[H]ead
Recording a RealAudio stream to ogg...

Firstly you'll need to get realplayer and vsound also it helps to the ogg encoder oggenc (type which oggenc). If you have no ogg encoder on your system then just comment out the last two lines of the script.
then create and chmod +x this script.
Code:
#!/bin/bash
# initial script by some random guy
# shufted about a bit to my liking by Sean McLemon
# records realplayer stream to an ogg file using vsound and realplayer
# (usage ./record myRealaudiofile.ram)
# kill any instances of realplayer already running

kill `ps ax | grep realplay | awk '{ print $1 }'` 2>/dev/null

# Use vsound to record 
vsound -t -f $*.wav realplay $* &VSOUND_PID=$!
# wait till user is done with realplayer
while ps ax | grep realplay > /dev/null
        do
        sleep 5
        done

# Wait for vsound to terminate, creating vsound.wav
wait $VSOUND_PID

# Encode the output ($name.wav) as an ogg
oggenc $*.wav
rm -f $*.wav
and to record from realaudio stream using this script, enter ./realrecord r1live.ram and close realplayer after the clip is finished playing. (if realrecord is the name of the script, and r1live.ram the name of the realplayer file). It's a bit of a kludge but it seems to work nicely

edit- the filename thinger was causing problems so it looks like r1live.ram.ogg may have to do for the encoded filename for now.


Last edited by Lemon[H]ead; 09-04-2003 at 11:33 AM.
Lemon[H]ead is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 10:38 PM.