Mythtv

From ReceptiveIT
Jump to: navigation, search

The best way to watch TV on your PC

Installing

If you don't know how, I would suggest either downloading a MythBuntu install CD, or install mythbuntu-control-centre on any Ubuntu install.


Austar

Austar is a satellite Pay TV operator in Australia. I have used a Hauppauge PVR-150 with its MPEG2 encoder to bring Austar into my MythTV installation by connecting to my Austar supplied satellite decoder.

Note to self: PVR-150 cards will flicker recording PAL if the resolution is not set to 720x576.

Decoder Info

bouquets 6 frequency 12478
transponders done symbol rate 27800
scan status 000008 polarisation Horizontal
tuner status locked f.e.c. 3/4
lnb power on lnb frequency 10700
load version 54 signal strength 66

LIRC

I had a hard time getting this to work initially. I had to create my own

Create this file in /usr/share/lirc/transmitters/austar/general.conf

begin remote

name AUSTAR_B
flags RAW_CODES
eps 25
aeps 100

ptrail 0
repeat 0 0
gap 89738


begin raw_codes

name 1
437 262 169 256 164 592
166 257 167 258 166 760
167 592 167 257 167 258
166 593 167 593 166 425
167 592 165 256 167 258
165 257 166 425 166

name 2
435 264 166 257 168 593
168 256 168 257 166 760
165 594 166 258 167 256
167 257 167 593 167 425
166 593 166 257 170 257
169 257 167 592 167

name 3
434 262 164 258 168 593
166 257 165 255 167 759
167 594 166 258 167 258
166 593 166 592 168 425
166 592 165 258 167 257
168 257 167 758 166

name 4
433 262 167 258 167 594
170 257 167 256 168 761
167 592 166 257 166 258
167 257 167 591 166 425
166 592 166 256 166 257
169 425 166 258 171

name 5
434 262 165 258 165 594
169 258 167 257 165 760
167 592 164 257 167 256
168 592 165 592 164 426
167 591 167 255 168 256
165 425 167 426 166

name 6
436 263 165 259 168 595
169 259 166 257 169 760
166 593 167 257 168 256
169 255 167 593 166 424
166 592 166 256 166 258
169 424 167 593 168

name 7
433 263 166 256 167 593
165 257 168 257 165 761
166 593 168 257 166 258
169 593 167 595 166 425
166 592 166 258 167 258
166 424 166 759 167

name 8
433 265 165 257 167 596
168 257 168 256 165 760
166 593 167 257 167 257
168 256 166 593 167 424
166 593 167 257 169 256
168 592 164 258 166

name 9
434 263 165 257 168 594
169 256 167 257 165 760
168 594 167 257 168 258
166 593 166 590 167 425
164 593 165 257 169 256
168 591 168 425 166

name 0
433 263 165 258 167 594
168 256 167 257 167 760
165 592 165 257 167 258
167 257 166 593 167 425
165 592 167 256 169 256
167 257 167 257 165

end raw_codes

end remote

Add this to the bottom of your /etc/lirc/lircd.conf file

include "/usr/share/lirc/transmitters/austar/general.conf"

The change channel script /usr/local/bin/austar.sh

#!/bin/bash

LOG="/tmp/austar.log"
REMOTE_PORT=1
REMOTE_NAME=AUSTAR_B

echo `date` - Austar ${1} >> ${LOG}

# Set IR Port
irsend SET_TRANSMITTERS ${REMOTE_PORT}

# Press each number individually
for digit in $(echo $1 | sed -e 's/./& /g'); do
  irsend --device=/dev/lircd SEND_ONCE ${REMOTE_NAME} ${digit}
  sleep 0.5
done

# This is a little hack to fix the tinny sound every 20 channel changes or so
( sleep 5; v4l2-ctl --set-audio-input 1 -d /dev/video0 > /dev/null 2>&1 ) &

Now you can execute austar.sh and change channels

>./austar.sh 101

