Saturday, April 01, 2006

mythTV



SUSE 10.0 and MythTV

Hardware used - my hardware
SUSE Linux 10.0
Netherlands, UPC

We are moving our stuff to the following wiki
CHECK THE MYTHTV WIKI
working on this http://www.mythtv.org/wiki/index.php/Opensuse_10.2
and this: http://ivtvdriver.org/index.php/Howto:Suse#openSUSE_10.2
and this: http://www.mythtv.org/wiki/index.php/XMLTV#Netherlands


CHECK OUR NEW POST ABOUT Mythtv and openSUSE 10.2 http://moosy.blogspot.com/2006/12/mythtv-on-opensuse-102.html

Install the base

Install SUSE Linux 10.0
Do not install lirc or ivtv, remove the packges if they have been selected.

Create a user "mythtv"

add the External YaST Repositorie
packages for suse linux
ftp://ftp.gwdg.de/pub/linux/misc/suser-scrute
protocol    - ftp
server name - ftp.gwdg.de (this is a mirror)
Directories - pub/linux/misc/suser-scrute/suse10

We also need to add Pacman as one of the YaST installation sources.
Intructions for Pacman here.
SUSE 10 - 32 bit packages for Mythtv are available on the opensuse site. (Thanks Simon)
oeysteio posted his rpm's here.


LCD

LCD Took some time to figure out how to use the internal LCD could be used:
used the lcdproc with the imon driver from vensky
/usr/local/sbin/LCDd

Before you load LCDd you can test it by doing a echo "test" ? /dev/lcd0



mysql

create database
create new: mysql -u root < /usr/share/doc/packages/mythtv/database/mc.sql

start all over / delete the database
delete database and start all over: (drop the database)
mysqladmin drop mythconverg

make the database multi user (more than 1 system)
$ mysql -u root mythconverg
mysql> grant all on mythconverg.* to mythtv@"%" identified by "mythtv";
mysql> flush privileges;

start all over
delete database and start all over: mysqladmin drop mythconverg

check/fix database
/usr/share/doc/packages/mythtv/contrib/optimize_mythdb.pl

backup and restore
$ mysqldump -u mythtv -pmythtv mythconverg -c > mythtv_backup.sql

To restore: (assuming that you've dropped the database)

$ mysql -u root
mysql>create database mythconverg;
mysql>exit
$ mysql -u mythtv -pmythtv mythconverg [smaller than] mythtv_backup.sql

cool backup script for mulitple days

Remote

The cooler master is a OEM version soundgraph imon inside device.
removed the standard lirc driver from suse and used the latest code from lirc.org
modprobe lirc_imod
/etc/init/lirc
irxevent

patch for 0.8 driver (mouse)





IVTV

This was the trickiest part. SuSE 10.0 comes with an old ivtv-0.3.7c. Compile the latest stable ivtv drivers from source. (howto)

The ivtv drivers for the Hauppauge WinTV PVR-500 need firmware, (the firmware for ivtv cards isn't actually stored in ROM on the cards, it needs to be loaded every time the driver loads). Firmware for the 0.4.4 drivers goes in /usr/lib/hotplug/firmware

Used this howto for SUSE Linux 10.0

ls /usr/lib/hotplug/firmware

root 234284 Sep 9 2005 dvb-ttpci-01.fw
root 234284 Sep 9 2005 dvb-ttpci-01.fw-261f
root 262144 May 13 22:06 v4l-cx2341x-dec.fw
root 376836 May 13 22:06 v4l-cx2341x-enc.fw
root 155648 May 13 22:06 v4l-cx2341x-init.mpg
root 14264 May 13 22:06 v4l-cx25840.fw


ivtv Firmware page

XMLTV and Grabber


grabber for Netherlands
http://graphics.tudelft.nl/~paul/grabber/

homedir/.xmltv/tv_grab_nl_py.conf can be edited to delete some of the channels
that you don't need.

homedir /.mythtv/channels = hold your channel graphics

Fill database
Used http://laupro.nl/tvfreq/to get a list of channels in my area and the freq.
Used PHPMyAdmin to import in mysql.
phpmyadmin
edit /srv/www/htdocs/phpMyAdmin/config.inc.php
change authentication from cookie to http
start apache, http://192.168.1.20/phpMyAdmin/



script to grab only 1 day
here



Player (mplayer and/or xine)

Increase size of your subtitles in mplayer
I use a lot of .srt files for subtitles and by default they are to small
http://www.linux4you.be/tutorials.php?id=4

Mythmovie and VOB, IFO and BUP
Mythmovie does not understand this and mplayer does not support DVD menu's.
So here is the trick:
add a file extension of "link" in mythfrontend/mythmovie
which executes the command:
# xine -V xv -r auto -pfhq `cat %s`
create a file in your movie directory called mymovie.link
in the filen whatever.link contains:
dvd:/PATH/TO/MOVIE/
search: mythtv vob files, mythtv dvd images on disk, mythtv video_ts


More

To check if your video devices are used I did the following dirty trick:

uit="yes"

# Check if device video0 is used
grep P /dev/video0
if [ $? == 0 ]
then
echo "video0=ok"
else
echo "video0=recording"
uit="no"
fi

Mythweb

The mythweb packages requires that you edit /etc/php5/php.ini. Change

include_path = "/usr/share/php"

to

include_path = ".:/usr/share/php"



# forbid access to the entire filesystem by default

Options None
AllowOverride None
Order deny,allow
Deny from all


with the following at the very end of the file


Options FollowSymLinks
AllowOverride All



.htaccess in the mythtv folder has rewritebase uncomented:

# from externally. If you do not, the web server will return 'not found'.
eg.
RewriteBase /mythweb


/etc/sysconfig/apache has:

APACHE_MODULES="access actions alias auth auth_dbm autoindex cgi dir env
expires include log_config mime negotiation setenvif ssl suexec userdir php4
php5 rewrite"


Some links

mythtv howto suse10
http://www.mythtv.org/wiki/index.php/Suse_Howto


working setup with this card


another working setup, set tuner to 57?? - wierd // no PAL

THE SUSE HOWTO




xbox

If you need a cheap Xbox to use as a frontend
http://modfun.nl/
http://www.veilingkijker.nl






Sources:


Officially Sanctioned

Community

  • MythTV on the XGL/compiz cube here


myth suse, mythtv suse 10, mythtv suse 10.0, cooler master, pvr-500, pal, mythtv netherlands, mythtv holland

No comments: