DVB
GetStream
Program VLC zvládne streaming ale je velmi "nehospodárný" při práci s pamětí a má velké nároky na procesor.
A přitom jde jen o to propojit DVB-T kartu a síťovku :) To bylo jasné i Florianu Lohofovi a napsal tedy
getstream.
Na FC5 mě šel zkompilovat jen klon getstream-poempel
od Michaela Meiera a na Celeronu 300 to jede zatím bez problémů. Binárku najdete zde
getstream-poempel-praha-fc5.tgz.
Soubor channels.conf jsem musel upravit oproti tomu jak byl vygenerován protože NOVA měla před názvem mezeru a to vadilo.
dvbtga
[root@jabtv bin]# cat start-dvb-t-a.sh
#!/bin/bash
maxcon="10"
myip="10.33.6.6"
if [ -z "$1" ]
then
selcrd="0"
else
selcrd="$1"
fi
let "epgport = selcrd + 4000"
let "timport = epgport + 100"
echo "Trying to run unicast stream from ${selcrd} with maxcon=${maxcon} - EPG on port ${epgport} ${timport}"
./getstream -a ${selcrd} \
-f channels.conf \
-l ${maxcon} \
-d 1 \
-p -18:${myip}:${epgport} \
-p -20:${myip}:${timport} \
-p 1:${myip}:8081 \
-p 2:${myip}:8082 \
-p 3:${myip}:8083 \
-p 4:${myip}:8084 \
-p 5:${myip}:8085 \
-p 10:${myip}:8087 \
-p 11:${myip}:8088 \
-p 12:${myip}:8089 \
-p 13:${myip}:8090 \
-p 14:${myip}:8091 \
-p 15:${myip}:8092 \
-p 16:${myip}:8093 > getstream.log &
[root@jabtv bin]# cat channels.conf
CT SPORT:506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:1025:1041:4
CRo1-Radiozurnal :506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:0:4113:10
CRo2-Praha :506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:0:4369:11
CRo3-Vltava :506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:0:4625:12
CRo4-Radio Wave :506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:0:4881:13
CRo D-dur :506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:0:5137:14
CRo Leonardo :506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:0:5393:15
CRo Radio Cesko :506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:0:5649:16
Aplikace MHP:506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:0:0:1000
NOVA:506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:1281:1297:5
CT 1:506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:257:273:1
CT 2:506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:513:529:2
CT 24:506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:769:785:3
Stream VLC
dvbta
dvbtb
dvbtocko
dvbtprima
Instalace na FC5 a testy signálu
yum install dvb-apps-1.1.1-3.fc5
cat cz-Praha
--- begin ---
# DVB-T Praha (Prague, Czech Republic)
# T freq bw fec_hi fec_lo mod transmission-mode guard-interval hierarchy
T 506000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE
T 674000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE
T 818000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE
--- end ---
scandvb ./cz-Praha
rpm -ivh http://rpm.livna.org/livna-release-5.rpm
yum update
yum install vlc
Transaction Summary
=============================================================================
Install 66 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 42 M
chkconfig messagebus on
chkconfig avahi-daemon on
scandvb cz-Praha > ~/.tzap/channels.conf
Antena je drat strceny do zdirky
[root@jabtv input]# tzap "CT SPORT"
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
tuning to 506000000 Hz
video pid 0x0401, audio pid 0x0411
status 00 | signal 0039 | snr ff74 | ber 0000008b | unc 000000f2 |
status 1f | signal 0039 | snr ffc1 | ber 0000003e | unc 00000000 | FE_HAS_LOCK
Antena je dratovy dipol se symetrizacnim clenem
[root@jabtv ~]# tzap "CT SPORT"
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
tuning to 506000000 Hz
video pid 0x0401, audio pid 0x0411
status 00 | signal 002b | snr ffff | ber 00000000 | unc 000000c6 |
status 1f | signal 002b | snr ffff | ber 00000000 | unc 000000c6 | FE_HAS_LOCK
Soubory
dvbsnr
dvbta
dvbtb
dvbtga
dvbtocko
dvbtprima
getstream.log
channels.conf
getstream-poempel-praha-fc5.tgz
DVB-T Stream na Alixu s CentOS 5 - czfcentos
Aktualni DVB-T signal na serveru czfcentos
FE: DiBcom 7000PC (DVBT)
status SC YL | signal a921 | snr 0000 | ber 001fffff | unc 00000030 | FE_HAS_LOCK
FE: DiBcom 7000PC (DVBT)
status SCVYL | signal af04 | snr 0000 | ber 0000f1d0 | unc 00000000 | FE_HAS_LOCK
FE: DiBcom 7000PC (DVBT)
status SCVYL | signal b96f | snr 0000 | ber 00000000 | unc 00000000 | FE_HAS_LOCK