<?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>Dan&#039;s Thoughts &#187; mplayer</title>
	<atom:link href="http://danboykis.com/category/mplayer/feed/" rel="self" type="application/rss+xml" />
	<link>http://danboykis.com</link>
	<description>Thinking somewhat carefully</description>
	<lastBuildDate>Tue, 18 Jan 2011 00:46:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Saving Real Media streams</title>
		<link>http://danboykis.com/2008/07/saving-real-media-streams/</link>
		<comments>http://danboykis.com/2008/07/saving-real-media-streams/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 02:31:00 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[mplayer]]></category>
		<category><![CDATA[real]]></category>

		<guid isPermaLink="false">http://danboykis.com/2008/07/03/saving-real-media-streams/</guid>
		<description><![CDATA[I like to watch Berkley's stream lectures. I do not like to have to start at the beginning of a lecture and wait for the buffer to catch up to where I was last time before I got interrupted. After some googling I was able to find out how to save real media streams with [...]]]></description>
			<content:encoded><![CDATA[<p>I like to watch Berkley's stream lectures. I do not like to have to start<br />
at the beginning of a lecture and wait for the buffer to catch up to where I<br />
was last time before I got interrupted. After some googling I was able to find<br />
out how to save real media streams with mplayer.</p>
<p>Bellow is a bash script I wrote in order to download <a href="http://webcast.berkeley.edu/course_details.php?seriesid=1906978208" class="broken_link">EE 140</a><br />
lectures:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">url</span>=<span style="color: #ff0000;">&quot;rtsp://169.229.131.16:554//bibs/s2004/group1/ee140&quot;</span>
<span style="color: #000000; font-weight: bold;">for</span> fname <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #ff0000;">&quot;20040120&quot;</span> <span style="color: #ff0000;">&quot;20040122&quot;</span> <span style="color: #ff0000;">&quot;20040127&quot;</span> <span style="color: #ff0000;">&quot;20040129&quot;</span> <span style="color: #ff0000;">&quot;20040203&quot;</span> <span style="color: #ff0000;">&quot;20040205&quot;</span><span style="color: #ff0000;">&quot;20040210&quot;</span> <span style="color: #ff0000;">&quot;20040212&quot;</span> <span style="color: #ff0000;">&quot;20040217&quot;</span> <span style="color: #ff0000;">&quot;20040219&quot;</span> <span style="color: #ff0000;">&quot;20040224&quot;</span> <span style="color: #ff0000;">&quot;20040226&quot;</span> <span style="color: #ff0000;">&quot;20040302&quot;</span><span style="color: #ff0000;">&quot;20040304&quot;</span> <span style="color: #ff0000;">&quot;20040309&quot;</span> <span style="color: #ff0000;">&quot;20040311&quot;</span> <span style="color: #ff0000;">&quot;20040316&quot;</span> <span style="color: #ff0000;">&quot;20040318&quot;</span> <span style="color: #ff0000;">&quot;20040323&quot;</span> <span style="color: #ff0000;">&quot;20040325&quot;</span> <span style="color: #ff0000;">&quot;20040330&quot;</span> <span style="color: #ff0000;">&quot;20040401&quot;</span> <span style="color: #ff0000;">&quot;20040406&quot;</span> <span style="color: #ff0000;">&quot;20040408&quot;</span> <span style="color: #ff0000;">&quot;20040413&quot;</span> <span style="color: #ff0000;">&quot;20040415&quot;</span> <span style="color: #ff0000;">&quot;20040420&quot;</span> <span style="color: #ff0000;">&quot;20040422&quot;</span> <span style="color: #ff0000;">&quot;20040427&quot;</span> <span style="color: #ff0000;">&quot;20040429&quot;</span> <span style="color: #ff0000;">&quot;20040504&quot;</span> <span style="color: #ff0000;">&quot;20040506&quot;</span> <span style="color: #ff0000;">&quot;20040511&quot;</span>
<span style="color: #000000; font-weight: bold;">do</span>  <span style="color: #c20cb9; font-weight: bold;">mplayer</span> <span style="color: #660033;">-bandwidth</span> <span style="color: #000000;">2000000</span> <span style="color: #660033;">-cache</span> <span style="color: #000000;">3000</span> <span style="color: #660033;">-noframedrop</span> <span style="color: #660033;">-dumpfile</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$fname</span>.rm&quot;</span> <span style="color: #660033;">-dumpstream</span> <span style="color: #007800;">$url</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">$fname</span>.rm&quot;</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>-bandwidth 2000000 set the download rate to 2Mbps without this data downloads<br />
in real time which means it takes 60 minues to download a 60 minute lecture.<br />
-cache 3000 is useful because you are downloading a lot faster than real time<br />
-noframedrop and -dumpfile should be pretty self explanatory<br />
-rtsp is the proprietary protocol which real media streams with<br />
$url is taken from inspecting the .rm files</p>
<p>As far as I know this method can be employed for any streaming media mplayer<br />
can playback. I haven't tried it on anything except the Berkley lectures.</p>
<p>Refereces:</p>
<p>http://ubuntuforums.org/showthread.php?t=635058</p>
<p>http://thomer.com/howtos/capture_realstream.html &lt;-- howto stream audio only</p>
]]></content:encoded>
			<wfw:commentRss>http://danboykis.com/2008/07/saving-real-media-streams/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

