Difference between revisions of "Media Library"

From AwkwardTV
Jump to: navigation, search
m
(Undo revision 4015 by Special:Contributions/Uw1Nci (User talk:Uw1Nci) > Please read BlockingSpam!)
Line 1: Line 1:
[http://it.rigour.info/topic/panasonic-m/ panasonic m70] [http://gratis.rigour.info/content/view/el-damer.htm el damer] [http://load.rigour.info/view/new/toner-hp.htm toner hp 5550n] [http://gratis.rigour.info/content/view/toucam-.htm toucam - philips pro ii pcvc840k] [http://web.rigour.info/sardegna-piantina/ sardegna piantina] [http://guest.rigour.info/library/html/mercante-in/ mercante in fiera di parma] [http://note.rigour.info/content/view/modern-times.htm modern times j five] [http://load.rigour.info/view/new/zugliano.htm zugliano] [http://guest.rigour.info/library/html/furci/ furci] [http://guest.rigour.info/library/html/mysinka/ mysinka] [http://blog.rigour.info/web/mercedes-e/ mercedes e 320 sw] [http://guest.rigour.info/library/html/postales-animadas/ postales animadas] [http://milano.rigour.info/iaa.htm iaa] [http://down.rigour.info/blog/assicurazione-vendere.htm assicurazione vendere] [http://gratis.rigour.info/content/view/karma-pomalo.htm karma pomalo] [http://up.rigour.info/description/lib/zie-zoccole.htm zie zoccole] [http://speed.rigour.info/nec-vt.htm nec vt-770] [http://blog.rigour.info/web/stampante-canon/ stampante canon 3200 laser] [http://all.rigour.info/giostrina-fattoria/ giostrina fattoria chicco] [http://content.rigour.info/html/olancho/ olancho] [http://paga.rigour.info/inverter-w/ inverter 300w] [http://milano.rigour.info/driver-.htm driver 3 ps2] [http://content.rigour.info/html/lettore-divx/ lettore divx lg dvx 9900] [http://speed.rigour.info/immagini-autografate.htm immagini autografate] [http://here.rigour.info/blog/libro-di.htm libro di alessandro] [http://italy.rigour.info/blog/julieta-venegas.htm julieta venegas lento remix] [http://dir.rigour.info/nomadi-kar/ nomadi kar] [http://italy.rigour.info/blog/sora-aoi.htm sora aoi] [http://content.rigour.info/html/ricevitore-bluethoot/ ricevitore bluethoot gps] [http://blog.rigour.info/web/www-comin/ www comin com] [http://gratis.rigour.info/content/view/via-cadorna.htm via cadorna] [http://web.rigour.info/boomboom/ boomboom] [http://guest.rigour.info/library/html/maria-demartino/ maria demartino] [http://milano.rigour.info/vista-casa.htm vista casa] [http://guest.rigour.info/library/html/la-forza/ la forza invisibile] [http://dir.rigour.info/dvx-s/ dvx s120 yamaha] [http://pagina.rigour.info/sky/ sky] [http://down.rigour.info/blog/pro-evolution.htm pro evolution psp] [http://content.rigour.info/html/finanziamento-nice/ finanziamento nice] [http://uve.rigour.info/blog/asus-ava.htm asus a6va m750] [http://web.rigour.info/fujifilm-finepix/ fujifilm finepix a 350] [http://dir.rigour.info/foto-mogli/ foto mogli] [http://blog.rigour.info/web/punzonatrici/ punzonatrici] [http://pagina.rigour.info/wireless-gps/ wireless gps receiver] [http://all.rigour.info/sciogli-l/ sciogli l amore] [http://dir.rigour.info/boxoffice/ boxoffice] [http://all.rigour.info/il-milo/ il milo] [http://all.rigour.info/federica-zarro/ federica zarro] [http://pagina.rigour.info/domitilla/ domitilla] [http://dir.rigour.info/business-opportunities/ business opportunities] [http://note.rigour.info/content/view/cu-mme.htm cu mme murolo] [http://down.rigour.info/blog/ajuga.htm ajuga] [http://dir.rigour.info/daniela-legnano/ daniela legnano] [http://paga.rigour.info/surf-mania/ surf mania] [http://uve.rigour.info/blog/teoria-de.htm teoria de la mar] [http://italy.rigour.info/blog/vacanza-affitti.htm vacanza affitti] [http://dir.rigour.info/dual-voltage/ dual voltage rs-mmc 512mb] [http://it.rigour.info/topic/lovely-sara/ lovely sara. princess sarah. vol. 01] [http://all.rigour.info/cantu-siciliano/ cantu siciliano] [http://it.rigour.info/topic/eredita-crack/ eredita crack] [http://milano.rigour.info/identidad.htm identidad] [http://up.rigour.info/description/lib/philips-sa.htm philips 963sa] [http://up.rigour.info/description/lib/vacanze-a.htm vacanze a barbados] [http://uve.rigour.info/blog/dvdr-sony.htm dvd-r sony 8x] [http://milano.rigour.info/ricette-dolci.htm ricette dolci toscani] [http://milano.rigour.info/emimen.htm emimen] [http://content.rigour.info/html/ricariche-tre/ ricariche tre] [http://web.rigour.info/azardo/ azardo] [http://gratis.rigour.info/content/view/bradamante.htm bradamante] [http://milano.rigour.info/poemas-de.htm poemas de la celula] [http://blog.rigour.info/web/progettazione-del/ progettazione del motore] [http://dir.rigour.info/hard-disk/ hard disk 2 5 5400] [http://up.rigour.info/description/lib/i-giardini.htm i giardini del diavolo] [http://up.rigour.info/description/lib/islander.htm islander] [http://note.rigour.info/content/view/bandiera-gran.htm bandiera gran bretagna] [http://content.rigour.info/html/pouf-letto/ pouf letto] [http://blog.rigour.info/web/pavic-milorad/ pavic, milorad] [http://all.rigour.info/profilax/ profilax] [http://it.rigour.info/topic/enermax-cs/ enermax cs 721] [http://content.rigour.info/html/dpr/ dpr 917 86] [http://down.rigour.info/blog/il-re.htm il re in anteprima] [http://online.rigour.info/sega-circolare/ sega circolare con banco] [http://online.rigour.info/stay-tommy/ stay tommy vee] [http://it.rigour.info/topic/tefal-tostapane/ tefal tostapane] [http://content.rigour.info/html/worms-war/ worms war] [http://uve.rigour.info/blog/hdd-gb.htm hdd 160gb] [http://paga.rigour.info/giorgio-stefy/ giorgio stefy] [http://paga.rigour.info/mppro-plugin/ mp3pro plugin nero] [http://milano.rigour.info/hp-.htm hp 1160 toner] [http://gratis.rigour.info/content/view/irregolari.htm irregolari] [http://speed.rigour.info/california-dreamin.htm california dreamin clubhouse extended mp3] [http://gratis.rigour.info/content/view/copertina-ascolta.htm copertina ascolta pooh] [http://online.rigour.info/struktura-polskich/ struktura polskich banko] [http://note.rigour.info/content/view/acer-aspire.htm acer aspire t] [http://it.rigour.info/topic/sirena-nave/ sirena nave] [http://dir.rigour.info/macchina-delle/ macchina delle bolle] [http://it.rigour.info/topic/aereo-sfere/ aereo sfere] [http://content.rigour.info/html/find-it/ find it] [http://uve.rigour.info/blog/nx-.htm nx 6110 centrino] [http://blog.rigour.info/web/verano-beat/ verano beat] [http://web.rigour.info/drin/ drin] [http://dir.rigour.info/ricette-divertenti/ ricette divertenti] [http://gratis.rigour.info/content/view/colonna-sonora.htm colonna sonora gost] [http://guest.rigour.info/library/html/raf-self/ raf self control] [http://note.rigour.info/content/view/suoneria-cellulare.htm suoneria cellulare philips] [http://here.rigour.info/blog/condizionatori-daikin.htm condizionatori daikin inverter] [http://here.rigour.info/blog/accordi-di.htm accordi di acquito] [http://milano.rigour.info/conference-calling.htm conference calling] [http://speed.rigour.info/oyi-my.htm oyi my canto] [http://milano.rigour.info/this-love.htm this love di marron 5] [http://down.rigour.info/blog/toyota-land.htm toyota land cruiser 100] [http://guest.rigour.info/library/html/cursori-animati/ cursori animati gif] [http://italy.rigour.info/blog/moster-jame.htm moster jame] [http://content.rigour.info/html/lilo-e/ lilo e stitch] [http://blog.rigour.info/web/sat-upload/ sat upload center] [http://online.rigour.info/madonna-re/ madonna re invention world tour 2004] [http://italy.rigour.info/blog/dv-cam.htm dv cam h10] [http://note.rigour.info/content/view/sistema-home.htm sistema home cinema wireless] [http://online.rigour.info/tdk-lpcw/ tdk lpcw] [http://web.rigour.info/lc-gae/ lc 32ga5e] [http://pagina.rigour.info/samsung-ml/ samsung ml 1520 toner] [http://pagina.rigour.info/monitor-philips/ monitor philips 109e50 19] [http://here.rigour.info/blog/nokia-.htm nokia 6670 smartphone] [http://all.rigour.info/barbieri-vicente/ barbieri, vicente] [http://speed.rigour.info/vodafone-elenco.htm vodafone elenco abbonati] [http://gratis.rigour.info/content/view/mapa-mentales.htm mapa mentales] [http://uve.rigour.info/blog/tesi-temi.htm tesi temi maturita] [http://note.rigour.info/content/view/medleys.htm medleys] [http://gratis.rigour.info/content/view/sale-cinematografiche.htm sale cinematografiche di monza] [http://here.rigour.info/blog/fiume-amaro.htm fiume amaro mp3] [http://content.rigour.info/html/gerusalemme-liberata/ gerusalemme liberata parafrasi canto iii] [http://down.rigour.info/blog/infoter.htm infoter] [http://gratis.rigour.info/content/view/aspettando-il.htm aspettando il tuo ritorno renato zero] [http://down.rigour.info/blog/hentai-movie.htm hentai movie frre] [http://guest.rigour.info/library/html/zzuma/ zzuma] [http://italy.rigour.info/blog/seicento-fiat.htm seicento fiat] [http://here.rigour.info/blog/touch-screen.htm touch screen lcd] [http://blog.rigour.info/web/vigano-san/ vigano san martino] [http://paga.rigour.info/abastor/ abastor] [http://down.rigour.info/blog/card-reader.htm card reader firewire] [http://dir.rigour.info/la-magnifica/ la magnifica preda] [http://up.rigour.info/description/lib/passeggini-per.htm passeggini per neonati] [http://all.rigour.info/volkan-konak/ volkan konak ben seni sevdigimi] [http://paga.rigour.info/slogan/ slogan] [http://guest.rigour.info/library/html/hp-officejet/ hp officejet k60] [http://load.rigour.info/view/new/pablo-milanes.htm pablo milanes] [http://paga.rigour.info/dalmatinac/ dalmatinac] [http://blog.rigour.info/web/www-calcio/ www calcio 2000 it] [http://italy.rigour.info/blog/mercedes-.htm mercedes 200 ce cabrio] [http://load.rigour.info/view/new/baumann.htm baumann] [http://it.rigour.info/topic/deseos-chayanne/ deseos chayanne] [http://blog.rigour.info/web/beep/ beep] [http://note.rigour.info/content/view/pop-rock.htm pop rock] [http://load.rigour.info/view/new/gtasan-andreas.htm gta.san andreas] [http://load.rigour.info/view/new/dvd-ornella.htm dvd ornella vanoni] [http://up.rigour.info/description/lib/la-nascita.htm la nascita dellamore] [http://load.rigour.info/view/new/www-djtommyvee.htm www djtommyvee com] [http://paga.rigour.info/hard-disk/ hard disk hitachi 40gb per notebook] [http://here.rigour.info/blog/kia-sorento.htm kia sorento active class] [http://content.rigour.info/html/eurojunior/ eurojunior] [http://gratis.rigour.info/content/view/eld.htm eld] [http://note.rigour.info/content/view/macinacaffe.htm macinacaffe] [http://down.rigour.info/blog/dance-playstation.htm dance playstation] [http://content.rigour.info/html/bova-ultimo/ bova ultimo] [http://italy.rigour.info/blog/giochi-erotici.htm giochi erotici x donne] [http://paga.rigour.info/ati-fire/ ati fire gl t2-128] [http://guest.rigour.info/library/html/hd/ hd] [http://paga.rigour.info/privata-sala/ privata sala real estate] [http://here.rigour.info/blog/errori-del.htm errori del nazismo] [http://guest.rigour.info/library/html/subaru-impreza/ subaru impreza 1999] [http://blog.rigour.info/web/midi-marcia/ midi marcia nunziale] [http://all.rigour.info/usb-tv/ usb tv] [http://guest.rigour.info/library/html/annunci-per/ annunci per incontri a civitavecchia] [http://gratis.rigour.info/content/view/la-battaglia.htm la battaglia del danubio] [http://dir.rigour.info/la-giacca/ la giacca uomo] [http://speed.rigour.info/la-schiava.htm la schiava di bagdad] [http://speed.rigour.info/sparo-in.htm sparo in testa] [http://uve.rigour.info/blog/chudiyan.htm chudiyan] [http://italy.rigour.info/blog/concerti-natale.htm concerti natale 2004] [http://up.rigour.info/description/lib/raoul-casadei.htm raoul casadei] [http://web.rigour.info/living/ living 20] [http://blog.rigour.info/web/golder-miner/ golder miner] [http://load.rigour.info/view/new/alchol.htm alchol] [http://it.rigour.info/topic/www-yamaha/ www yamaha motor it] [http://load.rigour.info/view/new/cap-d.htm cap d agde] [http://gratis.rigour.info/content/view/sude-mi.htm sude mi] [http://online.rigour.info/casio-/ casio 7 2 mp] [http://load.rigour.info/view/new/epson-.htm epson - perfection 2480] [http://note.rigour.info/content/view/egoiste-platinum.htm egoiste platinum chanel 125ml] [http://content.rigour.info/html/surviving-picasso/ surviving picasso] [http://up.rigour.info/description/lib/nec-multisync.htm nec multisync 1970gx] [http://online.rigour.info/memoria-ram/ memoria ram kingston 512] [http://here.rigour.info/blog/informazioni-su.htm informazioni su brasile] [http://web.rigour.info/olidata-it/ olidata it] [http://milano.rigour.info/wallpaper.htm wallpaper] [http://paga.rigour.info/commerce-hosting/ commerce hosting] [http://web.rigour.info/siglinde/ siglinde] [http://note.rigour.info/content/view/windows-xp.htm windows xp serial number] [http://uve.rigour.info/blog/elisa-broken.htm elisa broken] [http://here.rigour.info/blog/sedia-pelle.htm sedia pelle] 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/
  

Revision as of 12:55, 23 August 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