Penguin
Blame: FreeViewMythTvSetup
EditPageHistoryDiffInfoLikePages
Annotated edit history of FreeViewMythTvSetup version 18, including all changes. View license author blame.
Rev Author # Line
18 GerardSharp 1 FreeView is the new consortium of TV and radio providers, providing digital service by [DVB-S] on the Optus D1 satellite. [FreeView|http://freeviewnz.tv/]
2 There is also a DVB-T service over UHF.
9 CraigBox 3
18 GerardSharp 4 MythTv supports DVB, and there are a number of DVB devices that are supported under [Linux]. There are some tricks to setting this up, but we'll cover them all below. I have installed all the software below on [Ubuntu] Edgy (6.10). It does not cover the basic MythTv installation, which you are assumed to have done already. If not, the [Ubuntu guide|https://help.ubuntu.com/community/MythTV] is very straightforward.<br>
5 DVB-T is also covered over in [FreeViewHDMythTvNotes].
9 CraigBox 6
7 !! Hardware and connectivity
8
15 CriggieCriggie 9 Get a DVB card. The ~TechniSat ~SkyStar 2 satellite used to be $139 for a serial remote or $145 for a USB remote on Trade Me from [an importer|http://www.trademe.co.nz/Members/Listings.aspx?member=1094847], who lives in Te Awamutu, and is a thoroughly nice bloke. Sadly he hasn't had any for ages.
10
17 CriggieCriggie 11 The [Technotrend S-1401|http://nicegear.co.nz/dvb-cards/technotrend-s1401-dvbs-card] is currently $125 from nicegear (another thoroughly nice bloke) along with a number of other Linux supported [DVB cards|http://nicegear.co.nz/dvb-cards].
9 CraigBox 12
13 I installed the card and didn't have to do anything else. Check <tt>lsmod</tt> for <tt>b2c2_flexcop_pci</tt>; if it's not there, modprobe it, and add it to <tt>/etc/modules</tt> so it will load at boot.
14
12 SimonGreen 15 Now, connect it to your Sky dish, or other satellite dish pointed at Optus D1. The device at the end of the arm off the dish, that focuses the beam, is called an LNB. Since August 2007, Freeview and Sky Digital uses horizontal polarisation. You can use a splitter and connect to both the DVB-S card and Sky Digital at the same time.
9 CraigBox 16
17 At this point it is assumed you have your DVB-S card connected to the satellite. Now we can test this.
17 CriggieCriggie 18
19 !! Aligning Dish
20
21 A sky dish is perfect for DVB-S and should be already aimed at the Optus D1 satellite. But if you're installing a new one then remember a rooftop can be dangerous. If you're unsure just use the services of a dish installer.
22
23 Your pole mount must be vertical and stable. A 60 cm dish is considered the minimum, but should work fine. Larger dishes make rain-fade less likely, but catch more wind. Note, offset/oval dishes look like they're pointing the wrong angle - believe the scale on the mounting not your eye.
24
25 While you're up there - note the LO frequency of the LNB. Should be written on a sticker. Mine's 10.75 GHz but there are other common values like 11.3GHz.
26
27 Depending on where you are in the country, the angle and direction of the dish changes. Calculate the good values at [www.dishpointer.com|www.dishpointer.com] or look up a table like [Freeview Shop|http://www.freeviewshop.co.nz/install-instructions-i-21.html].
28
29 Hamilton is a magnetic bearing of 316 degrees and an elevation of 43.4 degrees.
30 Christchurch is 318.7 and 38.2 degrees elevation.
31
32 The LNB and satellite finder gauges need power to run - this is provided by the card/set top box. Should be 18V DC.
33 Some cards provide power all the time, like the old SkyStar. Other cards only provide power while recording, so you need to run <tt>dvbtune</tt> while aiming the dish. Most finders light up with power and make squealy noises when they get signal.
34
35 Set the elevation and direction as accurately as possible (remember compasses are affected by iron and most rooftops are steel, so use the google map at dishpointer.com or get a bearing while you're on the ground)
36
37 Then from behind, swing the dish to the left. Optus D1 is the first satellite you should come to. Once the direction is at maximum signal strength, tweak up the elevation using the same method. Then rotate the LNB angle and see if it helps. Then check them all again, and repeat until there's no improvement. You want the best possible signal.
38
39 Finally tighten all bolts and cable tie the signal lead down securely. Then use sealant around anything that could leak.
40
9 CraigBox 41
42 !! Testing DVB
43
44 You can skip this step if you're game, and go straight to MythTV installation.
45
46 Install some packages: <tt>apt-get install dvbsnoop dvbtune dvb-utils</tt>
47
17 CriggieCriggie 48 The parameter for frequency is in kilohertz and needs to be calculated depending on your LNB. You did note the LO frequency of your LNB? If not go check.
49
50 TVNZ transponder is 12.483 GHz which is 12,483MHz then subtract your LNB's LO in MHz (10,750MHz for me) returns 1,733Mhz.
51 So I'd use <tt>dvbtune -f 1733000 -s 22500 -p h -m</tt>
52
53 We now need to tune to a LNB frequency. Let's test connecting to the TVNZ transponder at 12,483 KHz.
54 <tt>dvbtune -f 1183000 -s 22500 -p h -m</tt> (for a 11.3 GHz LNB)
55 <tt>dvbtune -f 1733000 -s 22500 -p h -m</tt> (for a 10.75 GHz LNB)
9 CraigBox 56
57
58 Your output should resemble this:
59
60 <verbatim>
61 tuning DVB-S to L-Band:0, Pol:H Srate=22500000, 22kHz=off
62 ERROR setting tone
63 : Invalid argument
64 polling....
65 Getting frontend event
66 FE_STATUS:
67 polling....
68 Getting frontend event
69 FE_STATUS: FE_HAS_SIGNAL FE_HAS_LOCK FE_HAS_CARRIER FE_HAS_VITERBI FE_HAS_SYNC
70 Bit error rate: 147
71 Signal strength: 51001
72 SNR: 52971
73 FE_STATUS: FE_HAS_SIGNAL FE_HAS_LOCK FE_HAS_CARRIER FE_HAS_VITERBI FE_HAS_SYNC
74 Signal=50823, Verror=0, SNR=52983dB, BlockErrors=0, (S|L|C|V|SY|)
75 Signal=50931, Verror=0, SNR=53001dB, BlockErrors=0, (S|L|C|V|SY|)
76 </verbatim>
17 CriggieCriggie 77
9 CraigBox 78
79 If you don't get scrolling <tt>Signal=</tt> lines, you might have a newer LNB with a different offset (designed for pointing at two satellites at once). Try <tt>dvbtune -f 1733000 -s 22500 -p h -m</tt>. Follow the "New LNB" instructions paths below.
12 SimonGreen 80
81 If you have a really new Sky LNB, you may need to add <tt>-tone 0</tt> to the dvbtune arguments.
17 CriggieCriggie 82
83
84 Output like this means no signal, so your dish is misaligned or you're using the wrong LNB LO Frequency, or your cable is damaged or some other physical problem.
85 <verbatim>
86 FE_STATUS: FE_HAS_SIGNAL FE_HAS_CARRIER
87 polling....
88 polling....
89 ^C
90 </verbatim>
91
9 CraigBox 92
93 If you don't get this going, there is a lot more information at [the PVR Geek wiki|http://pvr.geek.nz/w/index.php/DVB-S_Setup].
94
95 Now, run the tuner, and background it:
96
17 CriggieCriggie 97 <tt>dvbtune -f 1183000 -s 22500 -p h -m 2>/dev/null &</tt> (__rnewer 10.75 GHz LNB__: substitute 1733000 for 1183000)
9 CraigBox 98
99 Scan for channels:
100
101 <pre>
102 root@lounge:~# scan -c -U
103 using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
104 0x0000 0x0401: pmt_pid 0x010a Maori Television Service -- Maori TV (running)
105 0x0000 0x040b: pmt_pid 0x010d Television New Zealand -- TVONE (running)
106 0x0000 0x040c: pmt_pid 0x010e Television New Zealand -- TV2 (running)
107 0x0000 0x040d: pmt_pid 0x010f TVNZ -- Reserved 6 (starts soon)
108 0x0000 0x040e: pmt_pid 0x0110 TVNZ -- Reserved 7 (???)
109 0x0000 0x076d: pmt_pid 0x0111 TVNZ -- Reserved 5 (pausing)
110 0x0000 0x076e: pmt_pid 0x010c TVNZ -- Reserved 4 (starts soon)
111 0x0000 0x076f: pmt_pid 0x0112 TVNZ -- Reserved 3 (not running)
112 0x0000 0x0770: pmt_pid 0x010b Television New Zealand -- Test - TVNZ WIDE (running)
113 0x0000 0x0771: pmt_pid 0x0000 Television New Zealand -- New Channel Test (running)
114 0x0000 0x6640: pmt_pid 0x0101 Television New Zealand -- SSU-ZW (running)
115 dumping lists (11 services)
116 Maori TV (0x0401) 01: PCR 0x1ffe V 0x0202 A 0x028c (eng)
117 TVONE (0x040b) 01: PCR 0x1ffe V 0x0203 A 0x028d (eng) TT 0x0243
118 TV2 (0x040c) 01: PCR 0x1ffe V 0x0204 A 0x028e (eng) TT 0x0244
119 Reserved 6 (0x040d) 01: PCR 0x1ffe V 0x0205 A 0x028f (eng) TT 0x0243
120 Reserved 7 (0x040e) 01: PCR 0x1ffe V 0x0206 A 0x0290 (eng) TT 0x0244
121 Reserved 5 (0x076d) 01: PCR 0x1ffe V 0x0201 A 0x028b (eng)
122 Reserved 4 (0x076e) 01: PCR 0x1ffe V 0x0207 A 0x0291 (eng)
123 Reserved 3 (0x076f) 01: PCR 0x1ffe V 0x0208 A 0x0292 (eng)
124 Test - TVNZ WIDE (0x0770) 01: PCR 0x1ffe V 0x0200 A 0x028a (eng)
125 SSU-ZW (0x6640) 0c:
126 New Channel Test (0x0771) 01:
127 Done.
128 </pre>
129
17 CriggieCriggie 130 __Note__: on some distros, <tt>scan</tt> is called <tt>dvbscan</tt>. This is the case on [Gentoo], where the package containing dvbscan is <tt>media-tv/linuxtv-dvb-apps</tt>. In [Debian] they're packaged in <tt> dvb-apps dvbsnoop dvbstream dvbtune</tt>.
9 CraigBox 131
132 You have now got a list of all the channels on this transponder. Freeview has other transponders - check [Lyngsat's Optus D1 page|http://www.lyngsat.com/optusd1.html] for information.
133
134 Assuming you've got this far, there's one final test. Foreground the dvbtune task and kill it.
135
136 Now run <tt>dvbstream -f 1183 -s 22500 -p h -o 512 650 | mplayer -</tt> (__newer LNB__: substitute 1733 for 1183)
137
14 IanMcDonald 138 You should now be watching the TVNZ Widescreen test (currently all Stargate SG-1, all the time). (NOTE: TVNZ Widescreen is not active at the moment)
9 CraigBox 139
140 !!Adding your channels to MythTV
141
142 Stop the MythTV backend, if it's running, and run mythtv-setup.
143
144 ! Capture card
145
146 Add a new capture card of type "DVB DTV capture card (v3.x)". Select DiSEqC, and enter some details about your LNB - for a single-location Sky LNB, you will want to set to Custom, set type Standard (Voltage), and set LNB LOF Low (MHz) to 11300 (__newer LNB__: 10750). If this doesn't work for you, you will have to look at the LNB settings on [the PVR Geek wiki|http://pvr.geek.nz/w/index.php/DVB-S_Setup].
147
148 Remember you have to click Finish, go back to the Capture card screen, and hit Finish again, to save your LNB settings.
149
150 ! Video source
151
152 Create a new video source. Name it "DVB". For the XMLTV listings grabber, select "Transmitted guide only (EIT)". This will allow you to get guide data directly from the satellite. Click Finish.
153
154 In the future (MythTV 0.21) you can use any XMLTV grabber in your path - nice.net.nz/epg has a grabber that has had some post-processing done to a post-processed guide downloaded from the internet, with some more information, but this will work for now.
155
156 ! Input connections
157
158 This section maps capture cards to video sources. Select [DVB:0], and connect it to the DVB video source you just created.
159
160 Now, you can automatically tune channels from the satellite. Click "Scan for channels". Your scan type should remain "Full Scan (tuned)". Add the frequencies for the Freeview transponders, one at a time (in HZ) and click Next:
161
162 <?plugin OldStyleTable border||=0
163 | __Transponder__ | __Frequency__ | __Symbol rate__
164 | TVNZ | 12483000 | 22500000
165 | ~CanWest/Other | 12456000 | 22500000
166 ?>
167
10 CraigBox 168 These were found at [Lyngsat's Optus D1 page|http://www.lyngsat.com/optusd1.html]. Remember both need to be *horizontal polarity* - check each transport in turn.
9 CraigBox 169
170 Two sets of about 6 channels each will be detected and added.
171
172 ! Channel editor
173
174 The final step is setting up your channels. Set the channel number to whatever you would like it to be in MythTV; the callsign is what matters to DVB.
175
176 ! Guide data
177
178 Exit mythtv-setup. You're advised to check <tt>/etc/cron.daily/mythtv-backend</tt>. Restart mythtv-backend, and then as the mythtv user run <tt>mythfilldatabase</tt>
179
180 You should see a line such as:
181
182 <pre>
183 2007-05-02 19:27:11.170 Updating source #2 (DVB) with grabber eitonly
184 </pre>
185
186 Now, start the frontend or check mythweb, and you should have guide information.
11 CraigBox 187
188 !!See also
189
190 ~OpenMedia, a NZ company selling a [PVR] based on MythTv, have some guides online with screenshots:
191
192 * [How to set up a DVB-S card for Freeview DTH|http://openmedia.co.nz/openmedia/content/view/88/59/]
193 * [How to set up Freeview DTH channels in MythTV|http://openmedia.co.nz/openmedia/content/view/89/59/]

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach()