Nachdem ich schon so oft hier im Forum unterwegs war und das EPG von TVHeadend mein XBMC ständig zum Absturz bringt, hab ich mich entschlossen nun doch zu vdr zu wechseln, um es als Backend für XBMC zu nutzen.
Verschiedene Anleitungen aus dem Netz waren bislang recht hilfreich. Ich denke auch, dass ich schon gut vorangekommen bin. Trotzdem brauche ich jemanden, der mir mal über die Einstellungen gucken würde. Bislang bekomme ich weder Bild noch EPG im XBMC und das Syslog meldet ständig Timeouts beim Einstellen von Sendern. Die Weboberfläche bekommt keine EPG-Daten und listet aber immerhin die gefundenen Sender auf.
Ausschnitt aus dem Syslog:
3di4pc vdr: [9977] switching to channel 1
Apr 22 17:59:52 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 8 0
Apr 22 17:59:52 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 0 0
Apr 22 17:59:52 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 0 1
Apr 22 17:59:52 m3di4pc vdr: [9999] receiver on device 1 thread started (pid=9977, tid=9999)
Apr 22 17:59:52 m3di4pc vdr: [9977] creating directory /var/cache/vdr/vtx/C-0-410-28106
Apr 22 17:59:52 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 8 1
Apr 22 17:59:52 m3di4pc vdr: [9977] status: cStatusTest::SetVolume 255 1
Apr 22 17:59:52 m3di4pc vdr: [9977] setting watchdog timer to 60 seconds
Apr 22 17:59:52 m3di4pc vdr: [10000] osdteletext-receiver thread started (pid=9977, tid=10000)
Apr 22 17:59:52 m3di4pc vdr: [10001] TS buffer on device 1 thread started (pid=9977, tid=10001)
Apr 22 17:59:52 m3di4pc vdr: [9977] OSD size changed to 720x576 @ 1.42222
Apr 22 17:59:52 m3di4pc vdr: [9977] status: cStatusTest::OsdChannel 1 Das Erste
Apr 22 17:59:53 m3di4pc vdr: [9994] EPGSearch: timer conflict check started
Apr 22 17:59:53 m3di4pc vdr: [9994] EPGSearch: timer conflict check finished
Apr 22 17:59:57 m3di4pc vdr: [9977] status: cStatusTest::OsdClear
Apr 22 17:59:58 m3di4pc vdr: [9977] max. latency time 1 seconds
Apr 22 18:00:01 m3di4pc vdr: [9983] frontend 0/0 timed out while tuning to channel 1, tp 410
Apr 22 18:00:05 m3di4pc vdr: [9977] connect from 127.0.0.1, port 42893 - accepted
Apr 22 18:00:05 m3di4pc vdr: [9977] closing SVDRP connection
Apr 22 18:00:41 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:00:41 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 79
Apr 22 18:00:50 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 79, tp 113
Apr 22 18:01:02 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:01:02 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 89
Apr 22 18:01:05 m3di4pc vdr: [9983] frontend 0/0 timed out while tuning to channel 1, tp 410
Apr 22 18:01:11 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 89, tp 121
Apr 22 18:01:23 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:01:23 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 72
Apr 22 18:01:32 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 72, tp 346
Apr 22 18:01:44 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:01:44 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 37
Apr 22 18:01:53 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 37, tp 354
Apr 22 18:02:05 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:02:05 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 49
Apr 22 18:02:09 m3di4pc vdr: [9983] frontend 0/0 timed out while tuning to channel 1, tp 410
Apr 22 18:02:14 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 49, tp 362
Apr 22 18:02:26 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:02:26 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 27
Apr 22 18:02:36 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 27, tp 370
Apr 22 18:02:47 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:02:47 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 35
Apr 22 18:02:56 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 35, tp 378
Apr 22 18:03:08 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:03:08 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 46
Apr 22 18:03:13 m3di4pc vdr: [9983] frontend 0/0 timed out while tuning to channel 1, tp 410
Apr 22 18:03:17 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 46, tp 386
Apr 22 18:03:29 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:03:29 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 2
Apr 22 18:03:38 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 2, tp 394
Apr 22 18:03:50 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:03:50 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 91
Apr 22 18:03:59 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 91, tp 402
Apr 22 18:04:11 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:04:11 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 1
Apr 22 18:04:17 m3di4pc vdr: [9983] frontend 0/0 timed out while tuning to channel 1, tp 410
Apr 22 18:04:21 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 1, tp 410
Apr 22 18:04:32 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:04:32 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 8
Apr 22 18:04:41 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 8, tp 426
Apr 22 18:04:53 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:04:53 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 88
Apr 22 18:05:03 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 88, tp 434
Apr 22 18:05:14 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:05:14 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 71
Apr 22 18:05:21 m3di4pc vdr: [9993] loading /var/lib/vdr/plugins/vnsiserver3/allowed_hosts.conf
Apr 22 18:05:21 m3di4pc vdr: [9993] VNSI: Client with ID 1 connected: 127.0.0.1:55884
Apr 22 18:05:21 m3di4pc vdr: [10279] VNSI: Welcome client 'XBMC Media Center' with protocol version '3'
Apr 22 18:05:21 m3di4pc vdr: [10279] VNSI-Error: Can't switch to channel 89 - PCNE
Apr 22 18:05:21 m3di4pc vdr: [9983] frontend 0/0 timed out while tuning to channel 1, tp 410
Apr 22 18:05:23 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 71, tp 442
Apr 22 18:05:25 m3di4pc vdr: [10279] VNSI: cxSocket::read: eof, connection closed
Apr 22 18:05:25 m3di4pc vdr: [9993] loading /var/lib/vdr/plugins/vnsiserver3/allowed_hosts.conf
Apr 22 18:05:25 m3di4pc vdr: [9993] VNSI: Client with ID 2 connected: 127.0.0.1:55885
Apr 22 18:05:25 m3di4pc vdr: [10285] VNSI: Welcome client 'XBMC Media Center' with protocol version '3'
Apr 22 18:05:25 m3di4pc vdr: [10285] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:05:25 m3di4pc vdr: [10285] status: cStatusTest::ChannelSwitch 1 2
Apr 22 18:05:25 m3di4pc vdr: [10286] receiver on device 2 thread started (pid=9977, tid=10286)
Apr 22 18:05:25 m3di4pc vdr: [10285] VNSI: Successfully switched to channel 2 - ZDF
Apr 22 18:05:25 m3di4pc vdr: [10288] cLiveStreamer stream processor thread started (pid=9977, tid=10288)
Apr 22 18:05:25 m3di4pc vdr: [10285] VNSI: Started streaming of channel ZDF (timeout 10 seconds)
Apr 22 18:05:25 m3di4pc vdr: [10289] TS buffer on device 2 thread started (pid=9977, tid=10289)
Apr 22 18:05:26 m3di4pc vdr: [9993] VNSI: Client with ID 1 seems to be disconnected, removing from client list
Apr 22 18:05:30 m3di4pc vdr: [10287] VNSI: VideoInput: no pat/pmt within timeout, falling back to channel pids
Apr 22 18:05:30 m3di4pc vdr: [10287] VNSI: Video Input - new pmt, attaching receiver
Apr 22 18:05:31 m3di4pc vdr: [10288] VNSI: exit streamer thread
Apr 22 18:05:31 m3di4pc vdr: [10288] cLiveStreamer stream processor thread ended (pid=9977, tid=10288)
Apr 22 18:05:31 m3di4pc vdr: [10285] status: cStatusTest::ChannelSwitch 0 0
Apr 22 18:05:31 m3di4pc vdr: [10285] status: cStatusTest::ChannelSwitch 0 1
Apr 22 18:05:31 m3di4pc vdr: [10285] VNSI: Successfully switched to channel 1 - Das Erste
Apr 22 18:05:31 m3di4pc vdr: [10291] cLiveStreamer stream processor thread started (pid=9977, tid=10291)
Apr 22 18:05:31 m3di4pc vdr: [10285] VNSI: Started streaming of channel Das Erste (timeout 10 seconds)
Apr 22 18:05:31 m3di4pc vdr: [10289] TS buffer on device 2 thread ended (pid=9977, tid=10289)
Apr 22 18:05:31 m3di4pc vdr: [10286] buffer stats: 0 (0%) used
Apr 22 18:05:31 m3di4pc vdr: [10286] receiver on device 2 thread ended (pid=9977, tid=10286)
Apr 22 18:05:35 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 2, tp 394
Apr 22 18:05:35 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:05:35 m3di4pc vdr: [9977] status: cStatusTest::ChannelSwitch 1 79
Apr 22 18:05:36 m3di4pc vdr: [10290] VNSI: VideoInput: no pat/pmt within timeout, falling back to channel pids
Apr 22 18:05:36 m3di4pc vdr: [10290] VNSI: Video Input - new pmt, attaching receiver
Apr 22 18:05:38 m3di4pc vdr: [10285] VNSI: cxSocket::read: eof, connection closed
Apr 22 18:05:38 m3di4pc vdr: [10291] VNSI: exit streamer thread
Apr 22 18:05:38 m3di4pc vdr: [10291] cLiveStreamer stream processor thread ended (pid=9977, tid=10291)
Apr 22 18:05:39 m3di4pc vdr: [9993] VNSI: Client with ID 2 seems to be disconnected, removing from client list
Apr 22 18:05:39 m3di4pc vdr: [9996] VNSI: cxSocket::read: eof, connection closed
Apr 22 18:05:40 m3di4pc vdr: [9993] VNSI: Client with ID 0 seems to be disconnected, removing from client list
Apr 22 18:05:40 m3di4pc vdr: [9983] frontend 0/0 timed out while tuning to channel 1, tp 410
Apr 22 18:05:41 m3di4pc lircd-0.9.0[1066]: removed client
Apr 22 18:05:42 m3di4pc lircd-0.9.0[1066]: accepted new client on /var/run/lirc/lircd
Apr 22 18:05:43 m3di4pc vdr: [9993] loading /var/lib/vdr/plugins/vnsiserver3/allowed_hosts.conf
Apr 22 18:05:43 m3di4pc vdr: [9993] VNSI: Client with ID 3 connected: 127.0.0.1:55887
Apr 22 18:05:43 m3di4pc vdr: [10347] VNSI: Welcome client 'XBMC Media Center' with protocol version '3'
Apr 22 18:05:44 m3di4pc vdr: [9993] VNSI: Recordings state changed (2)
Apr 22 18:05:44 m3di4pc vdr: [9993] VNSI: Requesting clients to reload recordings list
Apr 22 18:05:45 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 79, tp 113
Apr 22 18:05:49 m3di4pc vdr: [9993] loading /var/lib/vdr/plugins/vnsiserver3/allowed_hosts.conf
Apr 22 18:05:49 m3di4pc vdr: [9993] VNSI: Client with ID 4 connected: 127.0.0.1:55890
Apr 22 18:05:49 m3di4pc vdr: [10353] VNSI: Welcome client 'XBMC Media Center' with protocol version '3'
Apr 22 18:05:49 m3di4pc vdr: [10353] status: cStatusTest::ChannelSwitch 1 0
Apr 22 18:05:49 m3di4pc vdr: [10353] status: cStatusTest::ChannelSwitch 1 3
Apr 22 18:05:49 m3di4pc vdr: [10354] receiver on device 2 thread started (pid=9977, tid=10354)
Apr 22 18:05:49 m3di4pc vdr: [10353] VNSI: Successfully switched to channel 3 - 3sat
Apr 22 18:05:49 m3di4pc vdr: [10356] cLiveStreamer stream processor thread started (pid=9977, tid=10356)
Apr 22 18:05:49 m3di4pc vdr: [10353] VNSI: Started streaming of channel 3sat (timeout 10 seconds)
Apr 22 18:05:49 m3di4pc vdr: [10357] TS buffer on device 2 thread started (pid=9977, tid=10357)
Apr 22 18:05:54 m3di4pc vdr: [10355] VNSI: VideoInput: no pat/pmt within timeout, falling back to channel pids
Apr 22 18:05:54 m3di4pc vdr: [10355] VNSI: Video Input - new pmt, attaching receiver
Apr 22 18:05:58 m3di4pc vdr: [9988] frontend 1/0 timed out while tuning to channel 3, tp 394
Apr 22 18:05:59 m3di4pc vdr: [10356] VNSI: No Signal
Apr 22 18:06:23 vdr: last message repeated 2 times
Apr 22 18:06:23 m3di4pc vdr: [10353] VNSI: cxSocket::read: eof, connection closed
Apr 22 18:06:23 m3di4pc vdr: [10356] VNSI: exit streamer thread
Apr 22 18:06:23 m3di4pc vdr: [10356] cLiveStreamer stream processor thread ended (pid=9977, tid=10356)
Apr 22 18:06:23 m3di4pc vdr: [10357] TS buffer on device 2 thread ended (pid=9977, tid=10357)
Apr 22 18:06:23 m3di4pc vdr: [10354] buffer stats: 0 (0%) used
Apr 22 18:06:23 m3di4pc vdr: [10354] receiver on device 2 thread ended (pid=9977, tid=10354)
Apr 22 18:06:23 m3di4pc vdr: [9993] VNSI: Client with ID 4 seems to be disconnected, removing from client list
Apr 22 18:06:24 m3di4pc vdr: [10347] VNSI: cxSocket::read: eof, connection closed
Apr 22 18:06:24 m3di4pc vdr: [9993] VNSI: Client with ID 3 seems to be disconnected, removing from client list
Display More
Ich benutze Ubuntu 12.0.4 als 64Bit-System. Frontend ist wie gesagt XBMC mit diesem VNSI-Plugin. In dem Rechner sind zwei DVB-C-Karten von Terratec, die unter Linux voll funktionsfähig sind. Als Webinterface habe ich
mir Webadmin-AM ausgesucht. Zum Suchen nach Kanälen hab ich das Programm w_scan benutzt und zwei Dateien anlegen lassen: Einmal die /etc/vdr/channel.conf und eine zweite Textdatei initial_tuning_data.txt mit diesen Grundfrequenzen für DVBScan, das ich ja aber dank w_scan nicht brauche, soweit ich das verstanden habe.
Die Config-Dateien sehen bei mir so aus:
#
# svdrphosts This file describes a number of host addresses that
# are allowed to connect to the SVDRP port of the Video
# Disk Recorder (VDR) running on this system.
# Syntax:
#
# IP-Address[/Netmask]
#
127.0.0.1 # always accept localhost
#192.168.100.0/24 # any host on the local net
192.168.1.64/26 # Adressraum der per DHCP vom Router im lok Netzwerg vergeben wird
#204.152.189.113 # a specific host
#0.0.0.0/0 # any host on any net (USE THIS WITH CARE!)
Display More
Die Datei /etc/vdr/plugins/vnsiserver/ sieht exakt genauso aus.
Die Datei /etc/default/vdr trägt diesen Inhalt:
# /etc/default/vdr
#
# See also /usr/share/doc/vdr/README.Debian.gz
#
# Change to 1 to enable vdr's init-script
ENABLED=1
# Change this to 1 if you want vdr to be able to shutdown the
# computer
ENABLE_SHUTDOWN=0
# Options that will be passed to vdr's commandline
# for example: OPTIONS="-w 15"
OPTIONS="-w 60"
# Output video-directory:
#
VIDEO_DIR="/media/Festplattenarray/Videos/Aufnahmen"
# Run VDR as user XY (default is vdr)
#
USER=mediapc
# Default port for SVDRP (Simple Video Disk Recorder Protocol),
# the telnet like interface to control VDR. Default: 6419
SVDRP_PORT=6419
Display More
/bin/runvdr:
#!/bin/bash
# runvdr: Loads the DVB driver and runs VDR
#
# If VDR exits abnormally, the driver will be reloaded
# and VDR restarted.
#
# In order to actually use this script you need to implement
# the functions DriverLoaded(), LoadDriver() and UnloadDriver()
# and maybe adjust the VDRPRG and VDRCMD to your particular
# requirements.
#
# Since this script loads the DVB driver, it must be started
# as user 'root'. Add the option "-u username" to run VDR
# under the given user name.
#
# Any command line parameters will be passed on to the
# actual 'vdr' program.
#
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
# $Id: runvdr 1.19 2006/05/14 16:02:05 kls Exp $
VDRPRG="/usr/bin/vdr"
VDRCMD="$VDRPRG -w 60"
KILL="/usr/bin/killall -q -TERM"
# Detect whether the DVB driver is already loaded
# and return 0 if it *is* loaded, 1 if not:
function DriverLoaded()
{
return 1
}
# Load all DVB driver modules needed for your hardware:
function LoadDriver()
{
return 0
}
# Unload all DVB driver modules loaded in LoadDriver():
function UnloadDriver()
{
return 0
}
# Load driver if it hasn't been loaded already:
if ! DriverLoaded; then
LoadDriver
fi
while (true) do
eval "$VDRCMD"
if test $? -eq 0 -o $? -eq 2; then exit; fi
echo "`date` reloading DVB driver"
$KILL $VDRPRG
sleep 10
UnloadDriver
LoadDriver
echo "`date` restarting VDR"
done
Display More
Die Datei /bin/runvdr hab ich gemäß den Angaben von hier (Punkt 5) abgeändert und war mir danach aber unschlüssig, ob das Kommando nicht doch besser so bleiben sollte wie es war, weil der Beitrag schon so alt ist. Leider hatte ich kein Backup der Datei und so hab ich die Zeile in
geändert, weil das in der Datei /etc/default/vdr ja auch so steht. Ich weiß halt nicht wie die Originalzeile lautete.
Könnte mir vielleicht jemand sagen, woran es wahrscheinlich bei meinem Setup noch hakt? Ich poste auch gerne noch andere Dateien oder Logfiles. Danke im Voraus.