Re: [vdr] OBSOLETE chnnels

2015-05-24 Thread Marx

W dniu 2015-05-22 11:59, Klaus Schmidinger pisze:

On 22.05.2015 06:42, Marx wrote:

W dniu 2015-05-21 12:59, Klaus Schmidinger pisze:

On 20.05.2015 16:50, Marx wrote:

W dniu 2015-05-18 23:50, Klaus Schmidinger pisze:

On 18.05.2015 21:15, Marx wrote:

Hello
I've recently upgraded VDR and all my DVB-T channels has "OBSOLETE"
attached to the name. Is it already fixed?


Which version of VDR are you running?

What is the setting of "Setup/DVB/Update channels"?

Are there any log entries that might help?


I use 2.2.0-1~etobi4

UpdateChannels = 3


Please try setting this to 5.
Maybe the channels have changed in some way that '3' doesn't cover.


will it also add automatically new channels to the list? I don't want
to enable it then, because I only use subset of channels, and my
channel list shouldn't be changed.


My guess was that maybe the channels have changed in such a way that they
need to be newly added and the old ones are obsolete. You could make a
backup
copy of your current channels.conf file and restore that one after doing
this
test.


I think there is sth wrong with detection of obsolete channels. It
probably work with sattelite channels, but not with DVB-T


I also have DVB-T here and no such problems.

Please try the attached patch. It was originally made to fix a problem
with DVB-S, but maybe it also fixes your problem.
I've changed to "5" and it only slowed down things, but slowly all of 
channels became OBSOLETE again.
I didn't try patch because I use VDR from repository and "OBSOLETE" 
inside name doesn't bother me so much. Anyway thank you for help.


Marx

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] OBSOLETE chnnels

2015-05-22 Thread Klaus Schmidinger

On 22.05.2015 06:42, Marx wrote:

W dniu 2015-05-21 12:59, Klaus Schmidinger pisze:

On 20.05.2015 16:50, Marx wrote:

W dniu 2015-05-18 23:50, Klaus Schmidinger pisze:

On 18.05.2015 21:15, Marx wrote:

Hello
I've recently upgraded VDR and all my DVB-T channels has "OBSOLETE"
attached to the name. Is it already fixed?


Which version of VDR are you running?

What is the setting of "Setup/DVB/Update channels"?

Are there any log entries that might help?


I use 2.2.0-1~etobi4

UpdateChannels = 3


Please try setting this to 5.
Maybe the channels have changed in some way that '3' doesn't cover.


will it also add automatically new channels to the list? I don't want to enable 
it then, because I only use subset of channels, and my channel list shouldn't 
be changed.


My guess was that maybe the channels have changed in such a way that they
need to be newly added and the old ones are obsolete. You could make a backup
copy of your current channels.conf file and restore that one after doing this
test.


I think there is sth wrong with detection of obsolete channels. It probably 
work with sattelite channels, but not with DVB-T


I also have DVB-T here and no such problems.

Please try the attached patch. It was originally made to fix a problem
with DVB-S, but maybe it also fixes your problem.

Klaus
--- ./nit.c	2015/02/04 09:13:54	4.0
+++ ./nit.c	2015/03/16 15:22:47
@@ -19,19 +19,22 @@
 #define DVB_SYSTEM_1 0 // see also dvbdevice.c
 #define DVB_SYSTEM_2 1
 
+#define MAXNETWORKNAME Utf8BufSize(256)
+
+// Set to 'true' for debug output:
+static bool DebugNit = true;//XXX false;
+
+#define dbgnit(a...) if (DebugNit) fprintf(stderr, a)
+
 cNitFilter::cNitFilter(cSdtFilter *SdtFilter)
 {
   sdtFilter = SdtFilter;
-  numNits = 0;
-  networkId = 0;
-  Set(0x10, 0x40);  // NIT
+  Set(0x10, SI::TableIdNIT);
 }
 
 void cNitFilter::SetStatus(bool On)
 {
   cFilter::SetStatus(On);
-  numNits = 0;
-  networkId = 0;
   sectionSyncer.Reset();
 }
 
@@ -40,63 +43,28 @@
   SI::NIT nit(Data, false);
   if (!nit.CheckCRCAndParse())
  return;
