You want:<br>lame -x -r - /media/disk/KBCSarchives/bebop081809.mp3<br>The lone dash is important.<br><br>The command is:<br>lame &lt;opts&gt; &lt;infile&gt; &lt;outfile&gt;<br>If you don&#39;t specify the input is (stdin, &quot;-&quot;), you&#39;re using the outfile as the infile and not specifying an outfile.<br>

<br><div class="gmail_quote">On Sun, Aug 23, 2009 at 09:04, Paul DeShaw <span dir="ltr">&lt;<a href="mailto:zaltar@myway.com">zaltar@myway.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi,<br>
<br>
I would like to revisit this, now that KBCS is retiring most of, IMHO, the best programming available anywhere.  Their streaming archives go back two weeks, after which they will be deleted.<br>
<br>
Last night, I followed the link to the blog mentioned by Lucas below, and was able to record to an external drive. Unfortunately, through an apparent slip of the finger it was recorded as mp4 rather than mp3, but it is there:<br>


<br>
pad@MacBuntu:~$ ls /media/disk/KBCSarchives<br>
082109drivetime.mp4<br>
<br>
I tried again with another show today, and it can&#39;t seem to write the file; acts as if it&#39;s looking for an existing file:<br>
<br>
pad@MacBuntu:~$ arecord -f cd -d 10800 -t raw | lame -x -r /media/disk/KBCSarchives/bebop081809.mp3<br>
Recording raw data &#39;stdin&#39; : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo<br>
Could not find &quot;/media/disk/KBCSarchives/bebop081809.mp3&quot;.<br>
pad@MacBuntu:~$ arecord -f cd -d 10800 -t raw | lame -x -r /media/disk/KBCSarchives/bebop081809.mp3<br>
Could not find &quot;/media/disk/KBCSarchives/bebop081809.mp3&quot;.<br>
Recording raw data &#39;stdin&#39; : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo<br>
<br>
<br>
For reference I&#39;m quoting the instructions from the blog:<br>
<br>
&quot;Arecord captures the audio that goes through your computer and pipes it to the lame encoder, so you encode the audio directly to an mp3 file. You can specify more options to the lame encoder such as the bitrate with lame -x -b bitrate. Without specifying the bitrate it encodes to 128kbps constant bit rate cbr. If you want to record for an specific amount of time then:<br>


<br>
arecord -f cd -d numberofseconds -t raw | lame -x -r – out.mp3&quot;<br>
<br>
It looks like it&#39;s recording three hours of something and putting it somewhere, but I don&#39;t know what and where.  In the command above, I substituted &quot;out.mp3&quot; with a filepath and filename to try to write to the directory I created on my external hard drive, /media/KBCSarchives.  This is exactly what I did last night, and I ended up with a file in that directory, only it was an .mp4.  Can anyone see any mistakes, or suggest another way to archive some streaming shows?  Volunteer DJs were pushed out the door after over 20 years in some cases, playing music that may never be heard on radio again. I would like some of this historic content preserved beyond the 2 week expiration date on the KBCS servers.<br>


<br>
Thanks,<br>
<br>
Paul DeShaw<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: &quot;Lucas Thompson&quot; [<a href="mailto:lucas.thompson@gmail.com" target="_blank">lucas.thompson@gmail.com</a>]<br>
Date: 07/06/2009 10:01 PM<br>
To: <a href="mailto:Gslug-general@gslug.org" target="_blank">Gslug-general@gslug.org</a><br>
Subject: Re: [Gslug-general] Linux scripts for audio<br>
<br>
I used to do that to record a radio show on a regular basis. It only<br>
took a few minutes to set up.<br>
<br>
This seems to be a good blog post on it:<br>
&lt;<a href="http://jordilin.wordpress.com/2006/07/28/howto-recording-audio-from-the-command-line/" target="_blank">http://jordilin.wordpress.com/2006/07/28/howto-recording-audio-from-the-command-line/</a>&gt;<br>
<br>
One thing the post misses is that sometimes the mixer levels will<br>
become reset. The non-GUI mixer will let you save and restore settings<br>
into a file. You should figure out and save the mixer levels you want<br>
and restore them right before you start the recording to make sure<br>
it&#39;s all set correctly.<br>
<br>
imho, it doesn&#39;t matter in this case how good (fast? featureful?<br>
reliable?) the programs are. If you just have a fixed job to do, just<br>
find the thing that does it correctly and forget about it.<br>
<br>
On Sun, Jul 5, 2009 at 9:09 PM, &lt;<a href="mailto:r2mhf@yahoo.com" target="_blank">r2mhf@yahoo.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Who has experience working with audio?  I am new to scripting and I need some help with doing scheduled recording.  I would probably need to do it from a script and run from the cron tab.  I don&#39;t know of any timer features inside a Linux audio program that will work, but open to hear any suggestions.  The timer record feature in Audacity is not versatile or reliable enough for what I need to do<hr style="border-style: solid none none; border-color: grey -moz-use-text-color -moz-use-text-color; border-width: thin 0px 0px; margin-top: 15px; padding-top: 5px;">

<table cellpadding="0" cellspacing="0" width="500" border="0" height="58"> 
<tbody><tr> 
   
    <td valign="center" width="92px" align="center"><img src="" border="0"></td>
    
  <td valign="center"> 
     
    <table cellpadding="0" cellspacing="0" border="0"> 
      <tbody><tr> 
        <td rowspan="3">  </td> 
        <td><span><a href="http://216.21.215.31/fc/FgElN1l88j04FaEebsUcxPBcxAzvTH6sKthUCRvPZBhHIfccJqvDzUui6nW/" style="text-decoration: underline; font-size: 10pt; font-family: Arial; color: rgb(68, 120, 242);" target="_blank">Lose up to 20 lbs in one month with a new diet. Click here.</a></span></td>

 
      </tr> 
      <tr> 
        <td><span><a href="http://216.21.215.31/fc/FgElN1l88j04FaEebsUcxPBcxAzvTH6sKthUCRvPZBhHIfccJqvDzUui6nW/" style="text-decoration: none; font-size: 8pt; font-family: Arial; color: black;" target="_blank">Weight Loss Program</a></span></td>

 
      </tr> 
      <tr> 
        <td><span><a href="http://216.21.215.31/fc/FgElN1l88j04FaEebsUcxPBcxAzvTH6sKthUCRvPZBhHIfccJqvDzUui6nW/" style="text-decoration: underline; font-size: 8pt; font-family: Arial; color: green;" target="_blank">Click Here For More Information</a></span></td>

 
      </tr> 
    </tbody></table> 
  </td> 
</tr> 
<tr> 
  <td colspan="2"> 
</td> 
</tr> 
</tbody></table><br>_______________________________________________<br>
Gslug-general mailing list<br>
<a href="mailto:Gslug-general@gslug.org">Gslug-general@gslug.org</a><br>
<a href="http://lists.gslug.org/mailman/listinfo/gslug-general" target="_blank">http://lists.gslug.org/mailman/listinfo/gslug-general</a><br></blockquote></div><br>