This will automate the process, and take care of almost everything.
USE AT YOUR OWN RISK
Or the manual way:
This version has only been tested with Knoppmyth R5Bxx. It should work with any release version based on MythTV .19. This may look like a lot of work but if you follow the directions, it takes just a few minutes to do.
1. First things first. Check your current ffmpeg version to see if you already have xvid, and faac support. ffmpeg --version
If you see --enable-xvid and --enable-faac on the configuration line, then you should be set. You can run nuvexport to confirm that it can use xvid. If not, lets get this first part taken care of.
2. You need to un-comment a line in your apt sources.list. nano /etc/apt/sources.list
Un-comment: deb-src http://ftp.us.debian.org/debian stable main contrib non-free
Save it, close, and update: ctrl-o
ctrl-x
apt-get update
Apt-get the missing parts, and compile a new ffmpeg. apt-get install ffmpeg
cd /tmp
apt-get build-dep ffmpeg
apt-get source ffmpeg
cd ffmpeg-0.cvs20050313
Then configure, make, and install: ./configure --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-libgsm --disable-debug --enable-xvid --enable-faac --prefix=/usr
make
make install
When done, check your version: ffmpeg --version
Xvid and FAAC should be in the configuration line.
Check to make sure MP4Box is working: /usr/local/bin/MP4Box
4. With all the prerequisites and dependencies out of the way, lets get the myth2ipod script, and modified nuvexport iPod plug-in. cd /tmp
wget http://myth2ipod.com/myth2ipod.txt
wget http://myth2ipod.com/iPod.pm
mv myth2ipod.txt /usr/local/bin/myth2ipod
chmod +x /usr/local/bin/myth2ipod
mv iPod.pm /usr/local/share/nuvexport/export/ffmpeg/iPod.pm
You can edit the user variables at the top of the myth2ipod script to change the feed path options, and the nuvexport settings. At the minimum you will need to modify the $feedurl hostname with your backend’s IP or hostname. nano /usr/local/bin/myth2ipod
5. Setup your directorys for file storage and feed location. (These are based on the defaults in the myth2ipod script. You will need to change them if you modify the script.) mkdir /myth/ipodfeed
chown mythtv:mythtv /myth/ipodfeed
ln -s /myth/ipodfeed /var/www/ipodfeed
/usr/local/bin/myth2ipod -rebuild
You can add a feed link to the knoppmyth web index by adding inserting a line at about line 46 right after the MythTV keys link. nano /var/www/index.html
<br><a href="ipodfeed">iPod Feed dir</a>:<br>
6. The hard part is out of the way. Now lets make myth use it. Add the script as a User Job in MythTV. Run mythtv-setup and under General, setup one of your User Jobs to run: /usr/local/bin/myth2ipod "%DIR%" "%FILE%"
or to also use commercial flagging cutlist /usr/local/bin/myth2ipod -cut "%DIR%" "%FILE%"
Give it a name like “Encode for iPod”, and be sure to also enable which ever User Job number you input this into. Now, then setting up a recording you can add this user job to make a copy of the recording available for your iPod. You can also do add an individual file to the feed by hitting the info button on a recording in the Watch Recordings screen, then selecting Job Options.
7. To subscribe to the feed from iTunes, select "Subscribe to Podcast..." from the Advanced menu. Enter a url like this one to subscribe to all shows you have added to the feed. http://hostname/ipodfeed/feed.php
Right now this version is missing the feature to subscribe to recordings by show title. You can only subscribe to all. This will be back in a later version. I did not realize this was broke until I was testing these directions. Opps.