DVB-T kaardi installimine Ubuntus

Allikas: Traadita Wiki by Jan & Co.

DVB-T Katsetused tehtud Ubuntu 8.10 - intrepid-ga - Üsna hägus õpetus aga tööle asi läks.....

Riistvara install - variant 1

Installime Buid-essential paketi kui veel pole. Installi build-essential

sudo apt-get install build-essential

Installime Linux-header paketi kui seda veel pole. Installi linux-source

sudo apt-get install linux-headers-`uname -r` linux-source linux-source-2.6.27 
sudo apt-get install linux-headers-386

Paigaldame Mercurial Installi mercurial - Vajalik hg käsu jaoks.

sudo apt-get install mercurial

Muudame kerneli versiooni numbri viimaseks mis meil installitud.

sudo ln --symbolic --verbose /usr/src/linux-source-2.6.27 /usr/src/linux
sudo ln --symbolic --verbose /usr/src/linux-source-2.6.27 /lib/modules/$(uname -r)/source

Lingime ära

cd /lib/modules/$(uname -r)/
sudo ln --symbolic /usr/src/linux-headers-$(uname -r)/ build 

Kopeerime originaal config faili kernel source kausta

sudo cp --verbose /boot/config-2.6.28-15-generic /usr/src/linux/.config

Vaatame kas symbolic lingid ja kernel on olemas.

ls -hal /usr/src/

Veendu et kõik failid olemas.

sudo ls -hal /lib/modules/$(uname -r)/source
sudo ls -hal /lib/modules/$(uname -r)/source/drivers/media/dvb/dvb-core/dmxdev.h
sudo ls -hal /lib/modules/$(uname -r)/source/drivers/media/dvb/dvb-core/dvb_frontend.h
sudo ls -hal /lib/modules/$(uname -r)/source/drivers/media/dvb/dvb-core/dvb_demux.h
sudo ls -hal /lib/modules/$(uname -r)/source/drivers/media/dvb/dvb-core/dvb_net.h
sudo ls -hal /usr/src/linux/drivers/media/dvb/dvb-core/dmxdev.h
sudo ls -hal /usr/src/linux/drivers/media/dvb/dvb-core/dvb_frontend.h
sudo ls -hal /usr/src/linux/drivers/media/dvb/dvb-core/dvb_demux.h
sudo ls -hal /usr/src/linux/drivers/media/dvb/dvb-core/dvb_net.h

Lisame kasutaja

sudo adduser $USER video



Riistvara install - em28xx kiibiga DVB-T kaardid

Paigaldame Mercurial Installi mercurial - Vajalik hg käsu jaoks.

sudo apt-get install mercurial

Installime kerneli mooduli

sudo wget http://wiki.wifi.ee/dvbt/em28xx-new.tar.bz2
sudo tar jxvf em28xx-new.tar.bz2 
cd ~/em28xx-new/
sudo ./build.sh build
sudo ./build.sh install
sudo ./build.sh load 

Laeme draiveri

sudo modprobe em28xx card=xx
sudo modprobe em28xx-dvb


Laeme draiveri

sudo modprobe em28xx

DVB-T Vaatamissoftid

Kõigepealt paigaldame dvb-utils - vajalik kõikide järgnevate softide jaoks. Installi dvb-utils

sudo apt-get install dvb-utils

Kaffeine

Installi kaffeine

sudo apt-get install kaffeine
Etv dvbt kaffeine.png
Signaal 3 % SNR 54 % hakkab Kaffeine juba näitama isegi enamvähem.
Signaal 2 % SNR 51 % hakkab Kaffeine aga hakkima.
Kaffeine salvestab eetrit .m2t formaadis - 50 minutilise faili suurus on 3,3 GB

Kaffeine CS Plugin - Vajalik näiteks Starmani ZuumTV vaatamiseks

wget http://wiki.wifi.ee/dvbt/kaffeine-sc-plugin_0.4.0-1_i386.deb
sudo dpkg -i mtt_4.0pre-0ubuntu1~mtron1_i386.deb
rm mtt_4.0pre-0ubuntu1~mtron1_i386.deb

Xine

Installi Xine-ui

sudo apt-get install xine-ui

Kanalite skännimiseks

sudo rm ~/ee-All
wget http://wiki.wifi.ee/dvbt/ee-All
sudo scan ~/ee-All >  ~/.xine/channels.conf

Käivitame XINE

xine dvb://ETV
Xine dvbt.png

Me-TV

Installi Me-tv

sudo apt-get install me-tv

Kanalite skännimiseks

