Difference between revisions of "Digitenne (Nederlands)"

From ArchWiki
Jump to: navigation, search
(instructions added for oscam)
Line 3: Line 3:
  
 
Deze pagina behandelt het decoderen van digitenne (DVB-T) in Nederland.
 
Deze pagina behandelt het decoderen van digitenne (DVB-T) in Nederland.
 +
 +
==Gebruikte hardware==
 +
Ik gebruik de volgende hardware:
 +
* PCTV NanoStick 73e SE (solo) http://linuxtv.org/wiki/index.php/Pinnacle_PCTV_nano_Stick_%2873e%29
 +
* smargo smartreader + https://www.cardwriter.nl/nl/pd1184675949.htm
 +
* Digitenne smartcard
  
 
==DVB-T ontvanger testen==
 
==DVB-T ontvanger testen==
Line 79: Line 85:
 
  status 1b | signal 0d17 | snr 0069 | ber 00000000 | unc 00001ef6 | FE_HAS_LOCK
 
  status 1b | signal 0d17 | snr 0069 | ber 00000000 | unc 00001ef6 | FE_HAS_LOCK
  
Gebruik een andere terminal om mplayer te starten:
+
Gebruik een andere terminal om mplayer te starten. Nu moet na enkele seconden Nederland 1 op het scherm verschijnen.
 
  $ mplayer /dev/dvb/adapter0/dvr0  
 
  $ mplayer /dev/dvb/adapter0/dvr0  
 
  MPlayer SVN-r33159-4.5.2 (C) 2000-2011 MPlayer Team
 
  MPlayer SVN-r33159-4.5.2 (C) 2000-2011 MPlayer Team
Line 108: Line 114:
 
  VO: [vdpau] 704x576 => 1024x576 Planar YV12  
 
  VO: [vdpau] 704x576 => 1024x576 Planar YV12  
 
  A:22383.9 V:22383.9 A-V:  0.052 ct: -0.257 569/569  4%  3% 24.6% 3 0
 
  A:22383.9 V:22383.9 A-V:  0.052 ct: -0.257 569/569  4%  3% 24.6% 3 0
 +
 +
== Cardreader ==
 +
=== Insteken cardreader ===
 +
Nadat de Smargo smartreader + in de PC wordt gestoken zal dmesg laten zien dat er een nieuwe seriële poort (ttyUSB0) is toegevoegd:
 +
$ dmesg
 +
[18014.724903] usb 2-1: new full speed USB device using uhci_hcd and address 4
 +
[18014.887673] ftdi_sio 2-1:1.0: FTDI USB Serial Device converter detected
 +
[18014.887788] usb 2-1: Detected FT232BM
 +
[18014.887794] usb 2-1: Number of endpoints 2
 +
[18014.887799] usb 2-1: Endpoint 1 MaxPacketSize 64
 +
[18014.887804] usb 2-1: Endpoint 2 MaxPacketSize 64
 +
[18014.887808] usb 2-1: Setting MaxPacketSize 64
 +
[18014.889396] ftdi_sio ttyUSB0: Unable to read latency timer: -32
 +
[18014.890893] usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0
 +
 +
=== Installeer oscam van aur ===
 +
$ wget http://aur.archlinux.org/packages/oscam/oscam.tar.gz
 +
$ tar -xf oscam.tar.gz
 +
$ cd oscam
 +
$ makepkg
 +
# pacman -U oscam-1.00-1-i686.pkg.tar.xz
 +
 +
=== Oscam configuratie ===
 +
Oscam gebruikt de volgende configuratiebestanden:
 +
==== /etc/oscam/oscam.conf ====
 +
==== /etc/oscam/oscam.server ====
 +
==== /etc/oscam/oscam.services ====
 +
==== /etc/oscam/oscam.user ====

Revision as of 05:36, 19 May 2011

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Deze pagina behandelt het decoderen van digitenne (DVB-T) in Nederland.

Gebruikte hardware

Ik gebruik de volgende hardware:

DVB-T ontvanger testen

Controle device nodes

Kijk eerst of er een DVB ontvanger aanwezig is. Onder /dev hoort de map dvb aanwezig te zijn:

