<?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>edsalisbury.net &#187; pytivo</title>
	<atom:link href="http://edsalisbury.net/tag/pytivo/feed/" rel="self" type="application/rss+xml" />
	<link>http://edsalisbury.net</link>
	<description>your guide to user-friendly entertainment</description>
	<lastBuildDate>Wed, 28 Mar 2012 02:07:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to Set Up a TiVo Media Server on Ubuntu Linux</title>
		<link>http://edsalisbury.net/how-to-set-up-a-tivo-media-server-on-ubuntu-linux/</link>
		<comments>http://edsalisbury.net/how-to-set-up-a-tivo-media-server-on-ubuntu-linux/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 20:40:40 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[pytivo]]></category>
		<category><![CDATA[TiVo]]></category>

		<guid isPermaLink="false">http://www.edsfamily.com/ed/?p=97</guid>
		<description><![CDATA[<a href="http://edsalisbury.net/how-to-set-up-a-tivo-media-server-on-ubuntu-linux/" title="How to Set Up a TiVo Media Server on Ubuntu Linux"></a>This guide will help you set up a media server to be able to play videos on your Series 3 TiVo, using pyTiVo. (Note: this post was moved from my old blog, but has been updated a bit) First, install &#8230;<p class="read-more"><a href="http://edsalisbury.net/how-to-set-up-a-tivo-media-server-on-ubuntu-linux/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://edsalisbury.net/how-to-set-up-a-tivo-media-server-on-ubuntu-linux/" title="How to Set Up a TiVo Media Server on Ubuntu Linux"></a><p><img src="http://www.edsalisbury.net/wp-content/uploads/2009/07/tivo-logo1-134x150.jpg" alt="TiVo" title="TiVo" width="134" height="150" class="alignright size-thumbnail wp-image-298" /><br />
This guide will help you set up a media server to be able to play videos on your Series 3 TiVo, using pyTiVo.  (Note: this post was moved from my old blog, but has been updated a bit)</p>
<p>First, install ffmpeg:</p>
<pre>$ sudo apt-get install ffmpeg</pre>
<p>Then, install git (needed to grab pyTivo):</p>
<pre>$ sudo apt-get install git-core</pre>
<p>Then, grab the latest version of the pyTivo script (Look at the <a href="http://pytivo.armooo.net/wiki/CurrentRelease">Current Release</a> page to verify that you have the right version):</p>
<pre>$ cd /usr/share
$ sudo git clone git://repo.or.cz/pyTivo/wmcbrine.git
$ sudo mv wmcbrine pyTivo</pre>
<p>Edit /usr/share/pyTivo/pyTivo.conf:</p>
<pre>$ cd /usr/share/pyTivo
$ sudo cp pyTivo.conf.dist pyTivo.conf
$ sudo vi pyTivo.conf</pre>
<p>The only thing that I changed is to comment out the default video share, and add my own:</p>
<pre>[Movies]
type=video
path=/data/Video/Movies
[Television]
type=video
path=/data/Video/Television
[Music]
type=music
path=/data/Audio/Music</pre>
<p>Run pyTivo:</p>
<pre>$ sudo python /usr/share/pyTivo/pyTivo.py</pre>
<p>Verify that things are working correctly &#8212; on the Tivo, go to &#8220;Now Playing List&#8221; and look for the shares.  If they appear and you can browse to them, you&#8217;re almost done!</p>
<p>One issue I had was with transferring the videos.  When I transferred them to the TiVo, it had a message of &#8220;unknown mpeg2 codec&#8221; or something to that effect.  Apparently the package for ffmpeg on Intrepid doesn&#8217;t have all of the codecs needed.  To install them, run the following:</p>
<pre>$ sudo apt-get install libavcodec-unstripped-51</pre>
<p>After I did this, videos were able to be transferred just fine.</p>
<p>The last thing to do is to make pyTiVo start automatically on bootup.  To do this, simply copy the following script to /etc/init.d:</p>
<pre class="brush:bash; gutter: false; wrap-lines: true; ruler: false">
#!/bin/bash
# chkconfig: 2345 99 05
# description: pyTivo server

### INIT INFO
# Provides: pytivo
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-description: pyTivo server
# Description: Start and stop the pyTivo server.
### END INIT INFO

RETVAL=0

start() {
echo -n "Starting pyTivo: "
pgrep -f pyTivo.py
RETVAL=$?
[ $RETVAL -eq 0 ] &#038;&#038; echo "pyTivo already running: Exiting" &#038;&#038; exit 1

# this call actually starts pyTivo.
python /usr/share/pyTivo/pyTivo.py > /dev/null 2>&#038;1 &#038;
RETVAL=$?
[ $RETVAL -eq 0 ] &#038;&#038; echo -n "done"
echo
return $RETVAL
}

stop() {
echo -n "Stopping pyTivo: "
pkill -f pyTivo.py
RETVAL=$?
echo
[ $RETVAL -eq 0 ] &#038;&#038; echo -n "done"
echo
return $RETVAL
}

# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
sleep 1
start
RETVAL=$?
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $RETVAL
</pre>
<p><em>Note: I didn&#8217;t write this &#8211; I just grabbed it from somewhere when setting it up &#8211; let me know if you wrote it so that I can give you credit!</em></p>
<p>After creating the script, make it executable:</p>
<pre>$ sudo chmod u+x /etc/init.d/pytivo</pre>
<p>Then create links to /etc/rc3.d and /etc/rc1.d:</p>
<pre>$ sudo ln -s /etc/init.d/pytivo /etc/rc3.d/S99pytivo
$ sudo ln -s /etc/init.d/pytivo /etc/rc1.d/K99pytivo
</pre>
<p>This should make it so that pytivo starts automatically upon bootup.</p>
<p>Hopefully you&#8217;ve found this guide useful.  Next time, I&#8217;ll be talking about how to make the videos show up perfectly on the TiVo, with appropriate titles, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://edsalisbury.net/how-to-set-up-a-tivo-media-server-on-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>

