User Tools

Site Tools


myth_tv_homebrew_project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
myth_tv_homebrew_project [2007/05/04 00:23] davidmyth_tv_homebrew_project [2009/03/01 15:42] (current) david
Line 419: Line 419:
 make install make install
 </code> </code>
 +
  
 ==== MythTv Themes ==== ==== MythTv Themes ====
 <code> <code>
-qmake myththemes.pro+./configure
 make install make install
 </code> </code>
 +
 +
  
 ===== File System Setup ===== ===== File System Setup =====
Line 432: Line 435:
 chgrp disk /usr/local/share/store/  chgrp disk /usr/local/share/store/ 
 chmod g+w /usr/local/share/store/  chmod g+w /usr/local/share/store/ 
-ln -s /usr/local/share/store/mnt/ +ln -s /usr/local/share/store /mnt/store
 </code> </code>
  
Line 441: Line 444:
   * Get LIRCD up and running BEFORE you compile MPlayer as it will autodetect it if you have it up when you compile MPlayer.  (So the remote will work while watching Video, not Recordings)   * Get LIRCD up and running BEFORE you compile MPlayer as it will autodetect it if you have it up when you compile MPlayer.  (So the remote will work while watching Video, not Recordings)
   * EDIT /etc/rc.d/rc.mysql "SKIP NETWORKING TRUE!" is the default in Slackware 10.2 !?!?!?! argh.... 1 hour wasted figuring out why I couldn't connect to the database remotely!?   * EDIT /etc/rc.d/rc.mysql "SKIP NETWORKING TRUE!" is the default in Slackware 10.2 !?!?!?! argh.... 1 hour wasted figuring out why I couldn't connect to the database remotely!?
 +
 +===== Human Readable File Names =====
 +
 +  * Note this is specific to Mythbuntu
 +
 +  - Create a directory under recordings that you can write to:  <code>
 +sudo mkdir /var/lib/mythtv/recordings/links
 +sudo chgroup video /var/lib/mythtv/recordings/links
 +sudo chmod 775 /var/lib/mythtv/recordings/links
 +</code>
 +  - Use the **mythlink.sh** scripts with a couple modifications to make the directories and links to your files whenever you need them.
 +
 +<code>
 +
 +#!/bin/sh
 +
 +# mythlink.sh - Symlinks mythtv files to more readable versions
 +# by Dale Gass modified by Jacob Stoner
 +
 +if [ ! -d /var/lib/mythtv/recordings/links ]; then mkdir /var/lib/mythtv/recordings/links; fi
 +rm -R -f /var/lib/mythtv/recordings/links/*
 +
 +echo "Done RM"
 +mysql -umythtv -pYOURPASSWORDGOESHERE  mythconverg -B --exec "select chanid,starttime,endtime,title,subtitle from recorded;" >/tmp/mythlink.$$
 +perl -w -e '
 +        my $mythpath= "/var/lib/mythtv/recordings";
 +        my $altpath= "/var/lib/mythtv/recordings/links";
 +        if (!-d $altpath) {
 +                mkdir $altpath or die "Failed to make directory: $altpath\n";
 +        }
 +        <>;
 +        while (<>) {
 +                chomp;
 +                my ($chanid,$start,$end,$title,$subtitle) = split /\t/;
 +                $start =~ s/[^0-9]//g;
 +                $end =~ s/[^0-9]//g;
 +                $subtitle = "" if(!defined $subtitle);
 +                my $ofn = "${chanid}_${start}.mpg";
 +                do { print "Skipping $mythpath/$ofn\n"; next } unless -e "$mythpath/$ofn";
 +                $start =~ /^....(........)/;
 +                #my $nfn = "$1_${title}_${subtitle}";
 +                my $nfn = "${title}";
 +                if ($subtitle) {$nfn="${nfn}_${subtitle}"}
 +                $nfn =~ s/ /_/g;
 +                $nfn =~ s/&/+/g;
 +                $nfn =~ s/[^+0-9a-zA-Z_-]+/_/g;
 +                $nfn = "${nfn}.mpg";
 +                print "Creating $nfn\n";
 +                unlink "$altpath/$nfn" if(-e "$altpath/$nfn");
 +                mkdir "$altpath/$title";
 +                symlink "$mythpath/$ofn", "$altpath/$title/$nfn" or print "Failed to create symlink $altpath/$nfn: $!";
 +        }
 +' /tmp/mythlink.$$
 +rm /tmp/mythlink.$$
 +</code>
  
 ====== Support Configurations ====== ====== Support Configurations ======
Line 495: Line 553:
  
 (the deflate option is important as most sites save bandwidth using deflate, as well as mod_proxy and some other ones that isnt included by default)  (the deflate option is important as most sites save bandwidth using deflate, as well as mod_proxy and some other ones that isnt included by default) 
 +
  
 ===== Compiling PHP 5 ===== ===== Compiling PHP 5 =====
Line 512: Line 571:
         --with-xml \         --with-xml \
  --with-zlib  --with-zlib
 +</code>
 +
 +
 +
 +===== Compiling Xine =====
 +
 +So we can use the remote, we need to compile our own xine so it seems that LIRC is running.
 +
 +Just grab the source off a slackware page and build the package like they do:
 +
 +<code>
 +cd /usr/local/src/
 +mkdir xine
 +cd xine
 +wget ftp://slackware.mirrors.tds.net/pub/slackware/slackware-11.0/patches/source/xine-lib/*
 +chmod 755 xine-lib.SlackBuild
 +./xine-lib.SlackBuild
 +#### gui ####
 +cd /usr/local/src/
 +mkdir xine_gui
 +cd xine_gui
 +wget ftp://slackware.mirrors.tds.net/pub/slackware/slackware-11.0/source/xap/xine-ui/*
 +chmod 755 xine-ui.SlackBuild
 +./xine-ui.SlackBuild
 +installpkg /tmp/xine-ui-0.99.4-i686-3.tgz
 </code> </code>
  
Line 545: Line 629:
   * I love this thing.  It costs $0/month to have HDTV recording to a local drive shared to the LAN.   * I love this thing.  It costs $0/month to have HDTV recording to a local drive shared to the LAN.
   * The quality of over the air ATSC HDTV is just amazing.  I never imagined it would be so clear and at such a high bitrate over a UHF antenna.   * The quality of over the air ATSC HDTV is just amazing.  I never imagined it would be so clear and at such a high bitrate over a UHF antenna.
 +
 +
 +
 +
 +
 +
 +
 +
 +====== MythTv Upgrade ======
 +
 +Since the listings went away due to the abuse of ZapToIt Labs... I have paid for the subscription to the non-profit listings, forcing an upgrade of mythtv, so I might as well document what I did to get it up and going again.
 +
 +  * BACKUP your database before you do this, i nixed my card, and now it won't find it...ARGH!
 +  * kill (killall) the running daemon on the backend and I took the front end machine to run level 3 effectively killing that machine too.
 +  * uploaded all the code to **/usr/local/src/mythtv-0.20.2** and untar it there.
 +
 +
 +**Backend:**
 +
 +<code>
 +cd mythtv-0.20.2
 +./configure --disable-audio-arts --enable-firewire --enable-proc-opt --enable-dvb  --enable-xvmc --disable-joystick-menu
 +qmake mythtv.pro
 +make
 +make install
 +mythtv-setup
 +mythfilldatabase
 +# plugins
 +./configure --enable-all --disable-festival
 +qmake mythplugins.pro
 +make install
 +#themes
 +./configure
 +make install
 +</code>
 +
 +**Frontend:**
 +<code>
 +cd mythtv-0.20.2
 +./configure
 +make
 +make install
 +# plugins
 +./configure --enable-all --disable-festival
 +qmake mythplugins.pro
 +make install
 +#themes
 +./configure
 +make install
 +</code>
myth_tv_homebrew_project.1178238192.txt.gz · Last modified: 2007/05/04 00:29 (external edit)