Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use iCal to schedule recording of WMA radio streams' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use iCal to schedule recording of WMA radio streams
Authored by: mbelchuk on Oct 30, '05 01:56:59PM

It seems that since upgrading to iTunes 6 the recordings from this hint no longer appear in the iTunes library. Nothing appears to happen and iTunes does not seem to acknowledge that anything was done. The recorded files can be located, however, in the iTunes music folder and they play just fine with VLC and QuickTime. It's just that iTunes won't play them.

While I haven't figured out exactly why the hint broke, I have found a way around it. Here's an excerpt of my revised script.

set tempfile to (system attribute "HOME") & "/Desktop/Recording" & radio_station & ".mp3"
do shell script "/Applications/VLC.app/Contents/MacOS/VLC -q " & radio_URL & " --sout='#transcode{acodec=mp3,ab=64,channels=2}:standard{access=file,mux=wav,url=" & tempfile & "}' &> /dev/null &"

-- sleep till end_date
set duration to (end_date - (current date))
delay duration

-- stop recording
tell application "VLC"
stop
-- wait 10 seconds to let saving finishes
delay 10
quit
end tell

To summarize what I've done. First, I instructed VLC to save the captured audio in a MP3 format. Secondly, I extended the time allowed to save the file.


---
mbee



[ Reply to This | # ]
Use iCal to schedule recording of WMA radio streams
Authored by: mamaway on Nov 16, '05 11:16:40AM
Thanks for the mp3 tip. All I had to do to get the entire script to work from there was change:
tell application "iTunes" launch set new_track to add (tempfile as POSIX file) to playlist "Library" of source "Library"
to:
tell application "iTunes" launch set new_track to add (tempfile as POSIX file) to playlist "RadioRecordings"
And make that playlist of course.

[ Reply to This | # ]
Use iCal to schedule recording of WMA radio streams
Authored by: dieter2 on Feb 18, '06 02:44:41PM

I've tried this on two different machines (an old ibook running 10.3 and a less old Quicksilver running 10.4.4). While this worked fine on the ibook, I found that on the quicksilver I needed to change "mux=wav" to "mux=raw" -- the latter is usually available through the VLC GUI for recording, so it may be more correct. Anyway, try it if you run into trouble.

Other lessons learned: As noted in the original post, don't set the iCal alarm to go off before the event. This causes failures. Also, if you're having trouble getting the script to work, modify the error dialogue to actually display the error information -- obvious, I suppose, but it helps.



[ Reply to This | # ]