Difference between revisions of "User:Harald"

From MythTV Official Wiki
Jump to: navigation, search
Line 1: Line 1:
 
My system is a Mythtv pc installed with Fedora Core 6 following this howto [http://www.wilsonet.com/mythtv/fcmyth.php]. I use the Technotrend Premium DVB-C 2300 Hybrid dvb-c card
 
My system is a Mythtv pc installed with Fedora Core 6 following this howto [http://www.wilsonet.com/mythtv/fcmyth.php]. I use the Technotrend Premium DVB-C 2300 Hybrid dvb-c card
[http://www.linuxtv.org/wiki/index.php/Use_cases#Grimstad_Cable_TV_.5B1.5D]bought from Dvb shop in Germany [http://www.dvbshop.net/index.php/cat/c17_Premium-PCI.html].  
+
[http://www.linuxtv.org/wiki/index.php/Use_cases#Grimstad_Cable_TV_.5B1.5D]bought from Dvb shop in Germany [http://www.dvbshop.net/index.php/cat/c17_Premium-PCI.html. This Wiki is a howto for Norwegian dvb-c broadcasting (cable), but some part are general for DVB broadcasting with satelite or terrestial. I have used Mythtv with analog tuner card (PVR-350) some time now, but after I moved to dvb-c card the quality from the tv broadcast is much better.   
  
 
== DVB-C Installation ==
 
== DVB-C Installation ==

Revision as of 11:25, 11 April 2007

My system is a Mythtv pc installed with Fedora Core 6 following this howto [1]. I use the Technotrend Premium DVB-C 2300 Hybrid dvb-c card [2]bought from Dvb shop in Germany [http://www.dvbshop.net/index.php/cat/c17_Premium-PCI.html. This Wiki is a howto for Norwegian dvb-c broadcasting (cable), but some part are general for DVB broadcasting with satelite or terrestial. I have used Mythtv with analog tuner card (PVR-350) some time now, but after I moved to dvb-c card the quality from the tv broadcast is much better.

DVB-C Installation

The Linux 2.6 kernel had already support for Technotrend Premium DVB-C 2300 so the card was autodetected after first time boot. The firmware for the card was not in place so you must download the correct dvb-ttpci-01.fw-2622 (or newer) firmware file from this place [3]. Place this file in the hotplug directory /lib/firmware and rename to dvb-ttpci-01.fw. Change the permission on the file. After a reboot you should get some file in /dev/dvb/adapter0/

Using Fedora, assume root privileges then install the dvb utilities with

  # yum install dvb-apps


Scanning for channels

Scan will need some idea of where to start searching; for this reasons it takes a file for your location as a starting point. Therefore, you need to find channel information for your locality. Again, the location where they are installed may vary. In the following examples, the directory is /usr/share/doc/dvb-utils/examples/scan/dvb-t/; other installations also use /usr/share/doc/dvb-apps-1.1.1 or /usr/local/share/dvb/scan/dvb-t/. DVB-S users should use the folders /usr/share/doc/dvb-utils/examples/scan/dvb-s/, /usr/share/doc/dvb-apps-1.1.1 or /usr/local/share/dvb/scan/dvb-s/. In each case, the name of the file you're looking for is of the form cc-Ttttt, where cc is a two-letter country abbreviation, and Ttttt is the name of the location of the transmitter. So in Adelaide, Australia, you'd look for a file called au-Adelaide; the following example relates to Oxford in the United Kingdom.

I live in Norway and use Grimstad cabeltv. I did not find any channel information file I could use. But I find one for Norwegian UPC which I first take a copy of and then edited it. I got the correct frequency setting, QAM and so on from the cable box Grimstad cabeltv has delivered me.

[mythtv@mythpc ~]$ cat no-oslo-UPC
# no-oslo-UPC (cable)
C 410000000 6875000 NONE QAM64
C 418000000 6875000 NONE QAM64
C 426000000 6875000 NONE QAM64
C 442000000 6875000 NONE QAM64
C 450000000 6875000 NONE QAM64
C 458000000 6875000 NONE QAM64
C 466000000 6875000 NONE QAM64
C 474000000 6875000 NONE QAM64
C 482000000 6875000 NONE QAM64
C 490000000 6875000 NONE QAM64
C 498000000 6875000 NONE QAM64  

After I have edited the file no-oslo-UPC I did a scan.

 $ /usr/bin/dvbscan /home/mythtv/no-oslo-UPC

This should produce output saying "WARNING: >>> tuning failed!!!" if a signal was not found on that particular frequency. Eventually, a list of services found should be displayed. Here is a sample list:

dumping lists (7 services)
NRK mP3:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:0:706:1515
NRK Stortinget:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:0:705:1514
NRK Sami Radio:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:0:49:1510
NRK2:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:525:47:1502
NRK Klassisk:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:0:703:1507
NRK P3:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:0:702:1505
NRK P2:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:0:701:1504
NRK P1:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:0:35:1503
NRK1 sorlandet:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:512:640:3507
ZTV Norway:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:2161:2162:2160
TV3 Norge:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:1111:1112:1110

This is a list with both radio and tv channels. You have both encrypted and unencrypted channels her also.

Saving to channels.conf

Next try to create a "channels.conf", a file in a hidden (dotted) directory off your "home" directory. I make a directory called .czap because I shall use czap to tune in the channels. Czap is only for cable broadcasting, then you have tzap for terrestial and then szap for satelite.

 $ mkdir ~/.czap
 $ /usr/bin/dvbscan /home/mythtv/no-oslo-UPC > ~/.czap/channels.conf

Next display the contents of the channels.conf file to make sure the file creation proceeded correctly

 $ cat ~/.czap/channels.conf

Verifing channel tuning

Then you can try to tune in one of the channels:

 $ /usr/bin/czap  -r -c ~/.czap/channels.conf "ZTV Norway"

which in turn displays lines similar to (terminate with Ctrl-C)

 using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
 tuning to 177028615 Hz
 status 1f | signal 0000 | snr ff28 | ber 00000000 | unc 00000000 | FE_HAS_LOCK
 ... (repeated output) ...

Adding channels to database

Importing channels.conf

Editing channels in Mythweb

Importing EPG data with XMLTV

=== Importing EPG from tv_grab_dvb [4]