<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Rip / record online radio stream</title>
	<atom:link href="http://www.mohdshakir.net/2007/02/27/shell-script-for-the-day-listen-to-online-radio-offline/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mohdshakir.net/2007/02/27/shell-script-for-the-day-listen-to-online-radio-offline</link>
	<description></description>
	<lastBuildDate>Wed, 04 Jan 2012 14:47:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Daljeet</title>
		<link>http://www.mohdshakir.net/2007/02/27/shell-script-for-the-day-listen-to-online-radio-offline/comment-page-1#comment-22020</link>
		<dc:creator>Daljeet</dc:creator>
		<pubDate>Thu, 17 Dec 2009 13:30:44 +0000</pubDate>
		<guid isPermaLink="false">/?p=62#comment-22020</guid>
		<description>i have a Stream and I want to create 1 minute capsules of the stream continuously,, how can i do it with ffmpeg or any other tool ?</description>
		<content:encoded><![CDATA[<p>i have a Stream and I want to create 1 minute capsules of the stream continuously,, how can i do it with ffmpeg or any other tool ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A</title>
		<link>http://www.mohdshakir.net/2007/02/27/shell-script-for-the-day-listen-to-online-radio-offline/comment-page-1#comment-21151</link>
		<dc:creator>A</dc:creator>
		<pubDate>Tue, 05 Aug 2008 14:07:33 +0000</pubDate>
		<guid isPermaLink="false">/?p=62#comment-21151</guid>
		<description>this script Stop the record.
 only required  adjust the recording time  via  the crontab

#!/bin/sh
aa=`ps -A &#124; grep mplayer &#124;  awk &#039;{print $1}&#039;`
  kill -9 $aa</description>
		<content:encoded><![CDATA[<p>this script Stop the record.<br />
 only required  adjust the recording time  via  the crontab</p>
<p>#!/bin/sh<br />
aa=`ps -A | grep mplayer |  awk &#8216;{print $1}&#8217;`<br />
  kill -9 $aa</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KwangErn Liew</title>
		<link>http://www.mohdshakir.net/2007/02/27/shell-script-for-the-day-listen-to-online-radio-offline/comment-page-1#comment-15180</link>
		<dc:creator>KwangErn Liew</dc:creator>
		<pubDate>Fri, 27 Jul 2007 07:49:56 +0000</pubDate>
		<guid isPermaLink="false">/?p=62#comment-15180</guid>
		<description>For legalties, it&#039;s not a problem. RIAA even confirmed it. :)

http://hypebot.typepad.com/hypebot/2007/07/riaa-admits-str.html</description>
		<content:encoded><![CDATA[<p>For legalties, it&#8217;s not a problem. RIAA even confirmed it. <img src='http://www.mohdshakir.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://hypebot.typepad.com/hypebot/2007/07/riaa-admits-str.html" >http://hypebot.typepad.com/hypebot/2007/07/riaa-admits-str.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shakir</title>
		<link>http://www.mohdshakir.net/2007/02/27/shell-script-for-the-day-listen-to-online-radio-offline/comment-page-1#comment-15102</link>
		<dc:creator>shakir</dc:creator>
		<pubDate>Thu, 26 Jul 2007 01:16:40 +0000</pubDate>
		<guid isPermaLink="false">/?p=62#comment-15102</guid>
		<description>Vishal: You can take a look at cron and see what you can do to start the script. As to stop it, I normally have a killall command in my cron entry, or to be based on the mplayer&#039;s man page, you&#039;re supposed to be able to do this too:
                 
-endpos 56
   Stop at 56 seconds.
-endpos 01:10:00
   Stop at 1 hour 10 minutes.

Donneker:
I&#039;ve downloaded and tried you script + streamtuner, and I must say it&#039;s a good one. My script however is meant for a simple purpose and I hope it serve its purpose well :)</description>
		<content:encoded><![CDATA[<p>Vishal: You can take a look at cron and see what you can do to start the script. As to stop it, I normally have a killall command in my cron entry, or to be based on the mplayer&#8217;s man page, you&#8217;re supposed to be able to do this too:</p>
<p>-endpos 56<br />
   Stop at 56 seconds.<br />
-endpos 01:10:00<br />
   Stop at 1 hour 10 minutes.</p>
<p>Donneker:<br />
I&#8217;ve downloaded and tried you script + streamtuner, and I must say it&#8217;s a good one. My script however is meant for a simple purpose and I hope it serve its purpose well <img src='http://www.mohdshakir.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donneker</title>
		<link>http://www.mohdshakir.net/2007/02/27/shell-script-for-the-day-listen-to-online-radio-offline/comment-page-1#comment-15100</link>
		<dc:creator>Donneker</dc:creator>
		<pubDate>Thu, 26 Jul 2007 00:24:07 +0000</pubDate>
		<guid isPermaLink="false">/?p=62#comment-15100</guid>
		<description>Hi, I dunno if you could use this, but I have modified an bash script which I found on the Internet myself. Its called radio_rip. I modified it best for my needs, and it saves bandwith because you can hear and record music just with one single connection to the streaming server. because of the base how its working, it has some buffer seconds, which perhaps could be enough for your internet connection too. I would advise that you try it, and perhaps you could mail me how you found it. See http://www.donneker.de/projects/radio-rip
hf &amp; gl</description>
		<content:encoded><![CDATA[<p>Hi, I dunno if you could use this, but I have modified an bash script which I found on the Internet myself. Its called radio_rip. I modified it best for my needs, and it saves bandwith because you can hear and record music just with one single connection to the streaming server. because of the base how its working, it has some buffer seconds, which perhaps could be enough for your internet connection too. I would advise that you try it, and perhaps you could mail me how you found it. See <a href="http://www.donneker.de/projects/radio-rip" >http://www.donneker.de/projects/radio-rip</a><br />
hf &amp; gl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal</title>
		<link>http://www.mohdshakir.net/2007/02/27/shell-script-for-the-day-listen-to-online-radio-offline/comment-page-1#comment-15075</link>
		<dc:creator>Vishal</dc:creator>
		<pubDate>Wed, 25 Jul 2007 16:24:42 +0000</pubDate>
		<guid isPermaLink="false">/?p=62#comment-15075</guid>
		<description>how about if you want to just record one show from say 10:00 am to 12:00 pm for 2 hours? Can you help with that please.. 

thanks,
vishal</description>
		<content:encoded><![CDATA[<p>how about if you want to just record one show from say 10:00 am to 12:00 pm for 2 hours? Can you help with that please.. </p>
<p>thanks,<br />
vishal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shakir</title>
		<link>http://www.mohdshakir.net/2007/02/27/shell-script-for-the-day-listen-to-online-radio-offline/comment-page-1#comment-6741</link>
		<dc:creator>shakir</dc:creator>
		<pubDate>Wed, 28 Feb 2007 23:45:59 +0000</pubDate>
		<guid isPermaLink="false">/?p=62#comment-6741</guid>
		<description>&lt;p&gt;Thanks for pointing these out. And talking about size, the original script should be updated to delete old dumps as one night&#039;s dump can take around 300MB for a 96kbps stream.  &lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Courier New&quot;&gt;#!/bin/bash &lt;br /&gt;URL=http://64.62.252.130:8070&lt;br /&gt;WORKDIR=/home/shakir/temp/mplayerdump &lt;br /&gt;MAXDUMP=3 &lt;br /&gt;CURRENTDUMP=`ls $WORKDIR &#124; wc -l` &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Courier New&quot;&gt;mv $WORKDIR/current.mp3 $WORKDIR/`date +%F`.mp3 &lt;br /&gt;if [ $CURRENTDUMP -ge $MAXDUMP ] &lt;br /&gt;then &lt;br /&gt;&#160;&#160;&#160; for i in `ls $WORKDIR &#124; head -n $[($CURRENTDUMP-$MAXDUMP)+1]` &lt;br /&gt;&#160;&#160;&#160; do &lt;br /&gt;&#160;&#160;&#160; &#160;&#160;&#160; rm $WORKDIR/$i &lt;br /&gt;&#160;&#160;&#160; done &lt;br /&gt;fi &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Courier New&quot;&gt;#mplayer -dumpstream  $URL -dumpfile $WORKDIR/current.mp3 &lt;br /&gt;ffmpeg -i $URL -ab 128 $WORKDIR/current.mp3&lt;/font&gt;&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for pointing these out. And talking about size, the original script should be updated to delete old dumps as one night&#8217;s dump can take around 300MB for a 96kbps stream.  </p>
<p><font face="Courier New">#!/bin/bash <br />URL=http://64.62.252.130:8070<br />WORKDIR=/home/shakir/temp/mplayerdump <br />MAXDUMP=3 <br />CURRENTDUMP=`ls $WORKDIR | wc -l` <br /></font></p>
<p><font face="Courier New">mv $WORKDIR/current.mp3 $WORKDIR/`date +%F`.mp3 <br />if [ $CURRENTDUMP -ge $MAXDUMP ] <br />then <br />&nbsp;&nbsp;&nbsp; for i in `ls $WORKDIR | head -n $[($CURRENTDUMP-$MAXDUMP)+1]` <br />&nbsp;&nbsp;&nbsp; do <br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rm $WORKDIR/$i <br />&nbsp;&nbsp;&nbsp; done <br />fi <br /></font></p>
<p><font face="Courier New">#mplayer -dumpstream  $URL -dumpfile $WORKDIR/current.mp3 <br />ffmpeg -i $URL -ab 128 $WORKDIR/current.mp3</font></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mysurface</title>
		<link>http://www.mohdshakir.net/2007/02/27/shell-script-for-the-day-listen-to-online-radio-offline/comment-page-1#comment-6722</link>
		<dc:creator>mysurface</dc:creator>
		<pubDate>Wed, 28 Feb 2007 13:32:39 +0000</pubDate>
		<guid isPermaLink="false">/?p=62#comment-6722</guid>
		<description>Haha, just put as .mp3 will do, I have tried.

mplayer -dumpstream  $URL -dumpfile $DUMPDIR/current.mp3

by the way, you can use ffmpeg for dumping too, and it is much more better, because the size of the file is visible to you.

ffmpeg -i $URL -ab 128 current.mp3</description>
		<content:encoded><![CDATA[<p>Haha, just put as .mp3 will do, I have tried.</p>
<p>mplayer -dumpstream  $URL -dumpfile $DUMPDIR/current.mp3</p>
<p>by the way, you can use ffmpeg for dumping too, and it is much more better, because the size of the file is visible to you.</p>
<p>ffmpeg -i $URL -ab 128 current.mp3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shakir</title>
		<link>http://www.mohdshakir.net/2007/02/27/shell-script-for-the-day-listen-to-online-radio-offline/comment-page-1#comment-6706</link>
		<dc:creator>shakir</dc:creator>
		<pubDate>Wed, 28 Feb 2007 02:58:13 +0000</pubDate>
		<guid isPermaLink="false">/?p=62#comment-6706</guid>
		<description>It&#039;s saved as raw stream, and I haven&#039;t tried any player other than mplayer to play the file. Haven&#039;t tried converting it too, but I guess mencoder can help with that.</description>
		<content:encoded><![CDATA[<p>It&#8217;s saved as raw stream, and I haven&#8217;t tried any player other than mplayer to play the file. Haven&#8217;t tried converting it too, but I guess mencoder can help with that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mysurface</title>
		<link>http://www.mohdshakir.net/2007/02/27/shell-script-for-the-day-listen-to-online-radio-offline/comment-page-1#comment-6670</link>
		<dc:creator>mysurface</dc:creator>
		<pubDate>Tue, 27 Feb 2007 13:00:40 +0000</pubDate>
		<guid isPermaLink="false">/?p=62#comment-6670</guid>
		<description>Cool! Mplayer really capable of doing a lots more.
What kind of file format is the dump file been recorded? Can we converted into mp3?</description>
		<content:encoded><![CDATA[<p>Cool! Mplayer really capable of doing a lots more.<br />
What kind of file format is the dump file been recorded? Can we converted into mp3?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

