DViCO FusionHDTV DVB-T Dual Digital 4 Installation

From MythTV Official Wiki
Revision as of 14:32, 21 November 2009 by Moloth (talk | contribs) (Getting the Oztivo Guide Data)

Jump to: navigation, search

Ubuntu 9.10 Installation

This documentation is my working notes for installing the DViCO FusionHDTV DVB-T Dual Digital 4 onto an Ubuntu 9.10 (Karmic Koala) Distribution.

Hardware

I bought the following Setup on 20/11/2009 from http://www.gamedude.com.au. I dislike them because you have to wait so long in line to purchase and after sales service sucks but they do have a good selection of cases: An alternate source is http://www.umart.com.au but not as many cases.

  • TV Card - DVico FusionHDTV DualDigital 4 Low profile - $149
  • Micro ATX Motherboard - Foxconn 45csx Intel Atom 330 DualCore CPU Video Sound - $119
  • Case - 65x265x300mm - AYWUN MD-100 Black Mirror Front Mini ITX Case External Power - $89
  • Memory - TeamElite 2gig DDR2 800Mhz PC2 6400 CL5 - $59
  • HardDrive - Samsung 1TB Sata-2 32meg Cache - $105
  • DVD Burner - SONY SLIM Internal DVD-RW Drive BLACK 8x DVD+/-RW SATA - $79
  • MOLEX TO SATA POWER + DATA CABLE 15CM - $12
  • TOTAL - $612

The case only has 1 sata power connector and comes with very short sata cables not long enough to reach the hard drive. Which is why I bough the Molex->Sata Power+Sata Data adapter.

Kernel / Packages

Warning.png Warning: After installing Ubuntu Karmic and logging into the gnome desktop the system suddenly froze. I suspect this is because of the intel graphics driver. After a bit of googling I found this solution:

After you log in hit: Ctrl-Alt-F1 to take you to a terminal before it freezes. Then log in to the terminal and type:

#killall compiz compiz.real

Hit Ctrl-Alt-F7 to take you back to the altered gnome desktop. Open up a terminal and type

$metacity --replace

The problem is intel driver not behaving nicely with compiz.

After you have a stable setup check the messages to make sure your card was detected:

#dmesg | grep -i dvb
dvb-usb: found a 'DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2)' in warm state.
dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
DVB: registering new adapter (DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2))
DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)...
input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:1e.0/0000:01:02.2/usb2/2-1/input/input5
dvb-usb: schedule remote query interval to 100 msecs.
dvb-usb: DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2) successfully initialized and connected.
dvb-usb: found a 'DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2)' in warm state.
dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
DVB: registering new adapter (DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2))
DVB: registering adapter 1 frontend 0 (DiBcom 7000PC)...
input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:1e.0/0000:01:02.2/usb2/2-2/input/input6
dvb-usb: schedule remote query interval to 100 msecs.
dvb-usb: DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2) successfully initialized and connected.

You should also see the directorys /dev/dvb/adapter0 /dev/dvb/adapter1

Installing MythTV

  1. Go to: System > Administration > Synaptic - Mark all upgrades and Apply. This will take a while on your new system.
  2. Search "mythtv", then mark mythtv & mythplugins for installation. Yes to all and Apply.
  3. Give your mysql database a root password when asked.

Set up Myth TV

This is my quick and dirty setup. Leave the defaults for everything else (ie Next.. Next.. etc Finish).

  • Run mythtv-setup (My screen stayed blank - so hit the up arrow after it starts to prompt it to refresh)
  • Go into General > On the third page:
TV Format=PAL-BG
Chanel Frequency Table=Australia
XML Time Offset=Auto
  • Go into Capture Card > New Capture Card
Card Type=DVB DVT Capture Card (3.x)
DVB Device Number=/dev/dvb/adapter0/frontend0

New Capture Card (for your second receiver)

Card Type=DVB DVT Capture Card (3.x)
DVB Device Number=/dev/dvb/adapter1/frontend0
  • Go into Video Sources > New Video Source
Video Source Name=vs1
XMLTV Listings Grabber=No Grabber (we will use our own later!)
Channel Frequency Table=Default
  • Go Into Input connections > [DVB:/dev/dvb/adapter0/frontend0](DVBInput)->(None)
Video Source=vs1
Press Scan For Channels

You should see all your channels being found. When it is finished -> Next -> Finish. Now do the second input > [DVB:/dev/dvb/adapter1/frontend0](DVBInput)->(None)

