<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>riscit.info &#187; shoutcast</title>
	<atom:link href="http://www.riscit.info/category/software/shoutcast/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.riscit.info</link>
	<description>too young to retire, too rich to work</description>
	<lastBuildDate>Tue, 17 Jan 2012 20:16:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>stream audio continously</title>
		<link>http://www.riscit.info/2009/03/stream-audio-continously/</link>
		<comments>http://www.riscit.info/2009/03/stream-audio-continously/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 17:15:08 +0000</pubDate>
		<dc:creator>riscphree</dc:creator>
				<category><![CDATA[shoutcast]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://www.riscit.info/blog/?p=12</guid>
		<description><![CDATA[I recently installed shoutcast on one of my VPS accounts and wanted to stream music even when I don&#8217;t have the DNAS program (or any other dj program). What I did was download a couple podcast shows and wanted to play them. There is a program the shout cast guys developed called sc_trans. It transcodes [...]]]></description>
			<content:encoded><![CDATA[<p>I recently installed <a href="http://shoutcast.com/">shoutcast</a> on one of my VPS accounts and wanted to stream music even when I don&#8217;t have the DNAS program (or any other dj program).</p>
<p>What I did was download a couple podcast shows and wanted to play them. There is a program the shout cast guys developed called sc_trans. It transcodes files to the shoutcast server.</p>
<p>The download link on the shoutcast site doesn&#8217;t link to the right place so its a bit trivial. I&#8217;ve included the link at the end of this post.</p>
<p>You will need to generate a playlist of the files you want to play and can do that with:</p>
<pre># find /Mp3 -type f -name "*.mp3" &gt; /opt/shoutcast/playlists/playlist.lst</pre>
<p>Which will make a playlist from all the mp3s in the /Mp3 dir and save it in /opt/shoutcast/playlists/</p>
<p>There are quite a few options in the sc_trans.conf file you will want to look at.</p>
<p>sc_trans will only play the files with the same  sample rate. You&#8217;ll have to resample all your mp3s to the same rate <img class="wp-smiley" src="../wp-includes/images/smilies/icon_sad.gif" alt=":(" /></p>
<p>For example, in the sc_trans.conf if you specify</p>
<pre>SampleRate=32000</pre>
<p>It will only stream files with 32Khz sample rate. You can use the <a href="http://lame.sourceforge.net/">lame</a> program to re-encode your files by doing the following (this re-encodes into 44Khz):</p>
<pre>lame --resample 44.1 InputFile.mp3 OutPutfile.mp3</pre>
<p>If you want to re-sample an entire directory of mp3s, you can use a shell script:</p>
<pre>#!/bin/sh

for i in *.mp3; do
lame --resample 44.1 ${i}
done</pre>
<p>Save that as<strong> lame.sh</strong>, <strong>chmod + x lame</strong>.<strong>sh</strong> and then <strong>./lame.sh</strong></p>
<p>Here is a overview of some of the settings of sc_trans and shoutcast itself. It is an excellent guide.  <a href="http://www.gentoo.org/doc/en/shoutcast-config.xml">Streaming Radio with Shoutcast</a></p>
<p>Download sc_trans from Shoutcast.com <a href="http://www.shoutcast.com/downloads/sc_trans_posix_040.tgz">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.riscit.info/2009/03/stream-audio-continously/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

