Wiki Home arrow MediaPortal Wiki

New Zealand Freeview and MediaPortal TV Server

Introduction

This will guide you though the setting up TV for MediaPortal

FAQ

What is MediaPortal TV Server?

MediaPortal TV Server allows TV to be received from multiple sources using multiple TV Cards and then streamed to clients (networked or local) running MediaPortal. It Provides features such as EPG (Electronic program Guide), scheduled recordings via EPG, timeshifting (the ability to re-wind, pause and fast-foward "live" TV) and the ability to receive multiple digital TV channels at the same time on a single TV card (when the channels are on the same transponder).


Why not just use the built-in TV Support in MediaPortal?

The built-in TV support is referred to as TVE2 and TV Server is referred to as TVE3; TV Server is the new version of MediaPortal's TV functionality and it provides many benefits. See the TV-Server Overview for a feature comparison. It is highly recommended that you use TV Server as there is no ongoing development in TVE2.


So I have to get another computer for this TV Server thing?

No. Normally TV Server would be installed on your main HTPC, you would install MediaPortal on this same PC. However you do have the option of adding another front end pc in another room from which you will get full TV functionality.


Components of the MediaPortal TV Server Infrastructure

This diagram shows the basic components of a MediaPortal/TV Server infrastructure

  • MediaPortal: Stable version of MediaPortal 0.2.3.0 + latest SVN Snapshot

    • The main user interface
    • Ideally displayed on a TV
    • Ideally operated purely by remote
  • TV Server: Installs and runs as a Windows system service.

    • Starts when the PC starts
    • Runs hidden in the background even when no user is logged on
    • Uses the TV Cards to Play/stream/record TV
    • Stores all of it's information in the SQL database e.g. Channels settings, schedules, EPG (Electronic program guide )
  • TV Plug-in: Plug-in module for MediaPortal to allow it to connect to the TV Server

    • Provides all TV functionality within MediaPortal, Eg scheduling, LiveTV, EPG (Electron Program Guide)

    • Installed using the same installer as TV Server
  • SQL Server: SQL server stores all data for TV Server

    • Can be either MSSQL or MySQL (MSSQL is used more often)

Let's Get Started!

Things you'll need to download

  • From the MediaPortal Site

    • MediaPortal Stable 0.2.3.0

    • Latest SVN Build snapshot
    • Latest TV Server Installer
  • From Microsoft
    • .NET frameworks 1.1, 2.0, 3.0
    • Microsoft SQL Server Express (Free)
    • Microsoft SQL Management Studio Express (Free)

Installation

I won't go into detail since there it plenty of install support already out there.

  • Install all windows updates and .NET frameworks 1.1, 2.0, 3.0
  • MediaPortal

    • Simply run through the MediaPortal 0.2.3.0 installer

    • Run the SVN snapshot installer, this will bring MediaPortal up to the latest revision

  • Install MS SQL server
    • IMPORTANT! When your asked about Authentication modes make sure you select mixed and set an "sa" password

  • Install the SQL management studio. You shouldn't need this right away but it's useful to have
  • Install TV Server along with the client plug-in

Configuration

Initial SQL server setup

Run the TV Server configuration. When you first run the config it will ask you to enter the username and password for the database, i.e Username: "sa" and the "sa" password you set when you installed MS SQL Server. To be more secure you can create a separate account on the database if you like. You will now be asked to start the "TV Service" Say yes!

In a few seconds you should see the TV Server management console. Before you go any further make sure you can see your TV Card(s) listed under TV Servers\[servername]

You should see something like this:


DVB-S (Satellite)

Freeview comes in two flavours DVB-S (satellite) and DVB-T (terrestrial UHF). We'll look at DVB-S first

First lets cover some DVB-S terms

Transponders

A satellite has many transponders. Each trasnponder transmitts on a certain frequency. Because the signal is digital the transponder can trasmit multiple channels on 1 frequencey. These channels are just streams of digital data commbined in to a singal transport stream also called a MUX. At the time of writing this Freeview uses just 2 transponders on the following frequencies:

12483 Mhz 12456 Mhz

Transponders transmit with either vertical or horizontal beams. Both of the Freeview transponders are horizontal beams.


LNBs (Low-noise block converters)

First of all get some idea of what an LNB is here:

http://en.wikipedia.org/wiki/Low-noise_block_converter

Now most important is the LOF (LOCAL OSCILLATOR FREQUENCY) :

The actual frequency of the signal that is transmitted from a satellite is very high so it can shoot through the ionosphere. In the case of Freeview the frequency is around 12Ghz or 12000Mhz or 12,000,000,000Hz!

It's very difficult to transfer such a high frequency signal through a coax cable to a receiver without encountering significant loss. This is where the LNB comes in. In simplified terms the LNB steps the frequency down.