Video Source=vs1
(You wont have to scan for chanels the second time -> Next -> Finish

Getting Your Australian Channel Listings

Most of the guides have recommended Shepherd however whilst providing good information this thing is a slug and will take ages to complete.

My personal preference is to use Oztivo. Oztivo is 100x faster than shepherd but doesn't provide extra indepth guide information. (Like looking up IMDB for movie information).

The following will give you a step by guide to setting up the Oztivo Guide.

Mapping the Channels

Firstly we need to set up our mapping from our guide data to our channels we found in our last step. Myth found 22 channels but a lot of those channels are repeated this is why we give the same xmltvid to the channels that are repeated. We can also remove visibility of those repeated channels if we desire.

  1. Open up firefox and go to http://localhost/mythweb.
  2. Mythtv settings (Key and Spanner Icon top of the screen) -> TV -> Chanel Info
  3. Enter in your xmltvid and new names:
xmltvid  ch#   callsign      name    Visibility
10-2     1     ONE HD       ONE HD   Yes
2-1      2     ABC1         ABC      Yes
3-1      3     SBS ONE      SBS      Yes
7-1      7     7 Digital    7        Yes
9-1      9     Nine Digital 9        Yes
10-1     10    TEN Digital  TEN      Yes
10-2     11    ONE HD       ONE HD   Yes
10-2     12    ONE Digital  ONE      Yes
2-1      20    ABC HDTV     ABC HD   Yes
2-2      21    ABC1         ABC 2    Yes
2-1      22    ABC2         ABC      Yes    
2-1      23    ABC3         ABC      Yes
3-1      30    SBS HD       SBS HD   No  (no Signal)
3-1      32    SBS TWO      SBS      Yes
3-2      33    SBS 3        SBS NEWS Yes
3-1      34    SBS 4        SBS      Yes
7-1      70    7 HD Digital 7 HD     Yes
7-1      71    7 Digital 1  7        Yes
7-2      72    7TWO         7TWO     Yes
7-1      73    7 Digital 3  7        Yes
9-1      90    Nine HD      9 HD     Yes
9-2      99    GO!          GO!      Yes

Getting the Oztivo Guide Data

Background: The old method was to get your channels that you listed in xml format. However oztivo was having too much bandwidth/computational issues and decided to make their xml data static instead of dynamically generated. Unfortunately this makes getting the data a little more complicated than before. Luckily for us Auric had made a script to get the data.

  1. Head over to http://www.oztivo.net/twiki/bin/view/Guidedata/WebHome and Sign Up.
  2. Download the program, get the support modules and configure it:
 $cd /usr/bin
 $sudo wget http://web.aanet.com.au/~auric/files2/tv_grab_oztivo
 $sudo apt-get install libxmltv-perl libconfig-general-perl libxml-simple-perl libemail-mime-perl
 $sudp chmod 755 tv_grab_oztivo
 $cd
 $tv_grab_oztivo --configure

Now go through the configuration skipping the first question and changing your path to the downloaded oztivo files:

Do you have a tv_grab_au or tv_grab_au_reg xmltv config file?
If so enter FULL path to where it is ?
oztivo username? Your_Sign_Up_Username
oztivo password? Your_Sign_Up_Password
Enter FULL path of directory to store downloaded oztivo files in? [/home/mythtv/.xmltv/sharedir] /home/bob/.xmltv

When you get to the xmltvid section place in the xmltvid from your mappings for the channel you want to download. eg 7TWO becomes 7-2:

*snip*
xmltvid for 7CEN,Seven Central? 
xmltvid for 7TWO,7TWO? 7-2
xmltvid for A-PAC,Australia's Public Affairs Channel?
*snip*

Finally it should spit out the following:

Added the following channels
7TWO        7-2                              7TWO                       Yes
ABC-Qld     2-1                              ABC Qld                    Yes
ABC2        2-2                              ABC2                       Yes
GO          9-2                              GO!                        Yes
Nine-Qld    9-1                              Nine Qld                   Yes
One-Qld     10-2                             One QLD                    Yes
SBS-Qld     3-1                              SBS Qld                    Yes
SBSTWO-Qld  3-2                              SBS TWO QLD                Yes
Seven-Bris  7-1                              Seven Qld                  Yes
Ten-Qld     10-1                             Ten Brisbane               Yes
OK or start again? [OK|again] OK

Time to test out the script

$tv_grab_oztivo --mythfilldatabase 1 --output /tmp/oztivo.xml

That should probably take about 3 minutes. Check out your program guides:

  1. Go to Applications > Sound & Video > MythFrontend
  2. Manage Recordings > Schedule Recordings > Program Guide

If everything looks good we will add this to our crontab:

crontab -e

Add this line to the crontab. This will start the job at 3:36am.

36 03 * * * /usr/bin/tv_grab_oztivo --mythfilldatabase 1 --output /tmp/oztivo.xmltv