Hi,
i can't get working vdr-1.7.22 in my "mips box" based on openwrt. the VDR not able to get configuration from some files.
root@dvb:/media# vdr -Pxineliboutput -c /media vdr: error while reading '/media/sources.conf' vdr: error while reading '/media/channels.conf' vdr: error while reading '/media/remote.conf'
vdr: [1606] VDR version 1.7.22 started vdr: [1606] codeset is 'ASCII' - unknown vdr: [1606] found 28 locales in /usr/share/vdr/locale vdr: [1606] loading plugin: /usr/lib/vdr/plugins/libvdr-xineliboutput.so.1.7.22 vdr: [1606] loading /media/setup.conf vdr: [1606] loading /media/sources.conf vdr: [1606] ERROR: error in /media/sources.conf, line 1 vdr: [1606] loading /media/channels.conf vdr: [1606] ERROR: error in /media/channels.conf, line 1 vdr: [1606] loading /media/timers.conf vdr: [1606] loading /media/svdrphosts.conf vdr: [1606] loading /media/remote.conf vdr: [1606] ERROR: error in /media/remote.conf, line 52 vdr: [1608] video directory scanner thread started (pid=1606, tid=1608) vdr: [1608] video directory scanner thread ended (pid=1606, tid=1608) vdr: [1607] video directory scanner thread started (pid=1606, tid=1607) vdr: [1607] video directory scanner thread ended (pid=1606, tid=1607) vdr: [1606] reading EPG data from /media/video/epg.data vdr: [1606] registered source parameters for 'A - ATSC' vdr: [1606] registered source parameters for 'C - DVB-C' vdr: [1606] registered source parameters for 'S - DVB-S' vdr: [1606] registered source parameters for 'T - DVB-T' vdr: [1606] probing /dev/dvb/adapter0/frontend0 vdr: [1606] creating cDvbDevice vdr: [1606] new device number 1 vdr: [1606] frontend 0/0 provides DVB-S2 with QPSK ("Conexant CX24116/CX24118") kernel: tbsqboxs2: tbsqboxs2_set_voltage 0 vdr: [1606] found 1 DVB device vdr: [1606] initializing plugin: xineliboutput (1.0.90-cvs): X11/xine-lib output plugin vdr: [1606] new device number 9
--- sources.conf ------- S19.2E Astra ------------------------
--- channels.conf ------ NIXE SD:12460:hC34M2O0S0:S19.2E:27500:3311=2:3312=deu@3:0:0:764:133:5:0 ------------------------
is the codeset problem ?
the mime encoding of channels.conf and sources.conf is "us-ascii"
any idea how fix this ?
Thanks.
1) I forgot to report that vdr is compiled with flowing patch:
Index: vdr-1.7.22/libsi/si.c =================================================================== --- vdr-1.7.22.orig/libsi/si.c 2011-03-22 12:19:25.694769064 +0100 +++ vdr-1.7.22/libsi/si.c 2011-03-22 12:20:07.526770314 +0100 @@ -381,7 +381,7 @@ if (SystemCharacterTable) { iconv_t cd = iconv_open(SystemCharacterTable, fromCode); if (cd != (iconv_t)-1) { - char *fromPtr = (char *)from; + const char *fromPtr = from; while (fromLength > 0 && toLength > 1) { if (iconv(cd, &fromPtr, &fromLength, &to, &toLength) == size_t(-1)) { if (errno == EILSEQ) { Index: vdr-1.7.22/tools.c =================================================================== --- vdr-1.7.22.orig/tools.c 2011-03-22 12:17:47.022769064 +0100 +++ vdr-1.7.22/tools.c 2011-03-22 12:19:17.290769404 +0100 @@ -818,7 +818,7 @@ const char *cCharSetConv::Convert(const char *From, char *To, size_t ToLength) { if (cd != (iconv_t)-1 && From && *From) { - char *FromPtr = (char *)From; + const char *FromPtr = From; size_t FromLength = strlen(From); char *ToPtr = To; if (!ToPtr) {
2) and libiconv-full-1.11.1 with this patch: http://pastebin.com/Sug25Edd iconv.h here :http://pastebin.com/67wpbrtW
Thanks.
debug using strace:
stat64(0xb67818, 0x7f939de8) = 0 stat64(0xb67818, 0x7f939de8) = 0 access("/media/setup.conf", F_OK) = 0 gettid() = 1609 time([1326035707]) = 1326035707 open("/etc/TZ", O_RDONLY) = 4 read(4, "CET-1CEST-2,M3.5.0/02:00:00,M10."..., 68) = 45 close(4) = 0 send(3, "<11>Jan 8 16:15:07 vdr: [1609] "..., 58, MSG_NOSIGNAL) = 58 open("/media/setup.conf", O_RDONLY|O_LARGEFILE) = 4 ioctl(4, TIOCNXCL, 0x7f939de8) = -1 ENOTTY (Inappropriate ioctl for device) read(4, "AntiAlias = 1\nAudioLanguages = f"..., 4096) = 4096 brk(0xb6b000) = 0xb6b000 brk(0xb6c000) = 0xb6c000 brk(0xb6d000) = 0xb6d000 read(4, "xineliboutput.OSD.DvbSubtitles ="..., 4096) = 1333 brk(0xb6e000) = 0xb6e000 read(4, "", 4096) = 0 close(4) = 0 gettid() = 1609 time([1326035707]) = 1326035707 open("/etc/TZ", O_RDONLY) = 4 read(4, "CET-1CEST-2,M3.5.0/02:00:00,M10."..., 68) = 45 close(4) = 0 send(3, "<11>Jan 8 16:15:07 vdr: [1609] "..., 88, MSG_NOSIGNAL) = 88 access("/media/sources.conf", F_OK) = 0 gettid() = 1609 time([1326035707]) = 1326035707 open("/etc/TZ", O_RDONLY) = 4 read(4, "CET-1CEST-2,M3.5.0/02:00:00,M10."..., 68) = 45 close(4) = 0 send(3, "<11>Jan 8 16:15:07 vdr: [1609] "..., 60, MSG_NOSIGNAL) = 60 open("/media/sources.conf", O_RDONLY|O_LARGEFILE) = 4 ioctl(4, TIOCNXCL, 0x7f939e28) = -1 ENOTTY (Inappropriate ioctl for device) read(4, "S19.0E ASTRA\n", 4096) = 13 gettid() = 1609 time([1326035707]) = 1326035707 open("/etc/TZ", O_RDONLY) = 5 read(5, "CET-1CEST-2,M3.5.0/02:00:00,M10."..., 68) = 45 close(5) = 0 send(3, "<11>Jan 8 16:15:07 vdr: [1609] "..., 76, MSG_NOSIGNAL) = 76 read(4, "", 4096) = 0 close(4) = 0 write(2, "vdr: error while reading '", 26vdr: error while reading ') = 26 write(2, "/media/sources.conf", 19/media/sources.conf) = 19 write(2, "'\n", 2' ) = 2 access("/media/diseqc.conf", F_OK) = -1 ENOENT (No such file or directory) access("/media/scr.conf", F_OK) = -1 ENOENT (No such file or directory) access("/media/channels.conf", F_OK) = 0 gettid() = 1609 time([1326035707]) = 1326035707 open("/etc/TZ", O_RDONLY) = 4 read(4, "CET-1CEST-2,M3.5.0/02:00:00,M10."..., 68) = 45 close(4) = 0
Thanks.