<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE article PUBLIC "-//Arbortext//DTD DocBk XML V2.0//EN" "file:///c:/home/jwalsh/lisp/xae-1.0beta6/doctypes/docbook/docbookx.dtd" []>

<?xml-stylesheet href="file:///c:/home/jwalsh/lisp/xae-1.0beta6/doctypes/docbook/styles/docbook/html/docbook.xsl" type="text/xsl"?>

<article>
  <title>
    Saving Steaming Audio Content
  </title>
  <articleinfo>
    <author>
      <firstname>Jason</firstname>
      <surname>Walsh</surname>
    </author>
    <abstract>
      <!-- one of (formalpara para simpara) -->
      <para>Keywords:  record, mp3, mms, Microsoft Media Streaming Protocol.</para>
    
      <para>I'll review possible solutions for generally capturing
	streaming content and then review the applicability to capturing
	a particular radio interview for archiving.  Since the the goal
	is simply to retain the interview itself, sound quality won't be
	a major concern.  The solution offered won't be applicable to
	people who are looking to capture streaming music.</para>

    </abstract>
    
  </articleinfo>
  <sect1>
    <title>Purpose</title>
    <para>Task:  Make a local archival copy of the mp3 delivered using
    the mms:// protocol.  
    </para>
  </sect1>
  <sect1>
    <title>Solutions</title>
    <para>Saved a WAV file directly using Total Recorder then
      converted back to MP3 with CoolEdit.  For this type of problem you
      will need to capture the output of your sound card and convert the
      resulting WAV file to an MP3.  Total Recorder appeared to be the
      best application for doing this.  The evaulation version limits
      you to 40 seconds of sound, so other similar applications are
      presented below.</para>
    <para>Below are some possible ways to capture the audio stream.</para>
    <sect2>
      <title>Windows Media Player: Save As</title>
      <para>I couldn't find any way to save from WMP or with an add-on.</para>
    </sect2>
    <sect2>
      <title>WinAmp: Add-ons</title>
      
      <para>There are several applications that should allow you to
	capture Shoutcast streams being played in WinAmp.  <ulink
								  url="http://www.zdnet.com/anchordesk/stories/story/0,10738,2783776,00.html">http://www.zdnet.com/anchordesk/stories/story/0,10738,2783776,00.html</ulink></para>
      <para>However, what's needed to caputure the above stream is mms
	support (typically from windows media player).  Even though the release
	notes mention that Winamp supported this in 1.91, I was unable to get it
	to play the above URL (see problem report at http://www.pbsfm.org.au/nethelp.shtml )</para>
      
      <para>The discussion following the ZDNet article also has some
	suggestions:

	<itemizedlist>
	  <listitem>
	    <ulink url="http://ostermiller.org/shoutgrab/">ShoutGrab</ulink>
	  </listitem>
	  <listitem>
	    And <ulink
		       url="http://streamstripper.sourceforge.net/">Streamstripper</ulink>
	  </listitem>
	</itemizedlist>
      </para>
    </sect2>
    <sect2>
      <title>ASFRecorder:  Recording ASF Streams</title>
      <para>You can capture asf files that are streamed using MMS with
	<ulink
	       url="http://www.lemuria.org/mirrors/asfrecorder/">ASFRecorder</ulink>.
	Unfortunately, the task URI is an MP3 and the application choked on it.</para>
    </sect2>
    <sect2>
      <title>Real Player: Temporary files</title>
      <para>This isn't really pertinent but I did try to find a temporary
	file generated by WMP in C:\WINDOWS\Temporary Internet
	Files\Content.IE5 and the user profile.  Nothing was generated.</para>
    </sect2>
    <sect2>
      <title>Devices:  Capture Audio Output to a File</title>
      <para>
	This looks like the best approach.  You lose the original data
	but for something like this it seems adequate.</para>

      <para>Suggested solution for Windows:</para>
      
      <blockquote>
	<para>Total Recorder lets you record and save any sound coming through
	  your PC, including any streaming format, not just Shoutcast. Costs
	  about $12 but it's a small price to pay to record eveything.</para>
	<attribution>User Comment on ZDNet</attribution>
      </blockquote>

      <para>See <ulink
		       url="http://www.highcriteria.com/productfr.htm#prod_TR">http://www.highcriteria.com/productfr.htm#prod_TR</ulink>
	for more information on Total Recorder.  I tried Total Recorder
	version 3.2 and it worked fairly well.
      </para>
      <para>Another URL mentioned was <ulink
					     url="http://www.looprecorder.de/">http://www.looprecorder.de/</ulink>
	which provided similar functionality.  The same could be said
	of CoolEdit.  I haven't reverse queried Total Recorder so there could be
	other similar products available.
      </para>
      <para>On Linux
	It might be possible to do this with mpg123 (support for MMS is
	unknown) or with NetShow: <ulink
					 url="http://www.linuxmafia.com/pub/linux/apps/netshow_linux.html">http://www.linuxmafia.com/pub/linux/apps/netshow_linux.html</ulink>.</para>
    </sect2>
    <sect2>
      <title>Network:  Use a Proxy Server to Capture data</title>
      <para>
	Configure the Microsoft tool to use a proxy server then see if there is
	a way to use the filesystem to access the content.  I didn't try this
	since it seems unlikely that the web proxy would pick up the mms:// protocol.
      </para>
    </sect2>
    <sect2>
      <title>Personal:  Contact the Site for a Copy</title>
      
      <para>The site might have an archival service for users.  Research
	contact points for the site.
      </para>
    </sect2>
  </sect1>
  <sect1>
    <title>Conversion</title>
    <para>
      Finding a decent converter for the WAV file generated was more
      work than I originally anticipated.  Most of the applications for
      converting WAV to MP3s that I found on ZDNet would just spin on
      the file under W2K Adv. Server and Professional.  
    </para>
    <para>
      The application that finally worked was 
      <ulink url="http://www.cdex.n3.net/">CDex</ulink>.
    </para>
    <para>
      I also installed the <ulink
			   url="http://winlame.sourceforge.net/">WINlame</ulink>
      application.   See the links at <ulink
					     url="http://www.sulaco.org/mp3/links.html">http://www.sulaco.org/mp3/links.html</ulink>
      or <ulink
		url="http://www.mp3-encoders.com/blade_encoder/">BladeEnc</ulink>
      for more information.
    </para>
  </sect1>
</article>

<!-- 
Local Variables:
mode: xae
sgml-indent-step: 2
sgml-indent-data: t
sgml-set-face: t
sgml-insert-missing-element-comment: nil
End:
--> 