sudo rm ~/ee-All
wget http://wiki.wifi.ee/dvbt/ee-All
sudo scan ~/ee-All >  ~/.me-tv/channels.conf

Käivitame Me-TV

me-tv
Metv dvbt.png

MPlayer - Heli on aga pilti ei tule ???

Installi Mplayer

sudo apt-get install mplayer

Channel conf valmistamine

sudo rm ~/ee-All
wget http://wiki.kuusit.ee/dvbt/ee-All
sudo scan ~/ee-All >  ~/.mplayer/channels.conf

Kui tekib permissioni probleem skännimisel siis anna käsk

sudo chmod 777 ~/.mplayer/channels.conf

Kanali käivitamiseks kasutame käsku

mplayer dvb://ETV

VLC Player

Installi VLC Player

Installime VLC

sudo apt-get install vlc

Teeme silla

ls ~/ee-All | grep ee-

Skännime kanaleid

sudo rm ~/ee-All
wget http://wiki.wifi.ee/dvbt/ee-All
scan ~/ee-All -o zap | tee ~/channels.conf

Käivitame VLC

vlc ~/channels.conf
Vlc dvbt.png

Gnome DVB Deamon - EI SAANUD TÖÖLE

wget http://download.gnome.org/sources/gnome-dvb-daemon/0.1/gnome-dvb-daemon-0.1.5.tar.bz2
tar xfj gnome-dvb-daemon-0.1.5.tar.bz2
cd ~/gnome-dvb-daemon-0.1.5
./configure
--------------------- siit alates tekib viga ???
make
sudo make install

MythTV

Installime Mythtv Installi Mythtv

sudo apt-get install mythtv
Mythtv.png

MythTV probleemid - Mis esinesid minul

Mysql-s oli mul mingi jama.... tegin nii

mysql -u root -p mysql
GRANT ALL PRIVILEGES ON *.* TO 'agent'@'localhost' IDENTIFIED BY 'agent' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'mythtv'@'localhost' IDENTIFIED BY 'mythtv' WITH GRANT OPTION;

Andmebaasi ei olnudki

sudo  /home/agent/myth.rebuilddatabase.pl  --dbhost localhost --dir ~/salvestused

Teeme tabelid

mythbackend

Kadunud oli

 mythtv-backend-master

Käivitame Mythi

mythfrontend

nmap peab näitama sellist teemat

nmap localhost
3306/tcp open  mysql
6543/tcp open  mythtv
6544/tcp open  mythtv

Tundmatud vead ja TV ei käivitu

2009-03-23 02:40:53.607 GetEntryAt(-1) failed.
2009-03-23 02:40:53.612 EntryToProgram(0@Thu Jan 1 03:00:00 1970) failed to get pginfo

Mysql parameetreid

sudo gedit /etc/mysql/my.cnf

Lisame mythtv - mythtv gruppi

sudo  usermod -a -G mythtv mythtv

Teleteksti vaatamiseks

Variant 1 - Automaatne paigaldus

Tõmbame ja installime.

wget http://wiki.wifi.ee/dvbt/mtt_4.0pre-0ubuntu1~mtron1_i386.deb
sudo dpkg -i mtt_4.0pre-0ubuntu1~mtron1_i386.deb
rm  mtt_4.0pre-0ubuntu1~mtron1_i386.deb

Käivituseks käsk

mtt

Variant 2 - Käsitsi paigaldus

Ava System->Administration->Software sources-> pane linnuke rea "Community Maintained open source software (universe)" ette

sudo apt-get update
sudo apt-get install libzvbi-common libzvbi0
wget http://mtrons.googlepages.com/mtt.tar.gz
tar xvzf mtt.tar.gz
cd mtt
./mtt

Teeme channel.conf faili Töölauale - Katsetamiseks - Eesti DVB-T kanalid

sudo rm ~/ee-All
wget http://wiki.kuusit.ee/dvbt/ee-All
sudo scan ~/ee-All >  ~/Desktop/channels.conf

Teeme channel.conf faili Töölauale - Katsetamiseks - Läti DVB-T kanalid

sudo rm ~/lv-All
wget http://wiki.kuusit.ee/dvbt/lv-All
sudo scan ~/lv-All >  ~/Desktop/channels.conf

Saatekava tarkvara

Installi xmltv

sudo apt-get install xmltv

Välised lingid

DVB-T -> IPTV-ks

sudo apt-get install dvblast

DVBSTREAM

sudo apt-get install dvbstream 
sudo apt-get install tzap

Skännime kanaleid

