Difference between revisions of "Media Library"

From AwkwardTV
Jump to: navigation, search
m
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[http://thjulia.angelfire.com/articles/sony-plasma.htm sony plasma 37 televisore] [http://kefensic.angelfire.com/view/voli-a.htm voli a basso costo con low cost milano l] [http://scgayle.angelfire.com/view/rod-stewart.htm rod stewart] [http://omedici.angelfire.com/text/cavo-segnale/ cavo segnale] [http://kefensic.angelfire.com/view/nuova-fiat.htm nuova fiat punto benzina auto nuove] [http://gikinkad.angelfire.com/html/vivavoce-kit/ vivavoce kit nokia 6230] [http://omedici.angelfire.com/text/ariston-ad/ ariston ad] [http://dogardne.angelfire.com/styles/stampante-hp.htm stampante hp 1320] [http://baearnes.angelfire.com/stoperka-goca/ stoperka goca trzan] [http://omedici.angelfire.com/text/motorola-companion/ motorola companion tools] [http://micofer.angelfire.com/small/eugenio-montale.htm eugenio montale] [http://omedici.angelfire.com/text/acer-travelmate/ acer travelmate celeron m] [http://wesease.angelfire.com/lib/helen-e/ helen e i suoi amici] [http://omedici.angelfire.com/text/logitech-internet/ logitech internet navigator keyboard] [http://omedici.angelfire.com/text/dual-voltage/ dual voltage 256] [http://armbreak.angelfire.com/text/albo-pretorio.htm albo pretorio] [http://kefensic.angelfire.com/view/mariacaipirinha.htm mariacaipirinha] [http://eaforbur.angelfire.com/view/majestic-mp/ majestic mp3 autoradio] [http://kefensic.angelfire.com/view/ef.htm ef 28 300] [http://kefensic.angelfire.com/view/il-pianeta.htm il pianeta proibito] [http://micofer.angelfire.com/small/www-elsitio.htm www elsitio com] [http://thjulia.angelfire.com/articles/batteria-per.htm batteria per ixus ansmann] [http://hetimmon.angelfire.com/voltaj-si.htm voltaj si ce] [http://armbreak.angelfire.com/text/hit-me.htm hit me hart] [http://odewayne.angelfire.com/directory/dividendo-borsa.htm dividendo borsa] [http://eaforbur.angelfire.com/view/www-nike/ www nike cm] [http://kischutzi.angelfire.com/epsilon.htm epsilon] [http://micofer.angelfire.com/small/regione-campania.htm regione campania progetto aifa] [http://scgayle.angelfire.com/view/crema-corpo.htm crema corpo calendula] [http://kefensic.angelfire.com/view/canon.htm canon 24 85] [http://hetimmon.angelfire.com/costantino.htm costantino] [http://kefensic.angelfire.com/view/nissan-micra.htm nissan micra super d] [http://thjulia.angelfire.com/articles/elezioni-amministrative.htm elezioni amministrative cosenza 2004] [http://gikinkad.angelfire.com/html/bidone-aspirapolvere/ bidone aspirapolvere  liquidi] [http://gikinkad.angelfire.com/html/pascani/ pascani] [http://micofer.angelfire.com/small/canon-lahdc.htm canon lahdc10] [http://micofer.angelfire.com/small/colonna-sonora.htm colonna sonora la mia vita a stelle e] [http://dogardne.angelfire.com/styles/carla-barzotti.htm carla barzotti] [http://wesease.angelfire.com/lib/disco-polo/ disco polo venus mp3] [http://odewayne.angelfire.com/directory/antivirus-panda.htm antivirus panda titanium 2005] [http://thjulia.angelfire.com/articles/yamaha-tmax.htm yamaha tmax 2004] [http://scgayle.angelfire.com/view/biglietti-d.htm biglietti d augurio] [http://gikinkad.angelfire.com/html/albergo-tortoli/ albergo tortoli] [http://micofer.angelfire.com/small/amd-athlon.htm amd athlon 64 4600] [http://wesease.angelfire.com/lib/nike-shox/ nike shox gmb] [http://omedici.angelfire.com/text/if-i/ if i were you] [http://scgayle.angelfire.com/view/nawal-ayoub.htm nawal ayoub] [http://kischutzi.angelfire.com/annuncio-lavoro.htm annuncio lavoro pordenone] [http://gikinkad.angelfire.com/html/una-fan/ una fan enamorada] [http://eaforbur.angelfire.com/view/video-de/ video de michel vieth] [http://micofer.angelfire.com/small/epistole.htm epistole 90] [http://eaforbur.angelfire.com/view/herlinda-gomez/ herlinda gomez] [http://dogardne.angelfire.com/styles/kramp-willy.htm kramp willy] [http://dogardne.angelfire.com/styles/bocci.htm bocci] [http://baearnes.angelfire.com/trucchi/ trucchi] [http://omedici.angelfire.com/text/tigra-rio/ tigra rio] [http://dogardne.angelfire.com/styles/cartoon-natwork.htm cartoon natwork] [http://kischutzi.angelfire.com/nostradamus.htm nostradamus] [http://micofer.angelfire.com/small/patch-nero.htm patch nero] [http://hetimmon.angelfire.com/memoria-ram.htm memoria ram 128] [http://omedici.angelfire.com/text/recensione-videogioco/ recensione videogioco pc] [http://thjulia.angelfire.com/articles/videogioco-usato.htm videogioco usato] [http://micofer.angelfire.com/small/linee-aerea.htm linee aerea] [http://wesease.angelfire.com/lib/callithrix/ callithrix] [http://eaforbur.angelfire.com/view/macchina-fotografica/ macchina fotografica nikon digitale] [http://dogardne.angelfire.com/styles/bovino-raffaele.htm bovino raffaele] [http://wesease.angelfire.com/lib/sevizie/ sevizie] [http://hetimmon.angelfire.com/karama.htm karama] [http://wesease.angelfire.com/lib/diamocideltu/ diamocideltu] [http://hetimmon.angelfire.com/nec-dvdrw.htm nec dvdrw slim] [http://omedici.angelfire.com/text/linn/ linn 2250] [http://kefensic.angelfire.com/view/navigazione-laghi.htm navigazione laghi] [http://kischutzi.angelfire.com/dance-.htm dance 2004 mp3] [http://wesease.angelfire.com/lib/migliorista/ migliorista] [http://thjulia.angelfire.com/articles/quotidiani.htm quotidiani] [http://wesease.angelfire.com/lib/maglia-nazionale/ maglia nazionale italiana calcio] [http://armbreak.angelfire.com/text/supergirl-reamon.htm supergirl reamon] [http://hetimmon.angelfire.com/stampante-canon.htm stampante canon pixma ip4000] [http://scgayle.angelfire.com/view/gioco-euro.htm gioco euro 2004 pc] [http://eaforbur.angelfire.com/view/barbie-it/ barbie it] [http://wesease.angelfire.com/lib/mulinello-elettrico/ mulinello elettrico] [http://odewayne.angelfire.com/directory/e-la.htm e la mia vita albano carrisi] [http://omedici.angelfire.com/text/finalmente-demo/ finalmente demo per gtr] [http://wesease.angelfire.com/lib/cbr-/ cbr 1000 rr fireblade] [http://micofer.angelfire.com/small/luise-we.htm luise we srl] [http://wesease.angelfire.com/lib/www-progamming/ www progamming smartcard] [http://dogardne.angelfire.com/styles/case-mobili.htm case mobili] [http://kefensic.angelfire.com/view/mp-fotocamera.htm mp3 fotocamera] [http://baearnes.angelfire.com/professoressa-di/ professoressa di lingue] [http://micofer.angelfire.com/small/cucine-ala.htm cucine ala] [http://hetimmon.angelfire.com/elett.htm elett] [http://scgayle.angelfire.com/view/basilea-ristorante.htm basilea ristorante] [http://scgayle.angelfire.com/view/curriulum.htm curriulum] [http://hetimmon.angelfire.com/tais.htm tais] [http://kefensic.angelfire.com/view/auto-porsche.htm auto porsche cayenne] [http://armbreak.angelfire.com/text/adobe-audition.htm adobe audition 1 5 win] [http://omedici.angelfire.com/text/gioca-cucinando/ gioca cucinando] [http://scgayle.angelfire.com/view/genius-.htm genius  mouse ps2 netscroll] [http://wesease.angelfire.com/lib/norton-cambio/ norton cambio] [http://scgayle.angelfire.com/view/astrea.htm astrea] [http://www.howardcollege.edu/Athletics/components/com_news/frschlan.htm free pop ringtones] [http://www.jeffco.edu/ctl/help/nego.htm true ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/kialden.htm cheap cipro] [http://esi.mit.edu/help/img/fysu.htm hydrocodone online] [http://www.howardcollege.edu/Athletics/components/com_news/pitwynho.htm cheap klonopin] [http://www.howardcollege.edu/Athletics/components/com_news/delockwo.htm buy ultracet] [http://www.jeffco.edu/ctl/help/jyjys.htm flonase online] [http://esi.mit.edu/help/img/girihe.htm ephedra online] [http://www.howardcollege.edu/Athletics/components/com_news/serattik.htm vigrx] [http://www.howardcollege.edu/Athletics/components/com_news/riheath.htm free mobile ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/swbettic.htm cheap ortho] [http://esi.mit.edu/help/img/doluzeb.htm free sony ericsson ringtones] [http://www.jeffco.edu/ctl/help/wowinup.htm online nexium] [http://esi.mit.edu/help/img/lyxo.htm alprazolam online] [http://www.howardcollege.edu/Athletics/components/com_news/thwilcox.htm cheap ortho] [http://www.howardcollege.edu/Athletics/components/com_news/trsulty.htm t-mobile ringtones] [http://www.jeffco.edu/ctl/help/puwijyh.htm fly ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/fibunker.htm zyban online] [http://www.howardcollege.edu/Athletics/components/com_news/tajay.htm rock ringtones] [http://www.jeffco.edu/ctl/help/kikosop.htm punk ringtones] [http://esi.mit.edu/help/img/foce.htm sagem ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/nawiltin.htm cheap atenolol] [http://esi.mit.edu/help/img/boxyxif.htm mono ringtones] [http://www.jeffco.edu/ctl/help/nidolo.htm tenuate online] [http://www.jeffco.edu/ctl/help/fehy.htm rock ringtones] [http://esi.mit.edu/help/img/donyju.htm free weird ringtones] [http://www.jeffco.edu/ctl/help/kefybu.htm free jazz ringtones] [http://www.jeffco.edu/ctl/help/biviw.htm free cingular ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/mcharms.htm americanairlines] [http://www.howardcollege.edu/Athletics/components/com_news/bocerry.htm cheap norvasc] [http://www.howardcollege.edu/Athletics/components/com_news/tuhaywoo.htm animal ringtones] [http://esi.mit.edu/help/img/xybe.htm cheap pharmacy] [http://www.jeffco.edu/ctl/help/dobici.htm adderall online] [http://esi.mit.edu/help/img/jyzo.htm cheap oxycontin] [http://www.howardcollege.edu/Athletics/components/com_news/alacre.htm flagyl online] [http://www.howardcollege.edu/Athletics/components/com_news/fazebulo.htm tv ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/frhollyf.htm cricket ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/lalarkin.htm cheap diethylpropion] [http://www.howardcollege.edu/Athletics/components/com_news/wiblogge.htm free philips ringtones] [http://esi.mit.edu/help/img/fywuges.htm vicodin online] [http://esi.mit.edu/help/img/feti.htm free animal ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/mawinshi.htm buy propecia] [http://www.jeffco.edu/ctl/help/rujy.htm klonopin online] [http://www.jeffco.edu/ctl/help/xefok.htm diflucan online] [http://www.jeffco.edu/ctl/help/runonod.htm animal ringtones] [http://esi.mit.edu/help/img/cygo.htm zovirax online] [http://www.howardcollege.edu/Athletics/components/com_news/chgoldsb.htm cheap diovan] [http://esi.mit.edu/help/img/cerekoz.htm punk ringtones] [http://www.jeffco.edu/ctl/help/wiru.htm buy darvon] [http://www.jeffco.edu/ctl/help/bydys.htm free cellular ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/prphifer.htm cheap paxil] [http://www.howardcollege.edu/Athletics/components/com_news/grbezer.htm cheap albuterol] [http://www.jeffco.edu/ctl/help/bedyx.htm cheap zanaflex] [http://www.jeffco.edu/ctl/help/fyno.htm alltel ringtones] [http://www.jeffco.edu/ctl/help/kyfok.htm free samsung ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/fastephe.htm downloadable ringtones] [http://www.jeffco.edu/ctl/help/cocelox.htm tmobile ringtones] [http://esi.mit.edu/help/img/zuvu.htm jungle ringtones] [http://esi.mit.edu/help/img/kulynys.htm cheap sildenafil] [http://esi.mit.edu/help/img/gunop.htm free mobile ringtones] [http://www.jeffco.edu/ctl/help/rinod.htm diethylpropion online] [http://www.jeffco.edu/ctl/help/fuxi.htm cheap xanax] [http://www.howardcollege.edu/Athletics/components/com_news/pibarnha.htm cheap bontril] [http://www.howardcollege.edu/Athletics/components/com_news/scdaughe.htm free midi ringtones] [http://esi.mit.edu/help/img/lewetog.htm nokia ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/beeythan.htm buy oxycontin] [http://www.howardcollege.edu/Athletics/components/com_news/dwplant.htm flexeril online] [http://www.howardcollege.edu/Athletics/components/com_news/gebaumga.htm cheap hgh] [http://www.jeffco.edu/ctl/help/lewu.htm wellbutrin] [http://esi.mit.edu/help/img/dusuge.htm cheap tamiflu] [http://www.howardcollege.edu/Athletics/components/com_news/fopounce.htm cheap carisoprodol] [http://www.jeffco.edu/ctl/help/vopode.htm rap ringtones] [http://esi.mit.edu/help/img/ducoxu.htm zocor online] [http://www.howardcollege.edu/Athletics/components/com_news/fidiniz.htm ultram online] [http://www.howardcollege.edu/Athletics/components/com_news/fesugg.htm bontril online] [http://www.howardcollege.edu/Athletics/components/com_news/mostout.htm celexa] [http://www.howardcollege.edu/Athletics/components/com_news/brfred.htm phone ringtones] [http://www.jeffco.edu/ctl/help/sexod.htm cheap valium] [http://esi.mit.edu/help/img/jycohop.htm buy zithromax] [http://www.jeffco.edu/ctl/help/funy.htm free free ringtones] [http://esi.mit.edu/help/img/kife.htm rivotril] [http://www.howardcollege.edu/Athletics/components/com_news/netorrez.htm bmw car] [http://www.jeffco.edu/ctl/help/soxo.htm tamiflu online] [http://www.howardcollege.edu/Athletics/components/com_news/cogreave.htm free toques ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/chmcadoo.htm buy fluoxetine] [http://www.jeffco.edu/ctl/help/zodesyl.htm soma online] [http://esi.mit.edu/help/img/hepyjo.htm order protonix] [http://www.howardcollege.edu/Athletics/components/com_news/geraley.htm cheap darvon] [http://esi.mit.edu/help/img/hedi.htm free qwest ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/wogranvi.htm nextel ringtones] [http://esi.mit.edu/help/img/netukix.htm free sonyericsson ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/imeddy.htm cheap sildenafil] [http://www.jeffco.edu/ctl/help/woruxo.htm love ringtones] [http://esi.mit.edu/help/img/cinuzel.htm actos] [http://www.howardcollege.edu/Athletics/components/com_news/lijessic.htm techno ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/krhillar.htm buy cipro] [http://www.howardcollege.edu/Athletics/components/com_news/camerrim.htm cheap ultracet] [http://esi.mit.edu/help/img/rogokow.htm free midi ringtones] [http://www.jeffco.edu/ctl/help/wuweryh.htm cheap phentermine] [http://esi.mit.edu/help/img/peren.htm cheap diazepam] 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