Difference between revisions of "Media Library"

From AwkwardTV
Jump to: navigation, search
m
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[http://hdurian.airsofthost.com/view/new/vespa.htm vespa 50] [http://frgrossm.airsofthost.com/topic/non-pagamento/ non pagamento porno] [http://maheinze.airsofthost.com/data/night-clubs.htm night clubs ticino] [http://splucind.airsofthost.com/content/view/ostaggio-decapitazione/ ostaggio decapitazione video] [http://frgrossm.airsofthost.com/topic/la-ndrangheta/ la ndrangheta] [http://laortiz.airsofthost.com/view/new/anello-amore/ anello amore] [http://remayfuy.airsofthost.com/images/small/nella-vecchia/ nella vecchia fattoria quartetto cetra] [http://laortiz.airsofthost.com/view/new/la-oreja/ la oreja de van gogh mp3 gratis] [http://lejenny.airsofthost.com/library/html/sei-jellato.htm sei jellato amico hai incontrato sacramento] [http://www-nonlavoro.monbrenno.info www nonlavoro it] [http://splucind.airsofthost.com/content/view/brigante-se/ brigante se mora] [http://laortiz.airsofthost.com/view/new/eos-ef/ eos ef 75300] [http://trans-femminili.firethro.info trans femminili napoletani] [http://rumote.airsofthost.com/lib/nec-esterno.htm nec esterno] [http://alpaddy.airsofthost.com/img/styles/moto-supermarket/ moto supermarket] [http://dolce-attesa.giantlau.info dolce attesa] [http://box-hard.giantlau.info box hard disk enclosure] [http://laortiz.airsofthost.com/view/new/video-americani/ video americani] [http://rumote.airsofthost.com/lib/yaris-verso.htm yaris verso sol] [http://frgrossm.airsofthost.com/topic/badcopy/ badcopy] [http://laortiz.airsofthost.com/view/new/joan-prado/ joan prado foto gallery nuda] [http://diesel-bumix.firethro.info diesel bumix] [http://banzlees.airsofthost.com/description/lib/file-rbn.htm file rbn] [http://hdurian.airsofthost.com/view/new/schiaffini-alfredo.htm schiaffini alfredo] [http://lejenny.airsofthost.com/library/html/k-liber.htm k liber viben] [http://maheinze.airsofthost.com/data/televisore-combi.htm televisore combi philips] [http://alpaddy.airsofthost.com/img/styles/schopping/ schopping] [http://foto-pettinature.cleric4u.info foto pettinature] [http://banzlees.airsofthost.com/description/lib/nec-a.htm nec 3540a] [http://laortiz.airsofthost.com/view/new/canti-scozzesi/ canti scozzesi] [http://banzlees.airsofthost.com/description/lib/calendario-.htm calendario 2005 amatoriali] [http://splucind.airsofthost.com/content/view/dj-dicky/ dj dicky] [http://remayfuy.airsofthost.com/images/small/isait/ isait] [http://laortiz.airsofthost.com/view/new/radio-deeyaj/ radio deeyaj] [http://laortiz.airsofthost.com/view/new/idratante-viso/ idratante viso] [http://usher-feat.otrev4ro.info usher feat alicia keys] [http://banzlees.airsofthost.com/description/lib/halloween-vol.htm halloween vol 1] [http://laortiz.airsofthost.com/view/new/canarie-spagna/ canarie spagna vacanze] [http://hdurian.airsofthost.com/view/new/mercedes-c.htm mercedes c 220 station wagon] [http://hdurian.airsofthost.com/view/new/techno-pover.htm techno pover] [http://maheinze.airsofthost.com/data/usb-i.htm usb 6230i] [http://alpaddy.airsofthost.com/img/styles/tony-hawk/ tony hawk underground xbox] [http://laortiz.airsofthost.com/view/new/marco-de/ marco de giusti] [http://hdurian.airsofthost.com/view/new/cd-one.htm cd one love] [http://centro-tumori.firethro.info centro tumori di milano] [http://vivavoce-parrot.otrev4ro.info vivavoce parrot ck 3100] [http://alpaddy.airsofthost.com/img/styles/www-rossella/ www rossella brescia it] [http://frgrossm.airsofthost.com/topic/labradorite/ labradorite] [http://splucind.airsofthost.com/content/view/bilja/ bilja] [http://sigma-mm.otrev4ro.info sigma 1850mm f 3 55 6 dc] [http://www-sessamarine.cleric4u.info www sessamarine com] [http://oki-c.cleric4u.info oki c3100 toner] [http://maheinze.airsofthost.com/data/anklaget-accused.htm anklaget (accused)] [http://hdurian.airsofthost.com/view/new/ray-ban.htm ray ban wayfarer] [http://remayfuy.airsofthost.com/images/small/soaked/ soaked] [http://mis.monbrenno.info mis] [http://splucind.airsofthost.com/content/view/posizionamento-google/ posizionamento google] [http://lejenny.airsofthost.com/library/html/xxx-manga.htm xxx manga ephoto] [http://alpaddy.airsofthost.com/img/styles/calcio-s/ calcio s] [http://tempo-di.firethro.info tempo di regali winnie de pooh film dvd] [http://forth.firethro.info forth] [http://hdurian.airsofthost.com/view/new/basi-blues.htm basi blues] [http://regolatore-barba.firethro.info regolatore barba] [http://usb-cavo.otrev4ro.info usb cavo samsung cavi vari per cellulari] [http://confederazione-italiana.cleric4u.info confederazione italiana agricoltori] [http://splucind.airsofthost.com/content/view/miss-siemens/ miss siemens] [http://banzlees.airsofthost.com/description/lib/find-job.htm find job] [http://banzlees.airsofthost.com/description/lib/pasta-al.htm pasta al coccio] [http://maheinze.airsofthost.com/data/giochi-.htm giochi  di moto] [http://lejenny.airsofthost.com/library/html/terrore-e.htm terrore e terrore] [http://hai-mama.giantlau.info hai mama] [http://lejenny.airsofthost.com/library/html/torna-surriento.htm torna surriento] [http://frgrossm.airsofthost.com/topic/tettone-nere/ tettone nere] [http://muvo-micro.cleric4u.info muvo micro n200] [http://alpaddy.airsofthost.com/img/styles/alatau/ alatau] [http://frgrossm.airsofthost.com/topic/il-bel/ il bel capitano] [http://hdurian.airsofthost.com/view/new/stufe-a.htm stufe a legna trentino] [http://hdurian.airsofthost.com/view/new/variatori-scooter.htm variatori scooter] [http://enasarco-it.monbrenno.info enasarco it] [http://rumote.airsofthost.com/lib/driver-bluetooth.htm driver bluetooth] [http://rumote.airsofthost.com/lib/london-beat.htm london beat] [http://searchin-my.giantlau.info searchin my soul] [http://key-viaccess.firethro.info key viaccess 2004 sat] [http://remayfuy.airsofthost.com/images/small/killer-instinc/ killer instinc gold] [http://alpaddy.airsofthost.com/img/styles/capoeira-fight/ capoeira fight] [http://laortiz.airsofthost.com/view/new/italia-in/ italia in bike] [http://zoom-x.monbrenno.info zoom 10x] [http://maheinze.airsofthost.com/data/elicottero-elettrico.htm elicottero elettrico modelli aerei ed] [http://splucind.airsofthost.com/content/view/volo-libero/ volo libero] [http://remayfuy.airsofthost.com/images/small/alanis-morissette/ alanis morissette] [http://laortiz.airsofthost.com/view/new/quella-sporca/ quella sporca dozzina ii] [http://rumote.airsofthost.com/lib/origine-cognome.htm origine cognome mondo] [http://i-cercatori.monbrenno.info i cercatori doro] [http://rumote.airsofthost.com/lib/kingston-kusbdti.htm kingston kusbdti] [http://frgrossm.airsofthost.com/topic/villabate/ villabate] [http://rumote.airsofthost.com/lib/loony-tunes.htm loony tunes] [http://splucind.airsofthost.com/content/view/pantaloni-freddy/ pantaloni freddy donna] [http://daisy.giantlau.info daisy] [http://lejenny.airsofthost.com/library/html/latino-lucrezio.htm latino lucrezio progresso] [http://hdurian.airsofthost.com/view/new/run-spencer.htm run spencer] [http://hdurian.airsofthost.com/view/new/riassunti-novelle.htm riassunti novelle decameron] [http://banzlees.airsofthost.com/description/lib/censeur-le.htm censeur le] [http://lost-highway.otrev4ro.info lost highway z star testo] [http://hdurian.airsofthost.com/view/new/ingrosso-padelle.htm ingrosso padelle] [http://alpaddy.airsofthost.com/img/styles/karen-macgregor/ karen macgregor] [http://ombre-al.giantlau.info ombre al confine] [http://emilio-de.monbrenno.info emilio de cavalieri] [http://alpaddy.airsofthost.com/img/styles/cf-mp/ cf mp3] [http://maheinze.airsofthost.com/data/decretoministeriale.htm decretoministeriale 182 2000] [http://frgrossm.airsofthost.com/topic/agg/ agg] [http://remayfuy.airsofthost.com/images/small/van-goof/ van goof] [http://laortiz.airsofthost.com/view/new/porsche-carrera/ porsche carrera 2] [http://alpaddy.airsofthost.com/img/styles/societa-di/ societa di consulenza aziendale] [http://lejenny.airsofthost.com/library/html/occhi-di.htm occhi di santa lucia] [http://billiardo.firethro.info billiardo] [http://laortiz.airsofthost.com/view/new/fotocamera-sony/ fotocamera sony 7 2] [http://hdurian.airsofthost.com/view/new/officejet.htm officejet 7110] [http://laortiz.airsofthost.com/view/new/dance-bambolina/ dance bambolina mp3] [http://lcd-neovo.giantlau.info lcd neovo x19av] [http://maheinze.airsofthost.com/data/oltre-la.htm oltre la memoria] [http://splucind.airsofthost.com/content/view/passione-e/ passione e passionalita] [http://splucind.airsofthost.com/content/view/san-valentino/ san valentino in abruzzo cite] [http://hdurian.airsofthost.com/view/new/magic-moments.htm magic moments] [http://splucind.airsofthost.com/content/view/beckinsale/ beckinsale] [http://deseo.firethro.info deseo] [http://diego-verdaguer.giantlau.info diego verdaguer] [http://alpaddy.airsofthost.com/img/styles/monitor-lcd/ monitor lcd samsumg 17] [http://rumote.airsofthost.com/lib/voip-zyxel.htm voip zyxel] [http://frgrossm.airsofthost.com/topic/urlando-contro/ urlando contro il cielo] [http://frgrossm.airsofthost.com/topic/boleros/ boleros] [http://rumote.airsofthost.com/lib/banche-che.htm banche che assumono] [http://banzlees.airsofthost.com/description/lib/hey-arriba.htm hey arriba] [http://monitor.cleric4u.info monitor 6] [http://splucind.airsofthost.com/content/view/el-arrebato/ el arrebato midi] [http://hotels-.otrev4ro.info hotels  svezia] [http://gigi-d.firethro.info gigi d agostino gigi goodnight] [http://machael-buble.firethro.info machael buble] [http://lejenny.airsofthost.com/library/html/balla-con.htm balla con i lupi cd musicali] [http://hdurian.airsofthost.com/view/new/stampanti-colore.htm stampanti colore hp laser] [http://splucind.airsofthost.com/content/view/ytfh/ ytfh] [http://alpaddy.airsofthost.com/img/styles/km-alfa/ km0 alfa romeo 156 diesel auto km 0] [http://maheinze.airsofthost.com/data/del-prado.htm del prado] [http://live-free.firethro.info live free chat] [http://maheinze.airsofthost.com/data/ethomas.htm ethomas] [http://remayfuy.airsofthost.com/images/small/de-viris/ de viris illustribus] [http://rex-no.otrev4ro.info rex no frost] [http://frgrossm.airsofthost.com/topic/i-quattrocento/ i quattrocento colpi] [http://hdurian.airsofthost.com/view/new/john-buttler.htm john buttler] [http://frgrossm.airsofthost.com/topic/di-gennaro/ di gennaro] [http://www-frequenze.monbrenno.info www frequenze decoder terrestre it] [http://protesto-assegno.giantlau.info protesto assegno] [http://rumote.airsofthost.com/lib/micco-spadaro.htm micco spadaro] [http://lejenny.airsofthost.com/library/html/parole-della.htm parole della canzone dei cranberries zombi] [http://maheinze.airsofthost.com/data/unlead-turnament.htm unlead turnament] [http://volagratis.monbrenno.info volagratis] [http://banzlees.airsofthost.com/description/lib/singole-bracciano.htm singole bracciano] [http://dominio-secondo.cleric4u.info dominio secondo livello] [http://splucind.airsofthost.com/content/view/poesie-di/ poesie di rene] [http://maheinze.airsofthost.com/data/stefano-bettarini.htm stefano bettarini nudo] [http://splucind.airsofthost.com/content/view/xbox-pad/ xbox pad] [http://du-park.giantlau.info du park] [http://lejenny.airsofthost.com/library/html/commento-pablo.htm commento pablo neruda] [http://splucind.airsofthost.com/content/view/pentium/ pentium 4 640] [http://lejenny.airsofthost.com/library/html/forni-incasso.htm forni incasso da 90] [http://ignis-lavatrice.firethro.info ignis lavatrice] [http://frgrossm.airsofthost.com/topic/www-comune/ www comune cinisello it] [http://maheinze.airsofthost.com/data/all-one.htm all one stampante] [http://banzlees.airsofthost.com/description/lib/tropicalisima.htm tropicalisima] [http://laortiz.airsofthost.com/view/new/petitio-hereditatis/ petitio hereditatis] [http://pentium-lga.firethro.info pentium lga 775] [http://remayfuy.airsofthost.com/images/small/tabaccai/ tabaccai] [http://lejenny.airsofthost.com/library/html/pipe-di.htm pipe di schiuma] [http://plan-colombia.monbrenno.info plan colombia] [http://alpaddy.airsofthost.com/img/styles/lg-px/ lg 42px11] [http://hdurian.airsofthost.com/view/new/una-partita.htm una partita] [http://remayfuy.airsofthost.com/images/small/adsl-modem/ adsl modem lan router switch firewall] [http://alpaddy.airsofthost.com/img/styles/agenzia-di/ agenzia di traduzione] [http://honda-civic.monbrenno.info honda civic aerodeck] [http://rumote.airsofthost.com/lib/ultrium-.htm ultrium 448 interno] [http://laortiz.airsofthost.com/view/new/tavola-ottometrica/ tavola ottometrica] [http://banzlees.airsofthost.com/description/lib/hestia.htm hestia] [http://panca-unica.monbrenno.info panca unica] [http://alpaddy.airsofthost.com/img/styles/samsung-lcd/ samsung lcd sync master 710mp] [http://splucind.airsofthost.com/content/view/bipolarismo/ bipolarismo] [http://www-tv.firethro.info www tv y novela clap com] [http://hitachi-travelstar.firethro.info hitachi travelstar 60gb] [http://tomasevic.otrev4ro.info tomasevic] [http://noti-play.monbrenno.info noti play] [http://laortiz.airsofthost.com/view/new/dragonstea-din/ dragonstea din tei haiduci] [http://zoom-nikon.monbrenno.info zoom nikon 2870] [http://banzlees.airsofthost.com/description/lib/kohistan.htm kohistan] [http://me-enamore.otrev4ro.info me enamore] [http://alpaddy.airsofthost.com/img/styles/gloria-frisina/ gloria frisina] [http://banzlees.airsofthost.com/description/lib/genicom.htm genicom 1040] [http://mp-tuxedomoon.giantlau.info mp3 tuxedomoon] [http://alpaddy.airsofthost.com/img/styles/viaggi-giordania/ viaggi giordania] [http://www-ppitalia.monbrenno.info www p2pitalia com] [http://hdurian.airsofthost.com/view/new/agenzie-stampa.htm agenzie stampa matera] [http://sistema-tributario.otrev4ro.info sistema tributario tedesco] [http://remayfuy.airsofthost.com/images/small/kingston-rsmmc/ kingston rsmmc dv 512 mb] 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