sudo rm ~/ee-Valgjarve-free
wget http://wiki.kuusit.ee/dvbt/ee-Valgjarve-free
sudo scan ~/ee-Valgjarve-free >  ~/channels.conf

Mängimiseks arvutis.

sudo apt-get install mplayer
nc -u -l -p 8011 | mplayer -cache 8000 -vo xv -

Teine variant

sudo apt-get install dvb-tools dtv-scan-tables dvbstreamer vlc
sudo rm ~/ee-Valgjarve-etv
wget http://wiki.kuusit.ee/dvbt/ee-Valgjarve-etv
sudo scan ~/ee-Valgjarve-etv >  ~/channels.conf
ETV:490000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:550:730:1
Kanal 2:490000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:562:810:41
TV3:490000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:566:826:43
ETV2:490000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:561:806:2
Tallinna TV:490000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:501:601:39
printf "set udp://localhost:1234\nselectlcn 2\nfeparams\nfestatus\nstats\nlslcn\n" > ~/.dvbstreamer/dvbstreamer.conf
sudo dvbstreamer -f ~/channels.conf

Arvutis vaatamiseks

vlc udp://@localhost:1234
telnet localhost 54197

3

sudo nano ~/dvbstream.vlm
new dvbt1 broadcast enabled
setup dvbt1 input "dvb-t://"
setup dvbt1 option dvb-adapter=0
setup dvbt1 option dvb-frequency=490000000
setup dvbt1 option dvb-bandwidth=8
setup dvbt1 option programs=1,4,566,561,501
setup dvbt1 option ts-es-id-pid
setup dvbt1 output #duplicate{dst=std{
access=http,mux=ts,dst=0.0.0.0:8088/etv},select="program=550",dst=std{
access=http,mux=ts,dst=0.0.0.0:8088/k2},select="program=562",dst=std{
access=http,mux=ts,dst=0.0.0.0:8088/tv3},select="program=566",dst=std{
access=http,mux=ts,dst=0.0.0.0:8088/etv2},select="program=561",dst=std{
access=http,mux=ts,dst=0.0.0.0:8088/ttv},select="program=501"}
control dvbt1 play
cvlc -vvv --extraintf telnet --vlm-conf dvbstream.vlm

dvblast - (Toimib õpetuse järgi 01.10.2014)

sudo apt-get install dvblast
sudo rm ~/ee-Valgjarve-etv
wget http://wiki.kuusit.ee/dvbt/ee-Valgjarve-etv
sudo scan ~/ee-Valgjarve-etv >  ~/channels.conf
ETV:490000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:550:730:1
Kanal 2:490000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:562:810:41
TV3:490000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:566:826:43
ETV2:490000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:561:806:2
Tallinna TV:490000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:501:601:39
sudo nano ~/TV.cfg
;ETV
239.255.0.51:8088 1 1
;Kanal 2
239.255.0.52:8088 1 41
;TV3
239.255.0.53:8088 1 43
;ETV2
239.255.0.54:8088 1 2
;Tallinna TV
239.255.0.55:8088 1 39
sudo dvblast -a 0 -c ~/TV.cfg -f 490000000 -m qam_16 -b 8 -e
mplayer rtp://239.255.0.54:8088
rtp://239.255.0.51:8088
rtp://239.255.0.52:8088
rtp://239.255.0.53:8088
rtp://239.255.0.54:8088
rtp://239.255.0.55:8088

Proxy

wget http://sourceforge.net/projects/udpxy/files/udpxy/Chipmunk-1.0/udpxy.1.0.21-2-prod.tgz
tar -zxf udpxy.1.0.21-2-prod.tgz
cd udpxy-1.0.21-2
make
sudo make install
ifconfig 
(eth0)
sudo udpxy -p 1234 -m eth0 -S -l /var/log/udpxy.log -c 200 -R -1 -H -1
http://192.168.66.246:1234/status
http://192.168.66.246:1234/udp/239.255.0.51:8088


MumuDVB

sudo apt-get install mumudvb
sudo wget https://github.com/braice/MuMuDVB/archive/1.7.2.zip
sudo unzip 1.7.2.zip
cd MuMuDVB-1.7.2
sudo ./configure
sudo make 
sudo make install
ls /dev/dvb/
card=0
freq=490.000
bandwidth=8MHz
autoconfiguration=full
multicast=0
multicast_ipv4=0
multicast_ipv6=0
unicast=1
ip_http=0.0.0.0
port_http=8111
sudo nano dvb.conf
sudo mumudvb -d -c dvb.conf

tvheadend (pidune )

sudo apt-get install tvheadend
sudo dpkg-reconfigure tvheadend