Main Menu

· Home
· FAQ
· Articles
· Submit News
· Product Reviews
· Forum / Message Board
· PVR Forum Archive
· Project Examples / User Plogs
· DIY PVR DVR HTPC Wiki
· Search BYOPVR
· Links / Directory
· Front Page RSS
· Forum Topic RSS
· Site Login
· Chat

 

 

 

Past Articles

Monday, February 05
·BeyondTV Vista Compatibility FAQ ( 4.6 coming soon ) (0)
Wednesday, January 24
·Fun with BeyondTV Skins (2)
·Broadcast HDTV quality compared (0)
·SageTV HDTV Network Extender Q2 2007 (536)
·Vidabox announces Blu-Ray, HD-DVD, CableCARD VISTA boxes (1)
Tuesday, January 16
·Recording Cable HDTV on a Mac via FIREWIRE (552)
Friday, January 12
·MythTV vs Windows Media Center Comparison (7)
·CES/MacWorld Links Galore (12)
·More Vista Media Center & ATI CableCard tuner news (7)
Monday, January 08
·ATI Announces Two CableCARD Digital Cable Tuner Cards (574)
Tuesday, January 02
·Nintendo Wii Media Center (16)
Sunday, December 24
·Happy Holidays 5% Coupon from PCAlchemy (EXPIRED) (584)
Thursday, December 21
·SageTV 6 Released (579)
·New GBPVR Release Coming Soon (?) (18)
Tuesday, December 12
·VidaBox: DualHD Media Center->Blue-ray & HD-DVD format! (3)
 Older articles

 

HowTo: Slackware Linux 9.1 MythTV Install Guide

Page: 2/3
(4203 total words in this text)
(48890 Reads)   Printer-friendly page

===Install IVTV Driver===

Download and compile the IVTV driver for the PVR-350/250 from 
http://sourceforge.net/projects/ivtv/ 
As of this writing use ivtv-0.1.9.tar.gz, don't use the CVS latest. 

**Note: As of this update 9/5/04, PVR-350 users intending to use the tv-out should use
 one of chris kennedy's ivtv drivers.  
You can get a link to his current repository by going to 

http://www.poptix.net/ivtv/current/threads.html 

and looking for a post made by chris kennedy.  

The current link to his repository should be in one of his posts.  

As of this writing, ivtv-0.1.10-pre2-ck107e appears to be a good driver, but i've only 
been using it for a short time. 

If this driver is buggy for you, try using ivtv-0.1.10-pre2-ck63p.  

It can take some time to locate this older driver on chris's site, but 
ivtv-0.1.10-pre2-ck63p worked very well for me, 
with the only problem being when the driver reloaded itself and you get a green screen
for a few seconds.  

This is much better than getting a system freeze though, which is what used to happen.  


$ tar -xzf ivtv-0.1.9.tar.gz
$ cd ivtv/utils
$ wget http://hauppauge.lightpath.net/software/pvr250/pvr250_17_21288.exe
$ su
# ./ivtvfwextract.pl pvr250_17_21288.exe
# exit
$ cp videodev2.h ../driver
$ cd ../driver
$ make
$ su
# make install
# cd ../utils
# make
# make install

If you get errors during make install from utils directory, just manually move the binaries:
# cp ivtvfbctl /usr/local/bin
# cp ivtvplay /usr/local/bin
# cp mpegindex /usr/local/bin
# cp test_ioctl /usr/local/bin

If these files are not present, then something else went wrong.  
Game Over, insert another coin and try again.  

Now its time to update /etc/modules.conf

-PVR250 users and PVR350 users not using the PVR350's tv-out, add these lines to /etc/modules.conf

alias char-major-81 videodev
alias char-major-81-0 ivtv
options tuner type=2
options msp3400 once=1 simple=1
add below ivtv msp3400 saa7115 tuner
               


-PVR350 users intending to use it's tv-out add these lines (in order) to /etc/modules.conf:

alias char-major-81 videodev
alias char-major-81-0 ivtv
options tuner type=2
options saa7127 enable_output=1 output_select=0  <----use this for composite output
options saa7127 enable_output=1 output_select=1  <----use this for s-video output
options msp3400 once=1 simple=1
add below ivtv msp3400 saa7115 saa7127 tuner
add above ivtv ivtv-fb                 


Next run depmod
# depmod -ae

Next check that your video devices have been created 

# ls -l /dev/video*

