Difference between revisions of "Media Library"

From AwkwardTV
Jump to: navigation, search
m
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[http://dark-angel-enni.quotaless.com/styles/siemens-ag.htm siemens ag] [http://drkdrgns.freehostia.com/small/umberto-saba.htm umberto saba] [http://titi-grominet.110mb.com/library/html/peugeot-/ peugeot 206 xt] [http://titi-grominet.110mb.com/library/html/gypsy-kings/ gypsy kings] [http://masyavo4ka.freehostia.com/library/carmelo-zappulla.htm carmelo zappulla] [http://kleinerachel.110mb.com/img/styles/scottsdale-hotels/ scottsdale hotels] [http://youreabigboynow.quotaless.com/blog/kiefer-sutherland/ kiefer sutherland] [http://evil-leprachaun.freehostia.com/styles/kotahitanga.htm kotahitanga] [http://calendario-flavio.happi-thoughts.org.cn calendario flavio montrucchio] [http://fermanoproduce.digirb-backward.cn fermanoproduce] [http://titi-grominet.110mb.com/library/html/wallpaper-harry/ wallpaper harry potter 1] [http://masyavo4ka.freehostia.com/library/la-ricetta.htm la ricetta di ieri] [http://drkdrgns.freehostia.com/small/ufficio-castellanza.htm ufficio castellanza] [http://staryfox6.h18.ru/images/small/asrock-i/ asrock 775i48] [http://orwheatl.12gbfree.com/resources/epinefrina.htm epinefrina] [http://doubtful-value.free-site-host.com/michael-cane.htm michael cane] [http://hobarkdo.angelfire.com/fx.htm fx 70] [http://cordelia1812.freehostia.com/small/intel-p.htm intel p4 desktop] [http://evil-leprachaun.quotaless.com/articles/km-fiat.htm km0 fiat gpl auto km 0] [http://tipettit.12gbfree.com/lumix-dmc/ lumix dmc] [http://staryfox6.h18.ru/images/small/citroen-/ citroen  zx 1.4i break avantage] [http://oveja-bella.freehostia.com/data/qsvs.htm qsvs] [http://titi-grominet.110mb.com/library/html/babbo-natale/ babbo natale sardo] [http://john-lee.mack-si.cn john lee hooker] [http://razorbladegiirl.free-site-host.com/strip-britney.htm strip britney] [http://onfolioblogtest.quotaless.com/content/statua-nettuno.htm statua nettuno messina] [http://tanini.freehostia.com/description/lib/www-jetix/ www jetix tv com] [http://finaira.freehostia.com/text/directory/tv-lcd.htm tv lcd hdtv 26] [http://finaira.freehostia.com/text/directory/sony-televisori.htm sony televisori al plasma 42 pollici] [http://shadowlab.110mb.com/data/master-rocca.html master rocca grimalda] [http://kleinerachel.110mb.com/img/styles/omicidio-san/ omicidio san marino casino] [http://finaira.freehostia.com/text/directory/racconti-erotici.htm racconti erotici calciatori] [http://oveja-bella.freehostia.com/data/operata.htm operata] [http://razorbladegiirl.free-site-host.com/horsesex.htm horsesex] [http://angrybuddha765-gamer.angelfire.com/le-regine/ le regine dellamore proibito] [http://fierydarknez.cn/bony-tailor.htm bony tailor] [http://doubtful-value.free-site-host.com/s-m.htm s m s pronti] [http://babydollvamp.110mb.com/library/html/il-notturno/ il notturno] [http://gatcat.freehostia.com/lib/orgasmo-vaginale/ orgasmo vaginale] [http://utenti.lycos.it/cosaugo//content/the-sound.htm the sound] [http://drkdrgns.freehostia.com/small/www-giuliano.htm www giuliano di roma] [http://kleinerachel.110mb.com/img/styles/filam-terbaru/ filam terbaru] [http://oveja-bella.freehostia.com/data/fujifilm-stampanti.htm fujifilm stampanti] [http://staryfox6.h18.ru/images/small/principe-coraggioso/ principe coraggioso] [http://gatcat.freehostia.com/lib/slim-dvd/ slim dvd masterizzatori cd] [http://dark-angel-enni.quotaless.com/styles/ebben-ne.htm ebben ne andro lontano] [http://doubtful-value.free-site-host.com/miscelatori.htm miscelatori] [http://scdeane.angelfire.com/lib/vivavoce-auto/ vivavoce auto nokia 6680] [http://doubtful-value.free-site-host.com/randomscreen-delux.htm randomscreen delux] [http://orwheatl.12gbfree.com/resources/ix.htm ix 30] [http://doubtful-value.free-site-host.com/cori-dello.htm cori dello stadio] [http://onfolioblogtest.quotaless.com/content/nero-cd.htm nero cd speed] [http://staryfox6.h18.ru/images/small/ruta/ ruta] [http://doubtful-value.free-site-host.com/accessori-loox.htm accessori loox 720] [http://onfolioblogtest.quotaless.com/content/finemiro-leasing.htm finemiro leasing] [http://gatcat.freehostia.com/lib/che-campioni/ che campioni holly e benji] [http://doubtful-value.free-site-host.com/la-lotteria.htm la lotteria] [http://drkdrgns.freehostia.com/small/perreo-don.htm perreo don omar] [http://orwheatl.12gbfree.com/resources/maniglie-borsa.htm maniglie borsa carta] [http://staryfox6.h18.ru/images/small/www-tarjetas/ www tarjetas virtuales com] [http://poganetz.free-site-host.com/view/tiiv.htm ti(iv)] [http://cordelia1812.freehostia.com/small/rx-.htm rx 300 ambassador] [http://utenti.lycos.it/cosaugo//content/sex-movi.htm sex movi] [http://lampadari-per.kiushapo.cn lampadari per camerette] [http://onfolioblogtest.quotaless.com/content/paint-shop.htm paint shop studio] [http://kleinerachel.110mb.com/img/styles/non-c/ non c e piu audio] [http://orwheatl.12gbfree.com/resources/lettore-mp.htm lettore mp3 scott] [http://oveja-bella.freehostia.com/data/durazzo-distretto.htm durazzo (distretto)] [http://raschiatura.panzerfausts.com.cn raschiatura] [http://orwheatl.12gbfree.com/resources/muse-hullabaloo.htm muse hullabaloo] [http://evil-leprachaun.freehostia.com/styles/we-are.htm we are spiderman 2] [http://evil-leprachaun.quotaless.com/articles/lifeview-dvbt.htm lifeview dvbt] [http://drkdrgns.freehostia.com/small/que-lloro.htm que lloro de sinbandera] [http://finaira.freehostia.com/text/directory/spartiti-di.htm spartiti di max pezzali] [http://youreabigboynow.quotaless.com/blog/sundek-donna/ sundek donna] [http://hobarkdo.angelfire.com/profumi-very.htm profumi very irresistible givenchy] [http://youreabigboynow.quotaless.com/blog/www-hot/ www hot babes] [http://girl-lost.angelfire.com/content/la-signora/ la signora dal cagnolino] [http://staryfox6.h18.ru/images/small/brother-/ brother 9660 fax] [http://doubtful-value.free-site-host.com/minnie-e.htm minnie e topolino] [http://tanini.freehostia.com/description/lib/jjj/ jjj] [http://oveja-bella.freehostia.com/data/bpx.htm bpx43] [http://angrybuddha765-gamer.angelfire.com/epson-stylus/ epson stylus pro 7600] [http://doodleandidle.freehostia.com/articles/assicurazione-alba.htm assicurazione alba] [http://doodleandidle.freehostia.com/articles/will-young.htm will young] [http://dark-angel-enni.quotaless.com/styles/simflyers.htm simflyers] [http://shadowlab.110mb.com/data/chiese-campane.html chiese campane] [http://youreabigboynow.quotaless.com/blog/nikita-mid/ nikita mid] [http://doodleandidle.freehostia.com/articles/musei-di.htm musei di chieti] [http://onfolioblogtest.quotaless.com/content/comprare-motori.htm comprare motori eleborati] [http://youreabigboynow.quotaless.com/blog/now-we/ now we are free traduzione] [http://pixie-bite.org.cn/landriano.htm landriano] [http://poganetz.free-site-host.com/view/icecam-macally.htm icecam macally] [http://tenute.jowugow.cn tenute] [http://tanini.freehostia.com/description/lib/caricaturas-gratis/ caricaturas gratis porno de ranma 1 2] [http://utenti.lycos.it/cosaugo//content/paola-perego.htm paola perego mentre scopa] [http://kleinerachel.110mb.com/img/styles/www-nike/ www nike com] [http://pixie-bite.org.cn/mr-president.htm mr president] [http://titi-grominet.110mb.com/library/html/hx-hp/ hx4700 hp] [http://babydollvamp.110mb.com/library/html/giochi-pc/ giochi pc soluzione eldorado] [http://tncc.edu/help/img/grrachel.htm glucophage online] [http://tncc.edu/help/img/sutallak.htm jungle ringtones] [http://egcti.upr.edu/help/img/vefyhuf.htm caller ringtones] [http://tncc.edu/help/img/dusimon.htm cheap ortho] [http://tncc.edu/help/img/lylovell.htm cheap paxil] [http://egcti.upr.edu/help/img/hisih.htm motorola ringtones] [http://tncc.edu/help/img/sinolan.htm cheap carisoprodol] [http://tncc.edu/help/img/efhenaga.htm replica rolex watches] [http://tncc.edu/help/img/enbetty.htm free toques ringtones] [http://egcti.upr.edu/help/img/duvyl.htm funny ringtones] [http://tncc.edu/help/img/dafahren.htm cheap ultram] [http://tncc.edu/help/img/unpounds.htm cheap norvasc] [http://tncc.edu/help/img/bapipper.htm free motorola ringtones] [http://www.tukwila.wednet.edu/UserFiles/Users/xyhyn.htm sonyericsson ringtones] [http://tncc.edu/help/img/spfrance.htm free cheap ringtones] [http://www.tukwila.wednet.edu/UserFiles/Users/vepixov.htm buy clomid] [http://tncc.edu/help/img/scfunk.htm hindi ringtones] [http://tncc.edu/help/img/advonber.htm ritalin] [http://egcti.upr.edu/help/img/vidinir.htm buy valtrex] [http://tncc.edu/help/img/paglueck.htm cheap flexeril] [http://tncc.edu/help/img/dwlinder.htm cheap zyban] [http://www.tukwila.wednet.edu/UserFiles/Users/pewifuv.htm buy zoloft] [http://tncc.edu/help/img/wifilmer.htm metformin] [http://egcti.upr.edu/help/img/lepu.htm free turkey ringtones] [http://tncc.edu/help/img/sipullig.htm free mp3 ringtones] [http://tncc.edu/help/img/hostyles.htm car rental] [http://tncc.edu/help/img/jadartez.htm cheap ativan] [http://egcti.upr.edu/help/img/jexyb.htm retro ringtones] [http://egcti.upr.edu/help/img/gobetiv.htm pharmacy online online] [http://tncc.edu/help/img/mutoy.htm accutane] [http://egcti.upr.edu/help/img/rovil.htm free t-mobile ringtones] [http://tncc.edu/help/img/galaw.htm paxil] [http://egcti.upr.edu/help/img/nugide.htm cheap ephedrine] [http://tncc.edu/help/img/arbaur.htm vigrx] [http://www.tukwila.wednet.edu/UserFiles/Users/xosok.htm cingular ringtones] [http://egcti.upr.edu/help/img/didox.htm cheap cialis] [http://tncc.edu/help/img/kyklunk.htm free cellular ringtones] [http://egcti.upr.edu/help/img/tebut.htm wellbutrin online] [http://www.tukwila.wednet.edu/UserFiles/Users/liropev.htm sprint ringtones] [http://egcti.upr.edu/help/img/xizogo.htm albuterol online] [http://www.tukwila.wednet.edu/UserFiles/Users/vuty.htm cheap ultracet] [http://tncc.edu/help/img/sadekorn.htm cheap celebrex] [http://egcti.upr.edu/help/img/cicu.htm phendimetrazine online] [http://egcti.upr.edu/help/img/kijod.htm free tmobile ringtones] [http://tncc.edu/help/img/rhbasset.htm free alltel ringtones] [http://tncc.edu/help/img/tumcfarl.htm norco] [http://tncc.edu/help/img/frpostle.htm cheap cipro] [http://tncc.edu/help/img/rodoll.htm darvon online] [http://egcti.upr.edu/help/img/dufur.htm free audiovox ringtones] [http://tncc.edu/help/img/creunice.htm free animal ringtones] [http://tncc.edu/help/img/krthomur.htm cheap zocor] [http://tncc.edu/help/img/toatkins.htm real ringtones] [http://www.tukwila.wednet.edu/UserFiles/Users/jybufu.htm celexa] [http://egcti.upr.edu/help/img/pepuwyr.htm cheap celebrex] [http://tncc.edu/help/img/dabeasle.htm cheap hoodia] [http://www.tukwila.wednet.edu/UserFiles/Users/levuc.htm tenuate] [http://egcti.upr.edu/help/img/dyrus.htm cheap protonix] [http://tncc.edu/help/img/balingle.htm turkey ringtones] [http://tncc.edu/help/img/mcsanche.htm mtv ringtones] [http://tncc.edu/help/img/fujanie.htm vardenafil] [http://egcti.upr.edu/help/img/rygijo.htm cheap didrex] [http://www.tukwila.wednet.edu/UserFiles/Users/futubyd.htm sony ringtones] [http://tncc.edu/help/img/bimathew.htm cheap adderall] [http://www.tukwila.wednet.edu/UserFiles/Users/ticiwy.htm cool ringtones] [http://tncc.edu/help/img/soamos.htm diovan online] [http://tncc.edu/help/img/rowintrie.htm cheap pharmacy online] [http://www.tukwila.wednet.edu/UserFiles/Users/netyl.htm buy norco] [http://tncc.edu/help/img/eakittrie.htm americanairlines] [http://tncc.edu/help/img/bumund.htm cheap xanax] [http://tncc.edu/help/img/edtheron.htm free sonyericsson ringtones] [http://tncc.edu/help/img/gujohan.htm buy oxycontin] [http://tncc.edu/help/img/simeyer.htm cheap buspar] [http://egcti.upr.edu/help/img/biwihu.htm cheap provigil] [http://www.tukwila.wednet.edu/UserFiles/Users/dyhi.htm diazepam] [http://tncc.edu/help/img/qudelila.htm cheap sibutramine] [http://egcti.upr.edu/help/img/gekiky.htm order xanax] [http://tncc.edu/help/img/mcwood.htm free true ringtones] [http://egcti.upr.edu/help/img/tyzyco.htm midi ringtones] [http://www.tukwila.wednet.edu/UserFiles/Users/sowubef.htm free wwe ringtones] [http://egcti.upr.edu/help/img/poxe.htm alprazolam] [http://tncc.edu/help/img/tapotten.htm cheap ephedra] [http://tncc.edu/help/img/tagilmar.htm cheap ambien] [http://egcti.upr.edu/help/img/bire.htm pantech ringtones] [http://tncc.edu/help/img/rhsheila.htm cheap morphine] [http://tncc.edu/help/img/lelinne.htm cheap lortab] [http://tncc.edu/help/img/bagorton.htm buy atenolol] [http://egcti.upr.edu/help/img/vywirux.htm buy amoxicillin] [http://www.tukwila.wednet.edu/UserFiles/Users/kocod.htm hydrocodone] [http://tncc.edu/help/img/tebranon.htm cheap xenical] [http://tncc.edu/help/img/gotammy.htm cheap phendimetrazine] [http://tncc.edu/help/img/wywoodfi.htm cheap wellbutrin] [http://www.tukwila.wednet.edu/UserFiles/Users/vuhufe.htm free real ringtones] [http://tncc.edu/help/img/pijasper.htm home mortgage loans] [http://tncc.edu/help/img/riwitenb.htm buy cipro] [http://tncc.edu/help/img/knhabbs.htm cheap diazepam] [http://www.tukwila.wednet.edu/UserFiles/Users/jyhu.htm free polyphonic ringtones] [http://www.tukwila.wednet.edu/UserFiles/Users/vydevy.htm sildenafil online] [http://tncc.edu/help/img/mcscull.htm cheap propecia] [http://www.tukwila.wednet.edu/UserFiles/Users/syver.htm buy xenical] [http://www.tukwila.wednet.edu/UserFiles/Users/gilybo.htm phentermine online] The Media Library file (in /mnt/Media/Media Library) is similar to iTunesDB on the iPod.
+
The Media Library file (in /mnt/Media/Media Library) is similar to iTunesDB on the iPod.
The path to the actual media files are relative to /mnt/
+
The path to the actual media files are relative to /mnt/Media/Media Files/
5A8
 
Media/Media Files/
 
  
 
I've updated the patch below to allow AVI files as well as to create files in the layout for Apple TV instead of iPod.  The patch is available at http://ericiii.pastey.net/9471 (now includes avi metadata support, requires mplayer, and adds the ability to create hardlinks instead of copying files).
 
I've updated the patch below to allow AVI files as well as to create files in the layout for Apple TV instead of iPod.  The patch is available at http://ericiii.pastey.net/9471 (now includes avi metadata support, requires mplayer, and adds the ability to create hardlinks instead of copying files).
Line 27: Line 25:
 
   $rh{title}    = "Unknown vdeo Title";
 
   $rh{title}    = "Unknown vdeo Title";
 
   $rh{album} =  "Unknown Album";
 
   $rh{album} =  "Unknown Album";
   $rh{artist} =    "
+
   $rh{artist} =    "Unknown Artist";
4B0
 
Unknown Artist";
 
 
   $rh{mediatype}  = MEDIATYPE_VIDEO;
 
   $rh{mediatype}  = MEDIATYPE_VIDEO;
 
         return (\%rh, {ftyp=>"MOV", format=>"mov"});
 
         return (\%rh, {ftyp=>"MOV", format=>"mov"});
Line 55: Line 51:
 
  $opts{mount} = $ENV{IPOD_MOUNTPOINT};
 
  $opts{mount} = $ENV{IPOD_MOUNTPOINT};
 
  #Don't add xml and itunes opts.. we *NEED* the mount opt to be set..
 
  #Don't add xml and itunes opts.. we *NEED* the mount opt to be set..
  GetOptions(\%opts, "version
+
  GetOptions(\%opts, "version", "help|h", "mount|m=s", "decode=s", "restore|r", "duplicate|d", "disable-v2", "disable-v1",
 +
-                  "set-artist=s", "set-album=s", "set-genre=s", "set-rating=i", "set-playcount=i",
 +
                    "set-artist=s", "set-album=s", "set-genre=s", "set-rating=i", "set-playcount=i", "set-title=s", "set-tvshow=s", "set-tvepisode=s",
 +
                    "set-songnum", "playlist|p=s", "reencode|e=i");
 +
GNUpod::FooBar::GetConfig(\%opts, {'decode'=>'s', mount=>'s', duplicate=>'b',
 +
                                    'disable-v1'=>'b', 'disable-v2'=>'b', 'set-songnum'=>'b'},
 +
@@ -138,6  138,11 @@
 +
                $fh->{genre}      = $opts{'set-genre'}      if $opts{'set-genre'};
 +
                $fh->{rating}      = $opts{'set-rating'}      if $opts{'set-rating'};
 +
                $fh->{playcount}  = $opts{'set-playcount'}  if $opts{'set-playcount'};
 +
                $fh->{title}      = $opts{'set-title'}      if $opts{'set-title'};
 +
                $fh->{tvshow}      = $opts{'set-tvshow'}      if $opts{'set-tvshow'};
 +
                $fh->{artist}      = $opts{'set-tvshow'}      if $opts{'set-tvshow'};
 +
                $fh->{mediatype}  = 0x40                    if $opts{'set-tvshow'};
 +
                $fh->{tvepisode}  = $opts{'set-tvepisode'}  if $opts{'set-tvepisode'};
 +
                $fh->{songnum}    = 1 $addcount              if $opts{'set-songnum'};
 +
 +
                #Set the addtime to unixtime(now) MACTIME (the iPod uses mactime)
 +
</pre></code>
 +
<code><pre>
 +
--- gnupod-orig/src/ext/FileMagic.pm    2006-09-27 02:52:23.000000000 -0700
 +
    gnupod-0.99.1/src/ext/FileMagic.pm  2007-03-25 03:46:25.000000000 -0700
 +
@@ -29,6  29,7 @@
 +
 +
use constant MEDIATYPE_AUDIO => 0x01;
 +
use constant MEDIATYPE_VIDEO => 0x02;
 +
use constant MEDIATYPE_TVSHOW => 0x40;
 +
 +
#
 +
# How to add a converter:
 +
</pre></code>
 +
 
 +
With the above, if you set "--set-tvshow", the movie file will appear under TV Shows in the sub-folder that you set it to. You can then use "--set-title" to set the episode name. FYI: even though I put --set-tvepisode in there, it may produce odd results!
 +
 
 +
After gnupod is built:
 +
* mkdir MediaNew
 +
* export IPOD_MOUNTPOINT=`pwd`/MediaNew
 +
* gnupod_INIT.pl
 +
* gnupod_addsong.pl <whatever>
 +
* mktunes.pl
 +
Copy these files to the appletv:
 +
* iPod_Control/Music/* -> /mnt/Media/Media Files/*
 +
* iPod_Control/iTunes/iTunesDB -> /mnt/Media/Media Library
 +
 
 +
You'll need to restart Finder/Front Row on the appletv to get it to reread the db
 +
 
 +
 
 +
== Todo ==
 +
 
 +
* Set the proper bitrate, time, etc. for mov/avi
 +
 
 +
[[Category:Software]][[Category:How-to]]

Latest revision as of 07:55, 23 September 2007

The Media Library file (in /mnt/Media/Media Library) is similar to iTunesDB on the iPod. The path to the actual media files are relative to /mnt/Media/Media Files/

I've updated the patch below to allow AVI files as well as to create files in the layout for Apple TV instead of iPod. The patch is available at http://ericiii.pastey.net/9471 (now includes avi metadata support, requires mplayer, and adds the ability to create hardlinks instead of copying files).

Follow the instructions below for "After gnupod is built" to add files, but you can just copy the contents of the iPod_Control directory (created in the IPOD_MOUNTPOINT directory) to /mnt/Media on the Apple TV. Restarting Finder (Front Row) on the Apple TV is still necessary.

Original patches

Patch for gnupod (http://www.gnu.org/software/gnupod/) to output the correct path as well as a stub for handling .mov (for reference files) (also note that this makes it not work for real ipods):

--- gnupod-orig/src/ext/FileMagic.pm    2006-09-27 02:52:23.000000000 -0700
    gnupod-0.99.1/src/ext/FileMagic.pm  2007-03-24 16:48:43.000000000 -0700
@@ -73,6  73,20 @@
   elsif(!-r $file) {
    warn "FileMagic.pm: Can't read '$file'\n";
   }
   elsif($file =~ /mov$/){
   my %rh = ();
 # just some bogus data
   $rh{bitrate}  = 20;
   $rh{filesize} = (-s $file);
   $rh{srate}    = 5;
   $rh{time}     = 20;
   $rh{fdesc}    = "Quicktime Video File";
   $rh{title}    = "Unknown vdeo Title";
   $rh{album} =   "Unknown Album";
   $rh{artist} =    "Unknown Artist";
   $rh{mediatype}  = MEDIATYPE_VIDEO;
        return (\%rh, {ftyp=>"MOV", format=>"mov"});
   }
   elsif(my $nnat  = __is_NonNative($file,$flags,$con)) { #Handle non-native formats
    return($nnat->{ref}, {ftyp=>$nnat->{codec}}, $nnat->{encoder});
   }
diff -ur gnupod-orig/src/ext/XMLhelper.pm gnupod-0.99.1/src/ext/XMLhelper.pm
--- gnupod-orig/src/ext/XMLhelper.pm    2006-02-03 12:47:24.000000000 -0800
    gnupod-0.99.1/src/ext/XMLhelper.pm  2007-03-24 16:48:53.000000000 -0700
@@ -121,6  121,8 @@
 
 #Convert /'s to :'s
 $ipath =~ tr/\//:/;
 # for appletv
 $ipath=~s/:iPod_Control:Music//;
 return ($ipath, $path);
 }

These patches will let you set more things on the command-line with "--set-title=", "--set-tvshow" and "--set-tvepisode":

--- gnupod-orig/src/gnupod_addsong.pl   2006-03-22 12:05:24.000000000 -0700
    gnupod-0.99.1/src/gnupod_addsong.pl 2007-03-25 04:29:47.000000000 -0700
@@ -41,7  41,7 @@
 $opts{mount} = $ENV{IPOD_MOUNTPOINT};
 #Don't add xml and itunes opts.. we *NEED* the mount opt to be set..
 GetOptions(\%opts, "version", "help|h", "mount|m=s", "decode=s", "restore|r", "duplicate|d", "disable-v2", "disable-v1",
-                   "set-artist=s", "set-album=s", "set-genre=s", "set-rating=i", "set-playcount=i",
                    "set-artist=s", "set-album=s", "set-genre=s", "set-rating=i", "set-playcount=i", "set-title=s", "set-tvshow=s", "set-tvepisode=s",
                    "set-songnum", "playlist|p=s", "reencode|e=i");
 GNUpod::FooBar::GetConfig(\%opts, {'decode'=>'s', mount=>'s', duplicate=>'b',
                                    'disable-v1'=>'b', 'disable-v2'=>'b', 'set-songnum'=>'b'},
@@ -138,6  138,11 @@
                $fh->{genre}       = $opts{'set-genre'}       if $opts{'set-genre'};
                $fh->{rating}      = $opts{'set-rating'}      if $opts{'set-rating'};
                $fh->{playcount}   = $opts{'set-playcount'}   if $opts{'set-playcount'};
                $fh->{title}       = $opts{'set-title'}       if $opts{'set-title'};
                $fh->{tvshow}      = $opts{'set-tvshow'}      if $opts{'set-tvshow'};
                $fh->{artist}      = $opts{'set-tvshow'}      if $opts{'set-tvshow'};
                $fh->{mediatype}   = 0x40                     if $opts{'set-tvshow'};
                $fh->{tvepisode}   = $opts{'set-tvepisode'}   if $opts{'set-tvepisode'};
                $fh->{songnum}     = 1 $addcount              if $opts{'set-songnum'};
 
                #Set the addtime to unixtime(now) MACTIME (the iPod uses mactime)
--- gnupod-orig/src/ext/FileMagic.pm    2006-09-27 02:52:23.000000000 -0700
    gnupod-0.99.1/src/ext/FileMagic.pm  2007-03-25 03:46:25.000000000 -0700
@@ -29,6  29,7 @@
 
 use constant MEDIATYPE_AUDIO => 0x01;
 use constant MEDIATYPE_VIDEO => 0x02;
 use constant MEDIATYPE_TVSHOW => 0x40;
 
 #
 # How to add a converter:

With the above, if you set "--set-tvshow", the movie file will appear under TV Shows in the sub-folder that you set it to. You can then use "--set-title" to set the episode name. FYI: even though I put --set-tvepisode in there, it may produce odd results!

After gnupod is built:

  • mkdir MediaNew
  • export IPOD_MOUNTPOINT=`pwd`/MediaNew
  • gnupod_INIT.pl
  • gnupod_addsong.pl <whatever>
  • mktunes.pl

Copy these files to the appletv:

  • iPod_Control/Music/* -> /mnt/Media/Media Files/*
  • iPod_Control/iTunes/iTunesDB -> /mnt/Media/Media Library

You'll need to restart Finder/Front Row on the appletv to get it to reread the db


Todo

  • Set the proper bitrate, time, etc. for mov/avi