-  // Some broadcasters send more than one NIT, with no apparent way of telling which
-  // one is the right one to use. This is an attempt to find the NIT that contains
-  // the transponder it was transmitted on and use only that one:
-  int ThisNIT = -1;
-  if (!networkId) {
- for (int i = 0; i < numNits; i++) {
- if (nits[i].networkId == nit.getNetworkId()) {
-if (nit.getSectionNumber() == 0) {
-   // all NITs have passed by
-   for (int j = 0; j < numNits; j++) {
-   if (nits[j].hasTransponder) {
-  networkId = nits[j].networkId;
-  //printf("taking NIT with network ID %d\n", networkId);
-  //XXX what if more than one NIT contains this transponder???
-  break;
-  }
-   }
-   if (!networkId) {
-  //printf("none of the NITs contains transponder %d\n", Transponder());
-  return;
-  }
-   }
-else {
-   ThisNIT = i;
-   break;
-   }
-}
- }
- if (!networkId && ThisNIT < 0 && numNits < MAXNITS) {
-if (nit.getSectionNumber() == 0) {
-   *nits[numNits].name = 0;
-   SI::Descriptor *d;
-   for (SI::Loop::Iterator it; (d = nit.commonDescriptors.getNext(it)); ) {
-   switch (d->getDescriptorTag()) {
- case SI::NetworkNameDescriptorTag: {
-  SI::NetworkNameDescriptor *nnd = (SI::NetworkNameDescriptor *)d;
-  nnd->name.getText(nits[numNits].name, MAXNETWORKNAME);
-  }
-  break;
- default: ;
- }
-   delete d;
-   }
-   nits[numNits].networkId = nit.getNetworkId();
-   nits[numNits].hasTransponder = false;
-   //printf("NIT[%d] %5d '%s'\n", numNits, nits[numNits].networkId, nits[numNits].name);
-   ThisNIT = numNits;
-   numNits++;
+  if (!sectionSyncer.Sync(nit.getVersionNumber(), nit.getSectionNumber(), nit.getLastSectionNumber()))
+ return;
+  if (DebugNit) {
+ char NetworkName[MAXNETWORKNAME] = "";
+ SI::Descriptor *d;
+ for (SI::Loop::Iterator it; (d = nit.commonDescriptors.getNext(it)); ) {
+ switch (d->getDescriptorTag()) {
+   case SI::NetworkNameDescriptorTag: {
+SI::NetworkNameDescriptor *nnd = (SI::NetworkNameDescriptor *)d;
+nnd->name.getText(NetworkName, MAXNETWORKNAME);
+}
+break;
+   default: ;
}
-}
+ delete d;
+ }
+ dbgnit("NIT: %02X %2d %2d %2d %s %d %d '%s'\n", Tid, nit.getVersionNumber(), nit.getSectionNumber(), nit.getLastSectionNumber(), *cSource::ToString(Source()), nit.getNetworkId(),

Re: [vdr] OBSOLETE chnnels

2015-05-21 Thread Antti Hartikainen
On Fri, May 22, 2015 at 07:50:52AM +0300, Antti Hartikainen wrote:
> On Fri, May 22, 2015 at 06:42:51AM +0200, Marx wrote:
> > W dniu 2015-05-21 12:59, Klaus Schmidinger pisze:
> > > On 20.05.2015 16:50, Marx wrote:
> > >>
> > >> I use 2.2.0-1~etobi4
> > >>
> > >> UpdateChannels = 3
> > >
> > > Please try setting this to 5.
> > > Maybe the channels have changed in some way that '3' doesn't cover.
> > >
> > will it also add automatically new channels to the list? I don't want to 
> > enable it then, because I only use subset of channels, and my channel 
> > list shouldn't be changed.
> > I think there is sth wrong with detection of obsolete channels. It 
> > probably work with sattelite channels, but not with DVB-T
> 
> Sometimes in my channel list I see DVB-T channels have marked "OBSOLETE" too, 
> but it goes away when I tune to this channel. It has never happened to 
> DVB-S(2) channels.

And I have UpdateChannels set to 5.

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] OBSOLETE chnnels

2015-05-21 Thread Antti Hartikainen
On Fri, May 22, 2015 at 06:42:51AM +0200, Marx wrote:
> W dniu 2015-05-21 12:59, Klaus Schmidinger pisze:
> > On 20.05.2015 16:50, Marx wrote:
> >> W dniu 2015-05-18 23:50, Klaus Schmidinger pisze:
> >>> On 18.05.2015 21:15, Marx wrote:
>  Hello
>  I've recently upgraded VDR and all my DVB-T channels has "OBSOLETE"
>  attached to the name. Is it already fixed?
> >>>
> >>> Which version of VDR are you running?
> >>>
> >>> What is the setting of "Setup/DVB/Update channels"?
> >>>
> >>> Are there any log entries that might help?
> >>
> >> I use 2.2.0-1~etobi4
> >>
> >> UpdateChannels = 3
> >
> > Please try setting this to 5.
> > Maybe the channels have changed in some way that '3' doesn't cover.
> >
> will it also add automatically new channels to the list? I don't want to 
> enable it then, because I only use subset of channels, and my channel 
> list shouldn't be changed.
> I think there is sth wrong with detection of obsolete channels. It 
> probably work with sattelite channels, but not with DVB-T

Sometimes in my channel list I see DVB-T channels have marked "OBSOLETE" too, 
but it goes away when I tune to this channel. It has never happened to DVB-S(2) 
channels.

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] OBSOLETE chnnels

2015-05-21 Thread Marx

W dniu 2015-05-21 12:59, Klaus Schmidinger pisze:

On 20.05.2015 16:50, Marx wrote:

W dniu 2015-05-18 23:50, Klaus Schmidinger pisze:

On 18.05.2015 21:15, Marx wrote:

Hello
I've recently upgraded VDR and all my DVB-T channels has "OBSOLETE"
attached to the name. Is it already fixed?


Which version of VDR are you running?

What is the setting of "Setup/DVB/Update channels"?

Are there any log entries that might help?


I use 2.2.0-1~etobi4

UpdateChannels = 3


Please try setting this to 5.
Maybe the channels have changed in some way that '3' doesn't cover.

will it also add automatically new channels to the list? I don't want to 
enable it then, because I only use subset of channels, and my channel 
list shouldn't be changed.
I think there is sth wrong with detection of obsolete channels. It 
probably work with sattelite channels, but not with DVB-T

Marx

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] OBSOLETE chnnels

2015-05-21 Thread Klaus Schmidinger

On 20.05.2015 16:50, Marx wrote:

W dniu 2015-05-18 23:50, Klaus Schmidinger pisze:

On 18.05.2015 21:15, Marx wrote:

Hello
I've recently upgraded VDR and all my DVB-T channels has "OBSOLETE"
attached to the name. Is it already fixed?


Which version of VDR are you running?

What is the setting of "Setup/DVB/Update channels"?

Are there any log entries that might help?


I use 2.2.0-1~etobi4

UpdateChannels = 3


Please try setting this to 5.
Maybe the channels have changed in some way that '3' doesn't cover.

Klaus



in log:

May 20 16:48:37 wuwek vdr: [10707] changing name of channel 61 from 'TVP1 
HD,;OBSOLETE EmiTel' to 'TVP1 HD OBSOLETE,;OBSOLETE OBSOLETE EmiTel'


Marx


___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] OBSOLETE chnnels