you should get something like this:
lrwxrwxrwx    1 root     root            6 Mar  9  2003 /dev/video -> video0
crwxrwxrwx    1 root     sys       81,   0 Mar  9  2003 /dev/video0
crwxrwxrwx    1 root     sys       81,   1 Mar  9  2003 /dev/video1
crwxrwxrwx    1 root     sys       81,   2 Mar  9  2003 /dev/video2
crwxrwxrwx    1 root     sys       81,   3 Mar  9  2003 /dev/video3

Lets go ahead and make sure that our mythtv user can access the device:

# chmod 777 /dev/video0

Now we need to see which device ivtv is running on

# /bin/dmesg |grep ivtv

You should see something like this:
ivtv: Found an iTVC16 based chip
tuner: probing ivtv i2c driver #0 i2c adapter [id=0x10005]
saa7114.c: starting probe for adapter ivtv i2c driver #0 (0x10005)
ivtv: Encoder revision: 0x02040011
ivtv: Registered v4l2 device, minor 0   <---The first device entry is what we're interested in
ivtv: Registered v4l2 device, minor 32
ivtv: Registered v4l2 device, minor 224 

This means ivtv is using /dev/video0

Now check that there is a symlink to /dev/video0 from /dev/video. 
(substitute the device your ivtv is using for /dev/video0)

# ls -l /dev/video

you should get something like this:

lrwxrwxrwx    1 root   root    6 Feb 29 12:51 /dev/video -> video0

If you do procede to loading the driver modules
If you don't you'll need to make a symlink.

# ln -s /dev/video0 /dev/video

Next load the driver modules

# modprobe ivtv
# modprobe ivtv-fb  <-----Only if using the PVR350's tv-out
# exit


Next lets check that your pci bus is recognizing your card:

$ /sbin/lspci -v 

You're looking for an entry something like this:

00:0d.0 Multimedia video controller: Internext Compression Inc iTVC15 MPEG-2 Encoder 
(rev 01)
        Subsystem: Hauppauge computer works Inc.: Unknown device 4000
        Flags: bus master, medium devsel, latency 64, IRQ 5
        Memory at c8000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [44] Power Management version 2


Make note of the first part, in this case 00:0d.0.  
You'll need this information later if you plan to run the MythTV interface on your 
television.  

PVR-250 users and PVR-350 users not using the PVR-350's tv-out skip on to Test 
Capturing


*PVR-350 users using PVR-350 tv-out only*

We need to determine what frame-buffer device ivtv-fb is using

$ cat /var/log/messages |grep "iTVC15 TV out"

You should get something back like this:

Mar  5 19:39:11 MythTV kernel: fb1: iTVC15 TV out frame buffer device

In this case fb1 is the frame-buffer device.
Lets make sure you myth user has permissions for it:
$ su
# chmod 777 /dev/fb1
# exit


If you're using the S-video out of the PVR-350:
$ su
# /sbin/rmmod saa7127
# /sbin/insmod saa7127 enable_output=1 output_select=1 test_image=1

If you're using the Composite TV-out:
$ su
# /sbin/rmmod saa7127
# /sbin/insmod saa7127 enable_output=1 output_select=1 test_image=1

You should see a colored bars test pattern.  If you do go ahead and unload the module:

S-Video:
# /sbin/rmmod saa7127
# /sbin/insmod saa7127 enable_output=1 output_select=1
# exit

Composite:
# /sbin/rmmod saa7127
# /sbin/insmod saa7127 enable_output=1 output_select=0
# exit



=Test Capturing=

First lets set the video standard and resolution:

For NTSC
$ /usr/bin/test_ioctl -u 0x3000
$ /usr/bin/test_ioctl -p 4
$ /usr/bin/test_ioctl -f width=720,height=480     

For PAL
$ /usr/bin/test_ioctl -u 0xff
$ /usr/bin/test_ioctl -p 4
$ /usr/bin/test_ioctl -f width=720,height=576


Ok, lets test that its working
$ cat /dev/video0 > /tmp/test.mpg  <---This will store the video in the /tmp directory as test.mpg.
                                   
You can substitute whatever directory you like:
 for instance ~/test.mpg will place it in your home directory ~/. 


If you are using a pvr-250 and get this error:
cat: /dev/video0: Input/output error 

Then try reloading the ivtv driver
 (this won't work for PVR-350 users, you'll need to reboot)
