Home / Mythtv #2 Mythbuntu 9 10 on ASRock ION 330 / adding an extra Mythtv frontend

adding an extra Mythtv frontend

My old Mythtv system that had a PVR350 from Hauppauge, could have a second live as a Mythtv Frontend elsewhere in the house.

First make sure you have enabled the Master Backend for multiple frontends:
  • set Masterbackend IP (not !!)
  • set pin to 0000

Install the PC whith the Mythbuntu 9.10 install USB stick

All steps are quiet straight forward.
user: mythfrontend

The only thing that can cause you a headache is to get the PVR350 TV-OUT working.

First install the xserver-xorg-video-ivtv package. You can use the Synaptic Package manager for that.
that load the ivtvfb kernel module. Normally this would be done adding an entry in the /etc/modules file but for some reason ivtvfb won't load from there. So I added a line the the /etc/rc.local:
modprobe ivtvfb

now check which video device is the MPEG Decoder:
cat /var/log/messages | grep "decoder MPG"

In my case /dev/video16 is the Hauppauge hardware decoder

What is your frame buffer ?
To find out what frame buffer your TV-out is on:
cat /proc/fb
You will get something like:
0 cx23415 TV out
The first 'section' on the line tells you what you need to know. (Here we are interested in the '0') In this case it shows that we have /dev/fb0. If you have something like:
1 cx23415 TV out
then you would have have /dev/fb1.

What is the BusId of your tv-out?
Run the command:
lspci | grep "Internext Compression"
You should see something like this:
01:0d.0 Multimedia video controller: Internext Compression Inc iTVC15 MPEG-2 Encoder (rev 01)
again the first numbers '01:0d.0' on the line is what we're looking for. To make it a BusID we have to change it from to an appropriate value for Xorg.
There are two methods:
Add Hex Prefix
00:0b.0 --> 0x00:0x0b:0x00
Convert to Decimal
00:0b.0 --> 0:11:0

create /etc/X11/xorg.conf (I have a PAL tv so if you have NTSC or SECAM you need to modify this):
# Specific modules needed
Section "Module"
        Load "dbe"
        Load "v4l"
        Load "extmod"
        #Load "type1"
        #Load "freetype"

Section "Device"
        Identifier "Hauppauge PVR 350 iTVC15 Framebuffer"

        # the driver we installed
        Driver "ivtv"

        # frame buffer we found above
        Option "fbdev" "/dev/fb0"   
        # BusID we found with lspci converted as shown above
        BusID "PCI:0:11:0"          

        Screen 0


# these settings are generic (for TVs) but are specifically for TV

# for pal users:
Section "Monitor"
        Identifier  "TV"
        HorizSync  30-68
        VertRefresh 50-120
        Mode "720x576"
        DotClock 41.476
        HTimings 720 752 840 928
        VTimings 576 580 584 600
        Flags    "-HSync" "-VSync"

# Our PVR-350 Driver entry
Section "Screen"
        Identifier "TV Screen"
        Device "Hauppauge PVR 350 iTVC15 Framebuffer"
        Monitor "TV"
        DefaultDepth 24
        DefaultFbbpp 32
        Subsection "Display"
              Depth 24
              FbBpp 32
              Modes "720x480"

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "TV Screen"


To use the hardware encoder for playback, start mythfrontend and set:
Settings ->TV Settings -> Playback
and go to the "Use PVR-350 Output" screen. Check the box, and make sure it reads /dev/video16 (or whatever TV Out device we determined earlier).

utilities->setup->tv settings->playback->next:
on playback exit: save position and exit

     RSS of this page