Difference between revisions of "DViCO FusionHDTV DVB-T Dual Digital 4 Installation"
m (→MythVideo) |
(→Kernel / Packages) |
||
Line 34: | Line 34: | ||
}} | }} | ||
+ | |||
+ | ===Check your DVB TV Card=== | ||
After you have a stable setup check the messages to make sure your card was detected: | After you have a stable setup check the messages to make sure your card was detected: | ||
Line 54: | Line 56: | ||
dvb-usb: DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2) successfully initialized and connected. | dvb-usb: DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2) successfully initialized and connected. | ||
− | You should also see the | + | You should also see the directory's /dev/dvb/adapter0 /dev/dvb/adapter1 |
+ | |||
+ | ===Check your CPU=== | ||
+ | |||
+ | The Atom 330 is a dual core processor with hyper-threading so you should see 4 processors: | ||
+ | |||
+ | $cat /proc/cpuinfo | ||
+ | |||
+ | The Intel Atom reports that it has multiple cores (and HyperThreading) via an ACPI message and will not fall back to another delivery mechanism (like most other platforms) if ACPI is not available. | ||
+ | |||
+ | {{Warning box | If you don't see 4 processors like I did then you will need to add th line acpi=ht to your kernel parameters temporarily. For some reason I added this to my kernel and the processors showed up but the mythtv menu was unbelievably slow. I removed it and the menu returned to normal and to my astonishment the 4 processors were still detected. It sounds a bit voodoo to me but it worked. If you need to do this you can use the following commands to add then remove the kernel parameters. | ||
+ | <pre> | ||
+ | $sudo gedit /etc/default/grub | ||
+ | Change the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to: | ||
+ | GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=ht" | ||
+ | $sudo update-grub | ||
+ | $sudo reboot | ||
+ | </pre> | ||
+ | |||
+ | If everything went well the your 4 processors should be detected using cat /proc/cpuinfo. Now try removing acpi=ht from grup using the above steps and see if the 4 processors are still available. | ||
+ | }} | ||
==Installing MythTV== | ==Installing MythTV== |
Revision as of 10:45, 22 November 2009
Contents
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: 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.
Check your DVB TV Card
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 directory's /dev/dvb/adapter0 /dev/dvb/adapter1
Check your CPU
The Atom 330 is a dual core processor with hyper-threading so you should see 4 processors:
$cat /proc/cpuinfo
The Intel Atom reports that it has multiple cores (and HyperThreading) via an ACPI message and will not fall back to another delivery mechanism (like most other platforms) if ACPI is not available.
Warning: If you don't see 4 processors like I did then you will need to add th line acpi=ht to your kernel parameters temporarily. For some reason I added this to my kernel and the processors showed up but the mythtv menu was unbelievably slow. I removed it and the menu returned to normal and to my astonishment the 4 processors were still detected. It sounds a bit voodoo to me but it worked. If you need to do this you can use the following commands to add then remove the kernel parameters.
$sudo gedit /etc/default/grub Change the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=ht" $sudo update-grub $sudo reboot
If everything went well the your 4 processors should be detected using cat /proc/cpuinfo. Now try removing acpi=ht from grup using the above steps and see if the 4 processors are still available.
Installing MythTV
- Go to: System > Administration > Synaptic - Mark all upgrades and Apply. This will take a while on your new system.
- Search "mythtv", then mark mythtv & mythplugins for installation. Yes to all and Apply.
- 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.
- Open up firefox and go to http://localhost/mythweb.
- Mythtv settings (Key and Spanner Icon top of the screen) -> TV -> Chanel Info
- 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.
- Head over to http://www.oztivo.net/twiki/bin/view/Guidedata/WebHome and Sign Up.
- 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:
- Go to Applications > Sound & Video > MythFrontend
- 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
MythVideo
The default lookup inside the mythtv frontend couldnt find some of my video art. So Instead i used Jamu which is already included for us in the myth folder.
- First copy your video files to the mythtv videos folder and then run the jamu script in interactive mode
cp All_My_Videos /var/lib/mythtv/videos /usr/share/mythtv/mythvideo/scripts/jamu.py -MIV
- Now open your frontend and go to Utilities Setup > Setup > Media Settings > Videos Settings > General Settings > Page 2/8 > Uncheck "Show Unkown File Types". This will prevent the gallery from showing your subtitle files (*.srt)
- Escape back to the Top Menu and go to Media Library > Watch Videos.
- Press <M> to bring up the internal menu and scan for changes.
- Press <I> to bring up the info panel where you can reset you metadata if something went wrong.