$ su
# /sbin/rmmod ivtv
# /sbin/modprobe ivtv
# exit

Now either play the file from a windows machine or lauch MPlayer if you installed it:
$ mplayer /tmp/test.mpg

If you have sound working on your computer, you should get video and sound.  

PVR250 users/PVR350 users not using tv-out can skip to the next section Installing Lirc.


PVR-350's users should now test the tv-out:

$ ivtvfbctl /dev/fb1 -noglobalalpha -localalpha
$ dd if=/dev/video0 of=/dev/video16 bs=64k  (control -c to stop)

If you're video has a bunch of horizontal lines through it try this:

$ ivtvfbctl /dev/fb1 -alpha -on -globalalpha -nolocalalpha
$ dd if=/dev/video0 of=/dev/video16 bs=64k

If you just get a black/blank screen, you're /dev/video16 probably wasn't created 
correctly.  This has happened to me almost everytime i've installed ivtv.  Try this:


$ su
# rm /dev/video16 
# mknod /dev/video16 c 81 16
# chmod 777 /dev/video16
# exit
$ dd if=/dev/video0 of=/dev/video16 bs=64k

You should now get video and sound on your tv. If you're not, refer to the IVTV FAQ 

here: http://ivtv.writeme.ch/tiki-view_faq.php?faqId=1 

If everything is working, restore the alpha settings:

$ ivtvfbctl /dev/fb0 -globalalpha -nolocalalpha



===Install Lirc===

These instructions are for those using the Hauppauge PVR-250/350 remote.

Download and compile the latest lirc from 
http://lirc.sourceforge.net/software/snapshots/  
In this case lirc-0.7.0pre2.tar.bz2

$ tar -xjvf lirc-0.7.0pre2.tar.bz2
$ cd lirc-0.7.0pre2
$ su
# ./setup.sh

-Choose 1 - driver configuration
-Choose 5 - TV card
-Select f - Hauppauge TV card
-Choose 3 - Save configuration & run Configuration 

# make
# make install

Add the following lines to your /etc/modules.conf

alias char-major-61 lirc_i2c
add above ivtv lirc_dev lirc_i2c

For reference, this is what my complete modules.conf looks like:

alias char-major-81 videodev
alias char-major-81-0 ivtv
alias char-major-61 lirc_i2c
options tuner type=2
options saa7127 enable_output=1 output_select=0
options msp3400 once=1 simple=1
add below ivtv msp3400 saa7115 saa7127 tuner
add above ivtv ivtv-fb
add above ivtv lirc_dev lirc_i2c


Next build dependencies
# depmod -ae

Now lets load the lirc modules:

# modprobe lirc_dev 
# modprobe lirc_i2c
# lircd
# exit


now lets check that the appropriate devices were created

$ ls -l /dev/lirc*

You should get 2 devices looking something like this: 

crw-r--r--    1 root     root      61,   0 Mar 15 18:36 /dev/lirc
srw-rw-rw-    1 root     root            0 Mar 15 18:49 /dev/lircd=

Now lets copy the lirc config over to /etc

First cd into your ivtv/utils directory

From there:

$ cp lircd-g.conf /etc/lircd.conf

===Install MythTV===

Download and compile the latest MythTV.  In this case mythtv-0.15.tar.bz2

Extract the MythTV source:

$ tar -xjf mythtv-0.15.tar.bz2
$ cd mythtv-0.15

We'll need to enable native lirc support by editing settings.pro

# Native lirc support
#CONFIG += using_lirc        <-----uncomment this line
#LIRC_LIBS = -llirc_client   <-----uncomment this line.

Now lets build MythtTV

It should now look like this:

# Native lirc support
CONFIG += using_lirc        
LIRC_LIBS = -llirc_client

Now it's time to compile MythTV:

$ ./configure
$ qmake mythtv.pro
$ make
$ su
# make install
# exit

Now lets setup the initial database:

$ cd database
$ mysql -u root < mc.sql


Previous Previous (1/3)    Next (3/3) Next

[ Back to Guides & How To's | Sections index ]

Erik Pettersen's startup blog TrafficMindr Predictive Traffic Wake Up ServiceSpecial Education Lawyer Child Advocate Attorney | Attorney Christina Ghio | Buscares: Busca Trabajo en Argentina drivel | planetjay | MegaRad | UI | JukeBox | Build PVR Homebrew | tech | mamecab | EFF Broadcast Flag page