Difference between revisions of "Media Library"

From AwkwardTV
Jump to: navigation, search
m
m (reverting spammed page)
Line 1: Line 1:
[http://vampira.pendal.info/ vampira] [http://espana.pendal.info/ espana] [http://corrida-spagnola.cha-ba.info/ corrida spagnola] [http://werstling.pendal.info/ werstling] [http://piscina-catanzaro.pendal.info/ piscina catanzaro] [http://barenaked-ladies.qualo.info/ barenaked ladies] [http://organizzazione-essenziale.nodify.info/ organizzazione essenziale azienda usl] [http://tittypalace.qualo.info/ tittypalace] [http://canzoni-di.cha-ba.info/ canzoni di diego abatantuono] [http://oki-.cha-ba.info/ oki 60 mg 10 sup] [http://la-sete.jaily.info/ la sete del potere] [http://and-ballistix.jaily.info/ and1 ballistix] [http://www-barclaycard.qualo.info/ www barclaycard it] [http://dvd-xv.pendal.info/ dvd xv] [http://tiziana-bari.nodify.info/ tiziana bari sesso] [http://reti-doghe.jaily.info/ reti doghe vendita] [http://mamme-maiale.nodify.info/ mamme maiale] [http://the-best.pendal.info/ the best of smoke on water] [http://take-me.cha-ba.info/ take me to your heart] [http://prime-immagini.nodify.info/ prime immagini per imperator] [http://torrette.qualo.info/ torrette] [http://ing-direct.qualo.info/ ing direct] [http://kosor-josip.qualo.info/ kosor josip] [http://offerta-hotel.cha-ba.info/ offerta hotel bruges] [http://citta-di.jaily.info/ citta di torino] [http://celebrity-fakes.qualo.info/ celebrity fakes] [http://opel-astra.nodify.info/ opel astra sw 14 16v 1997] [http://plastica-soggetto.nodify.info/ plastica soggetto del desiderio] [http://bosch-bhs.nodify.info/ bosch bhs 1810] [http://fkiss.qualo.info/ fkiss] [http://pendal.info/ site] [http://riassunti-gratis.jaily.info/ riassunti gratis italo calvino] [http://rsmmc-.pendal.info/ rsmmc 512 dv] [http://cha-ba.info/index2_1000.html link] [http://harman-avr.nodify.info/ harman avr235] [http://turner-hrc.nodify.info/ turner hrc] [http://borgarino.nodify.info/ borgarino] [http://stampa-digitale.qualo.info/ stampa digitale fotografia] [http://hitmania-dance.nodify.info/ hitmania dance estate compilation] [http://oboz-ta.qualo.info/ oboz ta] [http://la-morte.nodify.info/ la morte viene dal pianeta aytin] [http://modem-trust.qualo.info/ modem trust] [http://la-prima.pendal.info/ la prima volta lolite] [http://jennifer-lopez.cha-ba.info/ jennifer lopez porno] [http://calvin.pendal.info/ calvin] [http://tettone-mature.jaily.info/ tettone mature italiane] [http://bcd-.cha-ba.info/ bcd  ice cream] [http://finanziamento-bollate.cha-ba.info/ finanziamento bollate] [http://nodify.info/ url] [http://racecars.cha-ba.info/ racecars] [http://i-know.jaily.info/ i know what you want busta rhymes mari] [http://reflex-eos.qualo.info/ reflex eos] [http://mieken.qualo.info/ mieken] [http://pellets-torino.pendal.info/ pellets torino] [http://eiffel-quelli.pendal.info/ eiffel quelli che non hanno eta] [http://pendal.info/ site] [http://registratore-digitale.qualo.info/ registratore digitale registratori sony] [http://su-cd.nodify.info/ su cd] [http://jaily.info/ sitemap] [http://toshiba.nodify.info/ toshiba 14] [http://bci-.cha-ba.info/ bci 16 bk] [http://remix-dragonstea.cha-ba.info/ remix dragonstea] [http://radeon-xpro.pendal.info/ radeon x850pro] [http://saturnia-hotel.cha-ba.info/ saturnia hotel] [http://hp-lcd.qualo.info/ hp lcd 19 vs19] [http://l-emozione.jaily.info/ l emozione] [http://sci.pendal.info/ sci] [http://mensajes-de.qualo.info/ mensajes de poemas musicales] [http://banche-d.cha-ba.info/ banche d affari] [http://hp-c.pendal.info/ hp 1170c] [http://laserjet-n.jaily.info/ laserjet 1022n] [http://grand-canyon.jaily.info/ grand canyon hotel] [http://quim-barreiros.nodify.info/ quim barreiros] [http://cucinare-il.cha-ba.info/ cucinare il pesce] [http://dionise.nodify.info/ dionise] [http://supporto-auto.jaily.info/ supporto auto con ventosa] [http://tema-svolto.pendal.info/ tema svolto volontariato] [http://altercatio.jaily.info/ altercatio] [http://espana-coni.qualo.info/ espana coni] [http://perego-primo.nodify.info/ perego primo viaggio base] [http://spatiti-blues.pendal.info/ spatiti blues per chitarra classica] [http://jaily.info/ sitemap] [http://everything-but.qualo.info/ everything but] [http://morning-palace.cha-ba.info/ morning palace] [http://parental.pendal.info/ parental] [http://scherzi-matrimoniali.cha-ba.info/ scherzi matrimoniali] [http://turbine-aria.nodify.info/ turbine aria] [http://batterie-per.jaily.info/ batterie per ericson] [http://dvd-princo.pendal.info/ dvd princo custodia porta cd] [http://qualo.info/ map] [http://fermentazione.jaily.info/ fermentazione] [http://ultimi-film.jaily.info/ ultimi film] [http://la-battaglia.qualo.info/ la battaglia di fort river] [http://pendal.info/index2_250.html home] [http://windows-server.pendal.info/ windows server] [http://nodify.info/index2_500.html sitemap] [http://obispo-st.nodify.info/ obispo st pier] [http://pirometri.jaily.info/ pirometri] [http://cha-ba.info/index1_1000.html index] [http://clonecd-free.qualo.info/ clonecd free] [http://il-citoplasma.pendal.info/ il citoplasma] [http://klamath.jaily.info/ klamath] [http://nokia-batteria.pendal.info/ nokia batteria 970] [http://ventanas.nodify.info/ ventanas] [http://nodify.info/index2_500.html sitemap] [http://krawczyk-i.nodify.info/ krawczyk i bartosiewicz mp3] [http://come-hell.jaily.info/ come hell] [http://famiglie-analisi.cha-ba.info/ famiglie analisi dei reati in famiglia] [http://nuovo-video.jaily.info/ nuovo video di kyle minogue chocolate] [http://videosex.pendal.info/ videosex] [http://da-lontano.pendal.info/ da lontano] [http://dock-per.qualo.info/ dock per ipod 4g] [http://finti-virus.cha-ba.info/ finti virus] [http://hp.pendal.info/ hp 3115] [http://eva-green.qualo.info/ eva green the dreamers] [http://teengay.cha-ba.info/ teengay] [http://cie.jaily.info/ cie] [http://nike-air.pendal.info/ nike air zoom total 90] [http://winnipeg-ristorante.pendal.info/ winnipeg ristorante] [http://equestr.nodify.info/ equestr] [http://falli-di.cha-ba.info/ falli di gomma] [http://in-te.pendal.info/ in te] [http://cha-ba.info/ map] [http://luisana.nodify.info/ luisana] [http://renga-gratis.nodify.info/ renga gratis] [http://nothing-else.jaily.info/ nothing else] [http://jaily.info/index0_250.html sitemap] [http://quake.nodify.info/ quake 2] [http://jaily.info/index0_250.html sitemap] [http://train-sporting.pendal.info/ train sporting] [http://video-chat.pendal.info/ video chat porno gratis] [http://accessorio-auto.qualo.info/ accessorio auto 4x4] [http://pierino-medico.qualo.info/ pierino medico della saub] [http://nintendo-al.pendal.info/ nintendo al tiro da tre] [http://hard-disk.nodify.info/ hard disk mp3 player] [http://drive.pendal.info/ drive 1 8] [http://www-pornos.nodify.info/ www pornos de goku] [http://humax-lcd.nodify.info/ humax lcd 26] [http://riassunto-zanna.qualo.info/ riassunto zanna bianca] [http://la-peggio.pendal.info/ la peggio suoneria] [http://sega-.cha-ba.info/ sega  a nastro] [http://elite.pendal.info/ elite 12 600] [http://mario-vargas.qualo.info/ mario vargas] [http://jaily.info/ sitemap] [http://lei.cha-ba.info/ lei 60] [http://nightwish-wish.jaily.info/ nightwish wish i had an angel] [http://istituti-superiori.nodify.info/ istituti superiori di reggio calabria] [http://www-sexy.qualo.info/ www sexy net] [http://cha-ba.info/index0_250.html map] [http://last-second.pendal.info/ last second tour] [http://il-gioco.jaily.info/ il gioco del falco] [http://annuncio-personali.pendal.info/ annuncio personali single] [http://emmeline-pankhurst.nodify.info/ emmeline pankhurst] [http://pensione-completa.jaily.info/ pensione completa agosto] [http://televisore-e.jaily.info/ televisore e videoregistratore] [http://bp.qualo.info/ bp 915] [http://vapori-compact.pendal.info/ vapori compact ariete] [http://brodo-arzilla.cha-ba.info/ brodo arzilla e broccoli] [http://reinette-e.cha-ba.info/ reinette e mirabelle] [http://underworld-born.pendal.info/ underworld born slippy] [http://modernariato-altri.cha-ba.info/ modernariato altri mobili arredamento] [http://video-esecuzione.nodify.info/ video esecuzione americano] [http://jak-trudno.jaily.info/ jak trudno tak] [http://con-il.cha-ba.info/ con il cuore] [http://laser-multifunzione.jaily.info/ laser multifunzione] [http://modelos-top.nodify.info/ modelos top] [http://giochi-java.jaily.info/ giochi java] [http://basso-ibanez.jaily.info/ basso ibanez gsr200] [http://paul-van.jaily.info/ paul van dyk gallery] [http://uccelli-di.jaily.info/ uccelli di rovo film] [http://fleetwood-mac.qualo.info/ fleetwood mac the dance] [http://www-rolex.jaily.info/ www rolex com] [http://bluetooth-hsw.qualo.info/ bluetooth hs11w] [http://biciclette-elettriche.cha-ba.info/ biciclette elettriche] [http://pendal.info/index2_250.html home] [http://pendal.info/index1_1000.html page] [http://sigma-.cha-ba.info/ sigma 70300 45 6 dg macro] [http://solitude.nodify.info/ solitude] [http://vivai-bg.nodify.info/ vivai bg] [http://zyxel-router.qualo.info/ zyxel router prestige 652h] [http://calendario-alena.pendal.info/ calendario alena seredova] [http://musica-nel.jaily.info/ musica nel cuore] [http://rene-derby.cha-ba.info/ rene derby] [http://hard-disk.cha-ba.info/ hard disk 80gb maxtor 7200rpm] [http://acer-monitor.qualo.info/ acer monitor tft 17 al1715ms] [http://www-sexole.qualo.info/ www sexole com] [http://nodify.info/index1_250.html index] [http://registratore-digitale.cha-ba.info/ registratore digitale con sd] [http://foto-ballo.jaily.info/ foto ballo salsa] [http://evanescnece.cha-ba.info/ evanescnece] [http://auto-usata.pendal.info/ auto usata bergamo] [http://locali-lap.cha-ba.info/ locali lap dance] [http://peak-agp.nodify.info/ peak agp] [http://hadi-donia.nodify.info/ hadi donia] [http://pensioni-riforme.qualo.info/ pensioni riforme legge] [http://calabria.qualo.info/ calabria] [http://star-trek.nodify.info/ star trek ii  lira di khan] [http://wwwpagine-gialle.cha-ba.info/ wwwpagine gialle it] [http://ricoh-a.qualo.info/ ricoh a3] [http://imagine-snc.cha-ba.info/ imagine snc] 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/
  
I've updated the patch below to allow AVI files as well as to create files in the layout for Apple TV instead
+
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).
5A8
 
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.
 
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.
Line 29: Line 27:
 
   $rh{artist} =    "Unknown Artist";
 
   $rh{artist} =    "Unknown Artist";
 
   $rh{mediatype}  = MEDIATYPE_VIDEO;
 
   $rh{mediatype}  = MEDIATYPE_VIDEO;
         return (\%rh, {ftyp=>"MOV", format=>"mov
+
         return (\%rh, {ftyp=>"MOV", format=>"mov"});
5A8
 
"});
 
 
   }
 
   }
 
   elsif(my $nnat  = __is_NonNative($file,$flags,$con)) { #Handle non-native formats
 
   elsif(my $nnat  = __is_NonNative($file,$flags,$con)) { #Handle non-native formats
Line 57: Line 53:
 
  GetOptions(\%opts, "version", "help|h", "mount|m=s", "decode=s", "restore|r", "duplicate|d", "disable-v2", "disable-v1",
 
  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-artist=s", "set-alb
+
                     "set-artist=s", "set-album=s", "set-genre=s", "set-rating=i", "set-playcount=i", "set-title=s", "set-tvshow=s", "set-tvepisode=s",
5A8
 
um=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");
 
                     "set-songnum", "playlist|p=s", "reencode|e=i");
 
  GNUpod::FooBar::GetConfig(\%opts, {'decode'=>'s', mount=>'s', duplicate=>'b',
 
  GNUpod::FooBar::GetConfig(\%opts, {'decode'=>'s', mount=>'s', duplicate=>'b',
Line 77: Line 71:
 
</pre></code>
 
</pre></code>
 
<code><pre>
 
<code><pre>
--- gnupod-orig/src/ext/F
+
--- gnupod-orig/src/ext/FileMagic.pm    2006-09-27 02:52:23.000000000 -0700
5A8
 
ileMagic.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
 
     gnupod-0.99.1/src/ext/FileMagic.pm  2007-03-25 03:46:25.000000000 -0700
 
@@ -29,6  29,7 @@
 
@@ -29,6  29,7 @@

Revision as of 11:15, 20 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