[mythtv-users] Myth2Ipod Problems: held off as long as I could.
James Armstrong
james at thearmstrongs.org
Mon Dec 15 20:39:30 UTC 2008
On Dec 15, 2008, at 3:16 PM, Douglas Wagner wrote:
> I held off on this post as long as I could, but I think at this
> point I need to ask the community for help.
>
> So to start: I am trying to get a recording to export to iPod format
> (mp4 to be exact) using the Myth2iPod script. And I'm running into
> SIGNIFICANT problems doing so.
>
> First, and foremost, http://myth2ipod.com no longer exists...meaning
> this entire script can no longer be reproduced since 3/4 of the
> needed stuff came from that site. I do still have the tools and
> utilities and some minor documentation (I kick myself every time I
> don't store a website like this locally, what's with all these
> needed and used websites going offline these days anyway?), so I
> proceeded forward.
>
> Next I start running into nuvexport problems.
>
>
> Conversely should I be "doing away" with the Myth2iPod stuff and
> doing something differently? The thing I like most about Myth2Ipod
> is the fact that it creates a feed useable within iTunes to auto-
> load this stuff to the iPod. I know that's probably pretty basic
> but it's big for me.
>
> Lastly does anyone have an arcive site for myth2ipod.com or the
> instructions from that site? I'd be happy to put something up
> publicly accessable as a "Yea, it's down but here's the
> information." but I don't have any of the previous docs.
>
> Help?
>
> --Doug
I was able to grab script and instructions:
http://web.archive.org/web/20080119121730/www.myth2ipod.com/myth2ipod.html
Current version:
1.0b2 updated 3/5/06 - Change Log
Script: myth2ipod.txt
Nuvexport plugin: iPod.pm
(If you are upgrading, you need to run mythtv2ipod -rebuild to create
the new feed file)
Installation:
New installer script for Knoppmyth systems: install_myth2ipod.sh
wget http://myth2ipod.com/install_myth2ipod.sh
chmod +x install_myth2ipod.sh
./install_myth2ipod.sh
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.
3. Now we need to get MP4Box and compile it. This is used for post
processing to allow the feed files to play with the updated iPod
firmware.
cd /tmp
wget http://internap.dl.sourceforge.net/sourceforge/gpac/gpac-0.4.0-rc2.tar.gz
wget http://internap.dl.sourceforge.net/sourceforge/gpac/gpac_extra_libs-0.4.0.tar.gz
tar -zxf gpac-0.4.0-rc2.tar.gz
tar -zxf gpac_extra_libs-0.4.0.tar.gz
cd gpac_extra_libs
cp -r * ../gpac/extra_lib
cd /tmp/gpac
chmod +x configure
./configure
make lib
make apps
make install
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20081215/f9a5f8a4/attachment.htm
More information about the mythtv-users
mailing list