$ ls -l /dev/dvb/adapter0/*
crw-rw---- 1 root video 212, 4 May 15 10:21 /dev/dvb/adapter0/demux0
crw-rw---- 1 root video 212, 5 May 15 10:21 /dev/dvb/adapter0/dvr0
crw-rw---- 1 root video 212, 3 May 15 10:21 /dev/dvb/adapter0/frontend0
crw-rw---- 1 root video 212, 7 May 15 10:21 /dev/dvb/adapter0/net0

DVB-T ontvanger testen met vlc

Gebruik nu vlc om de ontvanger te testen:

# pacman -S vlc
$vlc
Media -> Open Capture device,
Capture mode : DVB
Adapter card to tune: /dev/dvb/adapter0
DVB type: DVB-T
Transponder / multiplex frequency: 722000
Bandwidth: auto => play

Nu zal vlc alle kanalen scannnen, en na ongeveer 10 minuten het eerste beeld en/of geluid geven.

Als de permisies van /dev/dvb/adapter0 verkeerd staan zal vlc de volgende melding geven:

dvb access error: FrontEndOpen: opening device failed (Permission denied)
main input error: open of `dvb://frequency=0000' failed: (null)

Voeg dan jezelf toe aan de groep "video":

# usermod -a -G video yourusername

DVB-T ontvanger testen met tzap en mplayer

Installeer mplayer en tzap (onderdeel van linuxtv-dvb-apps)

# pacman -S linuxtv-dvb-apps mplayer

Scan nu naar de digitenne kanalen in nederland:

$ mkdir ~/.tzap
$ scan /usr/share/dvb/dvb-t/nl-All -o zap | tee ~/.tzap/channels.conf
scanning /usr/share/dvb/dvb-t/nl-All
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
initial transponder 474000000 0 1 9 3 1 3 0
initial transponder 474000000 0 2 9 3 1 3 0
>>> tune to: 474000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_1_2:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE
0x0000 0x044d: pmt_pid 0x1b62 Digitenne -- Nederland 1 (running)
0x0000 0x044e: pmt_pid 0x1b6c Digitenne -- Nederland 2 (running)
0x0000 0x044f: pmt_pid 0x1b76 Digitenne -- Nederland 3 (running)
0x0000 0x0450: pmt_pid 0x1b80 Digitenne -- TV Rijnmond (running)
0x0000 0x0457: pmt_pid 0x1bc6 Digitenne -- Radio Rijnmond (running)
0x0000 0x0458: pmt_pid 0x1bd0 Digitenne -- Radio 1 (running)
0x0000 0x0459: pmt_pid 0x1bda Digitenne -- Radio 2 (running)
0x0000 0x045a: pmt_pid 0x1be4 Digitenne -- 3FM (running)
0x0000 0x045b: pmt_pid 0x1bee Digitenne -- Radio 4 (running)
0x0000 0x045c: pmt_pid 0x1bf8 Digitenne -- Radio 5 (running)
0x0000 0x045d: pmt_pid 0x1c02 Digitenne -- Radio 6 (running)
0x0000 0x045f: pmt_pid 0x1c16 Digitenne -- FunX (running)
Network Name 'Digitenne'
>>> tune to: 482000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_1_2:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE
WARNING: >>> tuning failed!!!
...

Dit levert het bestand ~/.tzap/channels.conf op. Hierin is te zien dat Nederland 1,2 en 3 op 474 MHz zitten, en dat Discovery channel op 498MHz zit. De frekwenties zijn afhankelijk van uw locatie.

Nederland 1:474000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_1_2:FEC_1_2:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:7011:7012:1101
Nederland 2:474000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_1_2:FEC_1_2:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:7021:7022:1102
Nederland 3:474000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_1_2:FEC_1_2:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:7031:7032:1103
...
Nickelodeon:498000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:3051:3052:35
Discovery Channel:498000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:3061:3062:36
Eurosport 1:498000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:3071:3072:37

Nu kan de tuner afgestemd worden op bijvoorbeeld Nederland 1

$ tzap -a 0 -r 'Nederland 1'
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
reading channels from file '/home/cedric/.tzap/channels.conf'
tuning to 474000000 Hz
video pid 0x1b63, audio pid 0x1b64
status 1b | signal 0dbd | snr 0062 | ber 001fffff | unc 00000000 | FE_HAS_LOCK
status 1b | signal 0d83 | snr 0063 | ber 00000000 | unc 00001e81 | FE_HAS_LOCK
status 1b | signal 0d17 | snr 0069 | ber 00000000 | unc 00001ef6 | FE_HAS_LOCK

Gebruik een andere terminal om mplayer te starten. Nu moet na enkele seconden Nederland 1 op het scherm verschijnen.

$ mplayer /dev/dvb/adapter0/dvr0 
MPlayer SVN-r33159-4.5.2 (C) 2000-2011 MPlayer Team
162 audio & 359 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /dev/dvb/adapter0/dvr0.
TS file format detected.
VIDEO MPEG2(pid=7021) AUDIO MPA(pid=7022) NO SUBS (yet)!  PROGRAM N. 0
VIDEO:  MPEG2  704x576  (aspect 3)  25.000 fps  15000.0 kbps (1875.0 kbyte/s)
Load subtitles in /dev/dvb/adapter0/
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 160.0 kbit/10.42% (ratio: 20000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 704x576 => 1024x576 Planar YV12 
A:22383.9 V:22383.9 A-V:  0.052 ct: -0.257 569/569  4%  3% 24.6% 3 0

Cardreader

Insteken cardreader

Nadat de Smargo smartreader + in de PC wordt gestoken zal dmesg laten zien dat er een nieuwe seriële poort (ttyUSB0) is toegevoegd:

$ dmesg
[18014.724903] usb 2-1: new full speed USB device using uhci_hcd and address 4
[18014.887673] ftdi_sio 2-1:1.0: FTDI USB Serial Device converter detected
[18014.887788] usb 2-1: Detected FT232BM
[18014.887794] usb 2-1: Number of endpoints 2
[18014.887799] usb 2-1: Endpoint 1 MaxPacketSize 64
[18014.887804] usb 2-1: Endpoint 2 MaxPacketSize 64
[18014.887808] usb 2-1: Setting MaxPacketSize 64
[18014.889396] ftdi_sio ttyUSB0: Unable to read latency timer: -32
[18014.890893] usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0

Installeer oscam van aur

$ wget http://aur.archlinux.org/packages/oscam/oscam.tar.gz
$ tar -xf oscam.tar.gz 
$ cd oscam
$ makepkg
# pacman -U oscam-1.00-1-i686.pkg.tar.xz

Oscam configuratie

Oscam gebruikt de volgende configuratiebestanden:

/etc/oscam/oscam.conf

/etc/oscam/oscam.server

/etc/oscam/oscam.services

/etc/oscam/oscam.user