Version 2 (modified by paul, 5 years ago)

--

High Definition Television (HDTV)

This page is how use Shepherd and MythTV to its best for HDTV.

The XMLTV perl library needs patching to allow HDTV flags to be read in. Copy the follow to a file called /root/xmltv.patch.

--- /usr/share/perl5/XMLTV.pm.old	2006-01-16 06:28:22.000000000 +1000
+++ /usr/share/perl5/XMLTV.pm	2007-12-07 21:48:30.413023176 +1000
@@ -1311,6 +1311,11 @@
 	    $value =~ /^\d+:\d+$/ or warn "bad aspect ratio: $value";
 	    $r{aspect} = $value;
 	}
+	elsif ($name eq 'quality') {
+	    warn "'quality' seen twice" if defined $r{quality};
+	    $value =~ /^\d+x\d+$/ or $value =~ /^(HDTV|SDTV)$/i or warn "bad quality size or HDTV/SDTV flag: $value";
+	    $r{quality} = $value;
+    }
     }
     return \%r;
 };

Then execute:

cd /
patch -p0 < /root/xmltv.patch

Then copy the following to a file called /usr/local/bin/setMythTVflags.

XXXXXXXXXXX

After mythfilldatabase runs, /usr/local/bin/setMythTVflags needs to be executed with the xmltv output file and then a reschedule called. The easiest way is a cron job such as the following. Copy the follow contents to /etc/cron.d/setMythTVflags, changing the start time and directories.

# /etc/cron.d/setMythTVflags: crontab entry for the setMythTVflags

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# start at 8:35
35 8    * * *   root     /usr/local/bin/setMythTVflags --quiet /home/shepherd/.shepherd/output.xmltv && mythbackend -v none --resched