Celtic Music: Internet Streaming Audio Capture W Alan Day 1 January 2008

Similar presentations


Presentation on theme: "Celtic Music: Internet Streaming Audio Capture W Alan Day 1 January 2008"— Presentation transcript:

1 Celtic Music: Internet Streaming Audio Capture W Alan Day 1 January 2008 http://DayHikes.info/StreamingAudio.ppt

2 Capture & Play Internet programs Thistle & Shamrock WXPR Thursday 7:00 PM http://www.npr.org/programs/thistle/ Hearts of Space WPSU Friday 11:30 PM http://HoS.com/

3 Streamripper Windows, linux, Mac versions available http://streamripper.sourceforge.net/

4 streamripper http://amber.streamguys.com:4370 -m 10 -t -l 3600 -d thistle-wxpr - m 10 reconnect after 10 seconds w/o incoming traffic -t do not overwrite any capture files -l 3600 capture for 3600 seconds -d thistle-wxpr create this directory for capture material

5 Determining the streaming UR L direct URL type, cat, or less.m3u and.pls files to find the real URL of the stream

6 Kcron – KDE cron 5 minute granularity The variables attribute can be used to direct the output to a specific partition entries are in /var/spool/cron/crontabs/ poweroff (run as root i.e Run Command (Options Run as a different user i.e. root )‏

7 Putting the pieces together When the capture files are in pieces, they can be combined (with -m second dropouts.)‏ e.g. ( 3 ) -.mp3, (2) -.mp3, (1) -.mp3, -.mp3 rename the -.mp3 file to (4) -.mp3 linux: cat \(* > thisle.mp3 Windows: type \(*.mp3 > thistle.mp3

8 Hearts of Space - labels #!/usr/bin/perl -w # W. Alan Day 1/11:/6 based on # http://accad.osu.edu/~mlewis/Class/Perl/perl.html#mtf # & SAMS Teach Yourself Perl, Laura Lemay, example 10.1 p.249 # use warnings; # cd HoS-752_Vox_Sublimae (w/html playlist page and HoS-752_Vox_Sublimae_files/start_page1.html # -->./HoS-752_Vox_Sublimae.txt chomp ($dir = `ls -d *_files`); # HoS-752_Vox_Sublimae_files $htmlfile = "$dir/start_page1.html"; $txtfile = $dir; $txtfile =~ s/_files/.txt/; # HoS-752_Vox_Sublimae.txt print "dir: $dir - htmlfile: $htmlfile - txtfile: $txtfile\n"; open(OF, $htmlfile); open(NF, ">$txtfile"); # read in each line of the file while ( ) { # Recordare < 02:44-> while (/(.*? )/g) { my $attrib = $1; $attrib =~ / (.*?) < (\d+):(\d+)-&gt/; $title = $1; $min = $2; $sec = $3; $inpoint = 60*$min + $sec; print NF "$inpoint\t$title\n"; } close(OF); close(NF);

9 Thistle - labels #!/usr/bin/perl -w # W. Alan Day 1/18/6 based on # http://accad.osu.edu/~mlewis/Class/Perl/perl.html#mtf # & SAMS Teach Yourself Perl, Laura Lemay, example 10.1 p.249 # use warnings; # cd thistle-1174_Made_in_America (w/html playlist page and thistle-1174_Made_in_America.html # -->.thistle-1174_Made_in_America.txt chomp ($htmlfile = `ls *.html`); # thistle-1174_Made_in_America.html $txtfile = $htmlfile; $txtfile =~ s/.html/.txt/; # thistle-1174_Made_in_America.txt print "htmlfile: $htmlfile - txtfile: $txtfile\n"; $shownum = $htmlfile; $shownum =~ /(\d+)/; $shownum = $1; open(OF, $htmlfile); open(NF, ">$txtfile"); # read in each line of the file while ( ) { if (/(Show \#$shownum)/) {print "show: $1\n"; while ( ) { if (/ /){last} elsif (/(^.*?)\.\.\./) { #^The Night Pat Murphy Died... $title = $1; print "$title\n"; print NF "$title\n" } close(OF); close(NF);

10 Week at a glance

11 OpenOffice


Download ppt "Celtic Music: Internet Streaming Audio Capture W Alan Day 1 January 2008"

Similar presentations


Ads by Google