The Amount that the frequency is stepped down is determined by the LNB's LOF. For Example an when an LNB with a LOF of 11300Mhz is hit by a satellite signal at 12483Mhz the signal it outputs will be 1183Mhz.

i.e. 12483-11300=1183

Now 1183Mhz can be sent down the cable to the receiver(DVB-S Card).

For another example, an LNB with a LOF of 10750Mhz would output a signal of 1733Mhz i.e. 12483-10750=1733


Some LNBs known as universal LNBs have 2 LOFs a low LOF(9.75Ghz) and a high LOF(10.6Ghz) these seem to be less common in New Zealand. Having 2 LOFs gives a greater range of reception. For example if the satellite transmits at 10000Mhz and you tried to use an LNB with a LOF of 10600Mhz it wouldn't work. 10000 - 10600 results in a negative number! And with a universal LNB you have you option of switching to a lower LOF as you'll see below. we'll discuss the relevance of all this a little later during configuration.

The 22Khz Tone

In DVB-S systems a 22Khz tone is often used for controlling the LNB for example in the case of the Sky Dual LNB a 22khz tone is sent to the LNB by the receiver to switch to the second LNB; that is to change satellites. In the case of universal LNBs which have 2 LOFs the 22Khz tone is used to switch between LOFs.


Now for a few of the different types of LNB you might encounter

  • The Old Sky Sharp LNB with a LOF of 11300Mhz (Many of these have been replaced with new LNBs) :

  • The new SKY Dual LNB looks similar to the above single version but it has 2 of the white circles at the front. It has a LOF of 10750Mhz. In a standard sky install the centre LNB is pointing at Optus D1 and the other is pointing at Optus D2. This gives Sky the option to fail over to Optus D2. :

  • I've seen a few of these around too; also with a LOF of 11300Mhz :

Whatever model of LNB you have you will need to know what the LOF is. If it comes to it this may mean getting up on the roof and having a look!


TV Server Transponder Configuration

To find channels on a satellite TV Server needs to know about that satellite. Satellites are made known to TV Server via an xml file and .ini files. While TV Server does come by default with a pre-set Optus D1 transponder list it can be useful to create our own. This gives us the option of scanning just the Freeview transponders rather than scanning the entire Optus D1

Edit C:\Program Files\Team MediaPortal\MediaPortal TV Server\Tuningparameters\satellites.xml and add a new satellite element as follows:


  • <satellite name="Freeview" url=""/>


Now in the same folder create a new .ini file called Freeview.ini and paste in the following:


[DVB]

1=12456,h,22500

2=12483,h,22500

Note: You will need to exit and reload the TV Server Configuration to see the new satellites.


LNB configuration and Scanning

Now we get to the fun bit; actually scanning the transponders for channels.

In TV Server configuration:

  • Expand the "TV Servers" and the [servername] node
  • Select your DVB-S card

Here you can select the satellite (transponder list) you want to scan and your LNB settings.

What we are going to Scan :

  • Sat #1 : Ticked

  • DiSEqC : None

  • Band : KU-Linear (Universal)

  • Satellite : Use either the pre-set Optus D1/B1 or use you own "Freeview" one if you created it (see transponder configuration above)

LNB Configuration

By default TV Server expects that you will be using a universal LNB with the 2 default LOFs of 9.75Ghz and 10.6Ghz. As mentioned this type LNB is not common NZ; fortunately TV Server an option to override these settings.

  • LOF1

This is the low LOF of your LNB

  • LOF2

This is the high LOF of your LNB

  • LNBSW

When trying to tune frequencies equal or higher than this: "send a 22Khz tone to the LNB to tell it to use the second LOF"


Great but what if your LNB only as 1 LOF as most in NZ seem to?

For an LNB with a LOF of 11300Mhz:

  • Override Default LNB frequencies: Ticked
  • LOF1 : 11300
  • LOF2 : 0 ( We will never use the 2nd LOF, there isn't one!)
  • LNBSW : 20000

As long as LNBSW is higher than anything you will ever try to tune then TV Server will never attempt to use the 2nd LNB. Another option would be to use the 11300 for both LOF1 and LOF2 and then set the switch to 0 meaning that we would always use LOF2; there is a potential problem with this though, some LNBs while only possessing 1 LOF still contain the switch circuitry that will respond to the 22Khz tone and switch to a non-existent LOF!


Next up click over to the "Scanning" tab and click "Scan for channels"

MediaPortal Wiki: Country Specific Informations/NewZealand/FreeviewTVE3 (last edited 2008-04-22 10:19:59 by pbb)


by team-mediaportal.com - 2008 SourceForge.net Logo