Difference between revisions of "Media Library"

From AwkwardTV
Jump to: navigation, search
m
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[http://budget7i.info/lib/fon/ fon] [http://budget7i.info/lib/foto-blue/ foto blue duncan] [http://budget7i.info/lib/franky-m/ franky m c energy] [http://klohy.info/img/styles/zambrotta.htm zambrotta] [http://primonona.info/content/view/iomega-rev/ iomega rev 35gb 90gb atapi internal] [http://funkall.us/images/small/history-line/ history line] [http://veggis.org.cn/resources/articles/rimadesio.htm rimadesio] [http://funkall.us/images/small/giubbotti/ giubbotti] [http://soler.net.cn/data/poli-acidi.htm poli acidi di frutta] [http://budget7i.info/lib/aziende-di/ aziende di piscine in catania] [http://joperan.org/data/vice-cit/ vice cit] [http://xionny.cn/topic/dori-ghezzi/ dori ghezzi wess] [http://svike.info/view/new/scene-sulla.htm scene sulla mafia] [http://xionny.cn/topic/puttane-sfondate/ puttane sfondate] [http://veggis.org.cn/resources/articles/guardaroba-.htm guardaroba 2 ante] [http://manoke.cn/topic/palmare-sony/ palmare sony clie] [http://klohy.info/img/styles/stronger-aguilera.htm stronger aguilera] [http://polex.com.cn/resources/articles/agriturismo-settimo.htm agriturismo settimo milanese] [http://klohy.info/img/styles/sony-dcr.htm sony dcr hc19] [http://soler.net.cn/data/server-fujitsu.htm server fujitsu siemens primergy econel] [http://manoke.cn/topic/un-uomo/ un uomo da buttare] [http://svike.info/view/new/ww-eamon.htm ww eamon it] [http://veggis.org.cn/resources/articles/mustiolo-etrusco.htm mustiolo etrusco] [http://wedner.info/content/view/uomini-dargento.htm uomini dargento] [http://xionny.cn/topic/il-ritorno/ il ritorno di via col vento] [http://budget7i.info/lib/vagabondi-dellamore/ vagabondi dellamore] [http://soler.net.cn/data/videogiochi-per.htm videogiochi per bambini] [http://polex.com.cn/resources/articles/mi-la.htm mi la hi] [http://xionny.cn/topic/il-ponticello/ il ponticello sul fiume dei guai] [http://soler.net.cn/data/monitor-samsung.htm monitor samsung crt] [http://svike.info/view/new/dog-de.htm dog de bordeaux] [http://budget7i.info/lib/interno-analogico/ interno analogico modem] [http://sneck.info/data/forget-her/ forget her] [http://xionny.cn/topic/soo-garay/ soo garay] [http://klohy.info/img/styles/metal-gear.htm metal gear solid song of liberty theme] [http://klohy.info/img/styles/battle-without.htm battle without honor] [http://sneck.info/data/cuffie-tv/ cuffie tv] [http://primonona.info/content/view/museo-rivoltella/ museo rivoltella] [http://svike.info/view/new/pc-ram.htm pc3200 ram] [http://joperan.org/data/shantung/ shantung] [http://sneck.info/data/www-fitnessring/ www fitnessring it] [http://budget7i.info/lib/ciasa/ ciasa] [http://sneck.info/data/capsule-mirtillo/ capsule mirtillo] [http://wedner.info/content/view/female-werewolf.htm female werewolf] [http://veggis.org.cn/resources/articles/eloise-barry.htm eloise barry ryan] [http://klohy.info/img/styles/upload-seca.htm upload seca2] [http://manoke.cn/topic/partido-en/ partido en vivo de los tiburones] [http://sneck.info/data/brutti-e/ brutti e cattivi] [http://klohy.info/img/styles/orgish-com.htm orgish com] [http://klohy.info/img/styles/occasione-acquisto.htm occasione acquisto auto] [http://manoke.cn/topic/rover-streetwise/ rover streetwise] [http://manoke.cn/topic/cristina-grillo/ cristina grillo sex] [http://xionny.cn/topic/cantilever/ cantilever] [http://funkall.us/images/small/chi-la/ chi la dura la vince] [http://wedner.info/content/view/super-dupa.htm super dupa] [http://sneck.info/data/www-providian/ www providian com] [http://klohy.info/img/styles/archery.htm archery] [http://xionny.cn/topic/sassabanek/ sassabanek] [http://manoke.cn/topic/giocattoli-batman/ giocattoli batman] [http://manoke.cn/topic/c-/ c 50 zoom] [http://veggis.org.cn/resources/articles/stephens.htm stephens] [http://joperan.org/data/l-italiano/ l italiano toto] [http://soler.net.cn/data/bunker-games.htm bunker games] [http://xionny.cn/topic/faretti-per/ faretti per giardino] [http://soler.net.cn/data/schedina-totocalcio.htm schedina totocalcio] [http://funkall.us/images/small/il-budino/ il budino magico] [http://polex.com.cn/resources/articles/templar-map.htm templar map] [http://soler.net.cn/data/lg-dvd.htm lg dvd recorder vhs] [http://wedner.info/content/view/sansui-napoli.htm sansui napoli] [http://svike.info/view/new/vinnie.htm vinnie] [http://sneck.info/data/felpe-uomo/ felpe uomo cappuccio] [http://funkall.us/images/small/i-nostri/ i nostri sogni] [http://manoke.cn/topic/hdd-case/ hdd case] [http://wedner.info/content/view/nexus.htm nexus 205] [http://polex.com.cn/resources/articles/edge-cellulari.htm edge cellulari bluetooth] [http://veggis.org.cn/resources/articles/ariete-macchina.htm ariete macchina da caffe] [http://wedner.info/content/view/frischmuth-barbara.htm frischmuth, barbara] [http://svike.info/view/new/love-erotic.htm love erotic love] [http://svike.info/view/new/california-download.htm california download] [http://sneck.info/data/rosmarino/ rosmarino] [http://budget7i.info/lib/veloso-caetano/ veloso caetano] [http://svike.info/view/new/novoaltajsk.htm novoaltajsk] [http://budget7i.info/lib/c-chicas/ c chicas] [http://polex.com.cn/resources/articles/cristal-palace.htm cristal palace] [http://veggis.org.cn/resources/articles/clip-battesimo.htm clip battesimo] [http://manoke.cn/topic/o-c/ o c orange countri] [http://soler.net.cn/data/allarme-a.htm allarme a sud] [http://soler.net.cn/data/sin.htm sin] [http://svike.info/view/new/icq-lite.htm icq lite 2004] [http://budget7i.info/lib/ice-tower/ ice tower] [http://svike.info/view/new/conoscenza-notte.htm conoscenza notte] [http://polex.com.cn/resources/articles/evviva-i.htm evviva i pazzi] [http://veggis.org.cn/resources/articles/mtv-music.htm mtv music award 18 nov 2004] [http://budget7i.info/lib/tiraeras/ tiraeras] [http://klohy.info/img/styles/scarpe-fornarina.htm scarpe fornarina crema] [http://manoke.cn/topic/flash-nikon/ flash nikon] [http://funkall.us/images/small/lettura-mms/ lettura mms ricevuto] [http://wedner.info/content/view/ps-the.htm ps2 the sims] [http://joperan.org/data/preromanticismo/ preromanticismo] [http://svike.info/view/new/bevono-i.htm bevono i nostri padr] [http://wedner.info/content/view/gigi-d.htm gigi d alessio da scaricare] [http://sneck.info/data/commisione-esami/ commisione esami di maturita] [http://xionny.cn/topic/www-bustybabydolls/ www bustybabydolls com] [http://xionny.cn/topic/maschio-o/ maschio o femmina] [http://funkall.us/images/small/atlantic-varese/ atlantic varese] [http://veggis.org.cn/resources/articles/cesarica.htm cesarica] [http://wedner.info/content/view/terre-del.htm terre del sole di mezzanotte] [http://svike.info/view/new/carica-batterie.htm carica batterie canon] [http://funkall.us/images/small/trieste-annuncio/ trieste annuncio] [http://sneck.info/data/musica-straniera/ musica straniera gratis] [http://svike.info/view/new/la-sarta.htm la sarta] [http://primonona.info/content/view/tutti-morimmo/ tutti morimmo a stento] [http://primonona.info/content/view/camra-con/ camra con vista] [http://sneck.info/data/washington-square/ washington square] [http://wedner.info/content/view/concerti-raf.htm concerti raf] [http://soler.net.cn/data/www-comune.htm www comune ragusa it] [http://sneck.info/data/larry-carlton/ larry carlton] [http://soler.net.cn/data/gigi-d.htm gigi d alessio nuovo album] [http://funkall.us/images/small/video-chat/ video chat italiane gratis] [http://polex.com.cn/resources/articles/radeon-xse.htm radeon x800se 256mb] [http://primonona.info/content/view/seca-code/ seca code keys] [http://svike.info/view/new/tlalpan.htm tlalpan] [http://klohy.info/img/styles/mosse-porno.htm mosse porno] [http://funkall.us/images/small/ipod-shuffle/ ipod shuffle sport] [http://polex.com.cn/resources/articles/video-esecuzioni.htm video esecuzioni ostaggi in iraq] [http://xionny.cn/topic/elenco-dei/ elenco dei comuni] [http://veggis.org.cn/resources/articles/cono-per.htm cono per basso] [http://veggis.org.cn/resources/articles/sony-dscst.htm sony dsc-st80] [http://soler.net.cn/data/p.htm p800] [http://klohy.info/img/styles/bluetooth-pk.htm bluetooth pk820 motorola] [http://sneck.info/data/palmari-con/ palmari con gps fotocamera] [http://budget7i.info/lib/ufficio-ancona/ ufficio ancona] [http://joperan.org/data/hiroshima-mon/ hiroshima, mon amour] [http://budget7i.info/lib/coltello/ coltello] [http://sneck.info/data/reti-di/ reti di calcolatori] [http://polex.com.cn/resources/articles/cd-iron.htm cd iron maiden edward the great] [http://soler.net.cn/data/il-giorno.htm il giorno perfetto] [http://joperan.org/data/univarsal/ univarsal] [http://joperan.org/data/stuck/ stuck] [http://funkall.us/images/small/pensiero-socialista/ pensiero socialista comunista] [http://svike.info/view/new/piscine-nudiste.htm piscine nudiste] [http://soler.net.cn/data/hd-lacie.htm hd lacie] [http://sneck.info/data/vendita-moto/ vendita moto usate] [http://manoke.cn/topic/naksi/ naksi] [http://wedner.info/content/view/antenna-balcone.htm antenna balcone] [http://budget7i.info/lib/il-canto/ il canto della creazione] [http://funkall.us/images/small/ritornerai/ ritornerai] [http://wedner.info/content/view/gestione-studio.htm gestione studio legale] [http://klohy.info/img/styles/fossil-rivenditori.htm fossil rivenditori salerno] [http://manoke.cn/topic/quien-descubrio/ quien descubrio america] [http://budget7i.info/lib/shout/ shout] [http://xionny.cn/topic/borsoni-nike/ borsoni nike] [http://manoke.cn/topic/stupid-girl/ stupid girl] [http://klohy.info/img/styles/un-paradiso.htm un paradiso senza biliardo] [http://wedner.info/content/view/oh-appy.htm oh appy day] [http://svike.info/view/new/decapitato-ostaggio.htm decapitato ostaggio usa] [http://polex.com.cn/resources/articles/world-life.htm world life jonh cena wwe] [http://polex.com.cn/resources/articles/caronte.htm caronte] [http://klohy.info/img/styles/gps-new.htm gps new] [http://sneck.info/data/epson-t/ epson t036] [http://primonona.info/content/view/noche-de/ noche de ronda] [http://manoke.cn/topic/nokia-gsm/ nokia gsm 900] [http://veggis.org.cn/resources/articles/ipod-nano.htm ipod nano 4gb] [http://budget7i.info/lib/foro/ foro] [http://svike.info/view/new/kin-pall.htm kin pall] [http://veggis.org.cn/resources/articles/isabel-mado.htm isabel mado] [http://veggis.org.cn/resources/articles/tiziano-tardes.htm tiziano tardes negras mp3] [http://primonona.info/content/view/indira/ indira] [http://wedner.info/content/view/le-mercerie.htm le mercerie per creare] [http://polex.com.cn/resources/articles/rappresentazione-sull.htm rappresentazione sull effetto serra] [http://wedner.info/content/view/mario-consolo.htm mario consolo srl via kramer 31 milano] [http://manoke.cn/topic/fue/ fue] [http://wedner.info/content/view/casalinga.htm casalinga] [http://budget7i.info/lib/un-sogno/ un sogno lungo un giorno] [http://klohy.info/img/styles/sistemi-per.htm sistemi per il gioco del lotto gratis] [http://polex.com.cn/resources/articles/hp.htm hp 4255] [http://budget7i.info/lib/un-militare/ un militare e mezzo] [http://svike.info/view/new/burn-it.htm burn it blue] [http://sneck.info/data/software-download/ software download] [http://xionny.cn/topic/donne-nere/ donne nere penetrazioni anali] [http://xionny.cn/topic/audi-tt/ audi tt 2004] [http://funkall.us/images/small/nbc-usa/ nbc usa] [http://sneck.info/data/rovinj/ rovinj] [http://klohy.info/img/styles/custodia-treo.htm custodia treo] [http://soler.net.cn/data/aikens-artifact.htm aikens artifact] [http://xionny.cn/topic/rufus-wainwright/ rufus wainwright hallelujah] [http://polex.com.cn/resources/articles/loona.htm loona] [http://klohy.info/img/styles/renato-russo.htm renato russo] [http://funkall.us/images/small/guatemala-hotel/ guatemala hotel] [http://soler.net.cn/data/gsm-box.htm gsm box] [http://klohy.info/img/styles/lavoro-seregno.htm lavoro seregno] [http://funkall.us/images/small/kissi/ kissi] [http://funkall.us/images/small/zelig-drive/ zelig drive] [http://budget7i.info/lib/gerber-gottfried/ gerber, gottfried heinrich] [http://sneck.info/data/the-sims/ the sims 2 all] [http://joperan.org/data/monitor-lcd/ monitor lcd amstrad] [http://funkall.us/images/small/una-spada/ una spada per due cuori] [http://veggis.org.cn/resources/articles/digitali-reflex.htm digitali reflex foto fotocamere] [http://soler.net.cn/data/videocamera-minidv.htm videocamera minidv] [http://wedner.info/content/view/hd-portatile.htm hd portatile toshiba] 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/Media/Media Files/
 
The path to the actual media files are relative to /mnt/Media/Media Files/
  

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