DVB Scanning data

ACMA data

Description Signal Type Polarisation Channel Center Frequency Offset Broadcast Site
ABC Digital Vertical 56 725.5Mhz +125Khz Telstra Site - Mt Gray
SBS Digital Vertical 59 746.5Mhz +125Khz Telstra Site - Mt Gray
WIN Digital Vertical 62 767.5Mhz +125Khz WIN TV Tower - Mt Gray
PRIME (CBN) Digital Vertical 65 788.5Mhz +125Khz WIN TV Tower - Mt Gray
TEN (CTC) Digital Vertical 68 809.5Mhz 0Khz Telstra Site - Mt Gray

au-Goulburn-Rocky Hill

# Australia / Goulburn / Rocky Hill
# T freq bw fec_hi fec_lo mod transmission-mode guard-interval hierarchy
# ABC - netid (4112) tid (547) offset (125Khz)
T 725500000 7MHz 3/4 3/4 QAM64 8k 1/16 NONE

# SBS - netid (12802) tid (848) offset (125Khz)
T 746500000 7MHz 2/3 2/3 QAM64 8k 1/8 NONE

# WIN - netid (12915) tid (12922) offset (125Khz)
T 767500000 7MHz 3/4 3/4 QAM64 8k 1/16 NONE

# Prime - netid (12929) tid (2462) offset (125Khz)
T 788500000 7MHz 3/4 3/4 QAM64 8k 1/16 NONE

# TEN - netid (12812) tid (2055) offset (0Khz)
T 809500000 7MHz 3/4 3/4 QAM64 8k 1/16 NONE

Goulburn channels.conf

ABC HDTV:725500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:516:0:672
ABC1:725500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:512:650:673
ABC2:725500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:513:651:674
ABC1:725500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:512:650:675
ABC3:725500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:512:650:676
ABC DiG Radio:725500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:0:690:678
ABC DiG Jazz:725500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:0:700:679
SBS ONE:746500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:161:81:849
SBS TWO:746500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:162:83:850
SBS 3:746500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:161:81:851
SBS 4:746500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:161:81:852
SBS HD:746500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:102:103:853
SBS Radio 1:746500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:0:201:862
SBS Radio 2:746500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:0:202:863
WIN TV Canberra:767500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:33:36:1
WIN TV HD:767500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:129:0:10
GO!:767500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:50:51:2
PRIME Canberra:788500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:2740:2741:2374
PRIME HD:788500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:2740:2741:2400
PRIME View 1:788500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:2740:2741:2401
PRIME View 2:788500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:2740:2741:2402
PRIME View 3:788500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:2740:2741:2403
SC10 Canberra:809500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:353:354:2055
One HD Canberra:809500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:1711:0:2087
SC Ten:809500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:353:354:2119

Populate the transports via SQL

INSERT INTO `dtv_multiplex` VALUES (1,1,2055,12812,809500000,'0',0,'auto','v','auto','7','auto','8','auto',0,'auto','n','auto','UNDEFINED','0.35','dvb',33,'2010-03-05 22:44:21',),(6,1,2462,12929,788625000,'a',0,'auto','v','auto','7','3/4','8','1/16',0,'auto','n','3/4','UNDEFINED','0.35','dvb',33,'2010-03-06 10:34:15',),(8,1,547,4112,725625000,'a',0,'auto','v','auto','7','3/4','8','1/16',0,'auto','n','3/4','UNDEFINED','0.35','dvb',33,'2010-03-06 10:36:09',),(7,1,12922,12915,767625000,'a',0,'auto','v','auto','7','3/4','8','1/16',0,'auto','n','3/4','UNDEFINED','0.35','dvb',33,'2010-03-06 10:34:52',),(9,1,848,12802,746625000,'a',0,'auto','v','qam_64','7','2/3','a','auto',0,'qam_64','n','2/3','UNDEFINED','0.35','dvb',33,'2010-03-06 10:37:57',);