2015-05-20 Thread Marx

W dniu 2015-05-18 23:50, Klaus Schmidinger pisze:

On 18.05.2015 21:15, Marx wrote:

Hello
I've recently upgraded VDR and all my DVB-T channels has "OBSOLETE"
attached to the name. Is it already fixed?


Which version of VDR are you running?

What is the setting of "Setup/DVB/Update channels"?

Are there any log entries that might help?

I use 2.2.0-1~etobi4

UpdateChannels = 3

in log:

May 20 16:48:37 wuwek vdr: [10707] changing name of channel 61 from 
'TVP1 HD,;OBSOLETE EmiTel' to 'TVP1 HD OBSOLETE,;OBSOLETE OBSOLETE EmiTel'



Marx



___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] OBSOLETE chnnels

2015-05-20 Thread Marx

W dniu 2015-05-18 23:50, Klaus Schmidinger pisze:

On 18.05.2015 21:15, Marx wrote:

Hello
I've recently upgraded VDR and all my DVB-T channels has "OBSOLETE"
attached to the name. Is it already fixed?


Which version of VDR are you running?

What is the setting of "Setup/DVB/Update channels"?

Are there any log entries that might help?


I use 2.2.0-1~etobi4

UpdateChannels = 3

in log:

May 20 16:48:37 wuwek vdr: [10707] changing name of channel 61 from 
'TVP1 HD,;OBSOLETE EmiTel' to 'TVP1 HD OBSOLETE,;OBSOLETE OBSOLETE EmiTel'



Marx



___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] OBSOLETE chnnels

2015-05-18 Thread Klaus Schmidinger

On 18.05.2015 21:15, Marx wrote:

Hello
I've recently upgraded VDR and all my DVB-T channels has "OBSOLETE" attached to 
the name. Is it already fixed?


Which version of VDR are you running?

What is the setting of "Setup/DVB/Update channels"?

Are there any log entries that might help?

Klaus

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] OBSOLETE chnnels

2015-05-18 Thread Marx

Hello
I've recently upgraded VDR and all my DVB-T channels has "OBSOLETE" 
attached to the name. Is it already fixed?

Marx


___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr