Bug #4992

Continuity counter error // descrambler: cannot decode packets for service

Added by Ricardo Rocha 4 months ago. Updated 3 months ago.

Status:NewStart date:2018-03-07
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Descrambling
Target version:-
Found in version:HTS Tvheadend 4.3-1148~gd3fc96962 Affected Versions:

Description

I don't know if this could be still related with #4071 and with my issue http://www.streamboard.tv/oscam/ticket/4612

I am using 3 satipaxe's as source of my tvheadend and i can say they are very stable @ moment (thanks perexg).

Even with they working well i get a lot of messages like this:

2018-03-06 09:19:40.517 TS: DVB-S 30/12206.98H/CMTV: H264 #6129 Continuity counter error (total 28478)
2018-03-06 09:19:40.517 TS: DVB-S 30/12206.98H/CMTV: MPEG2AUDIO
#6130 Continuity counter error (total 4145)
2018-03-06 09:19:40.517 descrambler: cannot decode packets for service "CMTV"
2018-03-06 09:19:50.704 TS: DVB-S 30/12206.98H/CMTV: H264 #6129 Continuity counter error (total 33396)
2018-03-06 09:19:50.704 TS: DVB-S 30/12206.98H/CMTV: MPEG2AUDIO
#6130 Continuity counter error (total 4842)
2018-03-06 09:19:50.705 descrambler: cannot decode packets for service "CMTV"
2018-03-06 09:19:56.653 parser: DVB-S 30/12206.98H/CMTV: H264 @ #6129: DTS and PCR diff is very big (1441331)
2018-03-06 09:19:56.654 tsfix: transport stream H264, DTS discontinuity. DTS = 553772160, last = 552380760
2018-03-06 09:19:56.658 tsfix: transport stream MPEG2AUDIO, DTS discontinuity. DTS = 553741920, last = 552340080

i don't see CC errors increasing on satipaxe's so i guess its not a hardware or reception problem!

i also checked my oscam and tvheadend dvbapi user is 100% OK not even a single NOK, so i guess there be a problem with key exchange between tvheadend and oscam!

any ideas?

tvh.log (27.6 KB) Robert ¯\_(ツ)_/¯, 2018-03-12 21:43

tvh_debug.log (80.8 MB) Robert ¯\_(ツ)_/¯, 2018-03-14 20:12

filtered.txt Magnifier (304 KB) Ricardo Rocha, 2018-03-22 15:15

new2.log (1010 KB) Ricardo Rocha, 2018-03-22 16:49

Associated revisions

Revision 912e9a7a
Added by Jaroslav Kysela 3 months ago

descrambler: add description to descrambler configuration file, add ecmparity config item, issue #4992

History

#1 Updated by Pablo R. 4 months ago

I am talking about the same problem here: #4962

Sometimes key is not sent correct or something...

Using OSCam r11400.

#2 Updated by Pablo R. 3 months ago

I'm investigating more deeply about the problem you're reporting here, I'm experiencing something similar. It seems that sometimes descrambler does not accept the key and gives errors about 1 second (and continues?).

I have to investigate further if it is a key failure (incorrect) or really a problem of tvheadend.

#3 Updated by Ricardo Rocha 3 months ago

i changed from capmt to newcamd and i have like 1/10 of the problems i have before... running it for some days now... however with newcamd still same message time to time. Oscam reports no NOK'S on the user!

#4 Updated by Pablo R. 3 months ago

Ricardo Rocha wrote:

i changed from capmt to newcamd and i have like 1/10 of the problems i have before... running it for some days now... however with newcamd still same message time to time. Oscam reports no NOK'S on the user!

Have you tried the latest version of tvheadend with oscam? I think the initial key error that does not work is fixed.

Now I have to check the change of key that sometimes does strange things (very occasionally).

#5 Updated by Robert ¯\_(ツ)_/¯ 3 months ago

Same Problem here. I am using TVH 4.3-1155 and OSCam r11400.

The fix from https://tvheadend.org/issues/4962 makes it far better with newcamd client but from time to time the error still occurs.

Hope the tracelog helps :)

#6 Updated by Jaroslav Kysela 3 months ago

The log is incomplete (I need at least one minute before the error occurs). Also, enable DEBUG2 define in src/descrambler/descrambler.c (change #if 0 to #if 1) at the begin of the file.

#7 Updated by Robert ¯\_(ツ)_/¯ 3 months ago

New log with DEBUG2 in descrambler.c.

#8 Updated by Pablo R. 3 months ago

Robert ¯\_(ツ)_/¯ wrote:

New log with DEBUG2 in descrambler.c.

80 MB!! Looks funny hahaha.

Hope that helps :)

#9 Updated by Robert ¯\_(ツ)_/¯ 3 months ago

I hope... the WAF* is already going down ;-)

*wife acceptance factor

#10 Updated by Ricardo Rocha 3 months ago

when we are talking about that is better to solve it quicly....eheheheh!

#11 Updated by Ricardo Rocha 3 months ago

any news on this? thanks

#12 Updated by Robert ¯\_(ツ)_/¯ 3 months ago

Jep... WAF is on the lowest historical point ;)

Same Problem @ 4.3-1171

#13 Updated by Jaroslav Kysela 3 months ago

1) upgrade to latest
2) try to add this section to <CFGDIR>/descrambler file (copy the global file first from the global location or from here: https://raw.githubusercontent.com/tvheadend/tvheadend/master/data/conf/descrambler

diff --git a/data/conf/descrambler b/data/conf/descrambler
index ed0a2d72c..443539dad 100644
--- a/data/conf/descrambler
+++ b/data/conf/descrambler
@@ -29,6 +29,12 @@
       "constcw": 1
     },
     {
+      "name": "Conax",
+      "caid": "0B00",
+      "mask": "FFFF",
+      "ecmparity": "inverted" 
+    },
+    {
       "name": "PowerVu",
       "caid": "0E00",
       "multipid": 1,

#14 Updated by Ricardo Rocha 3 months ago

Jaroslav this change it's just for Robert or also to initial report?

#15 Updated by Jaroslav Kysela 3 months ago

It's for Robert. I've not seen a log from you. Those errors probably highly depend on the particular CA. You may turn off the extra TVH's logic through 'constcw' as I wrote to the config file.

#16 Updated by Robert ¯\_(ツ)_/¯ 3 months ago

should descrambler be in /home/hts/.hts/tvheadend or /usr/local/share/tvheadend/data/conf?

I put it at /home/hts/.hts/tvheadend/descrambler and compiled the 4.3-1173 version but the problem is still there.

#17 Updated by Ricardo Rocha 3 months ago

Jaroslav Kysela i didn't post any log cause i think the log from Robert will be enought for the debug purpose!

So its better to attach mine also right?

can you explain better "You may turn off the extra TVH's logic through 'constcw' as I wrote to the config file"?

#18 Updated by Jaroslav Kysela 3 months ago

No logs.

#19 Updated by Ricardo Rocha 3 months ago

Robert ¯\_(ツ)_/¯ wrote:

should descrambler be in /home/hts/.hts/tvheadend or /usr/local/share/tvheadend/data/conf?

I put it at /home/hts/.hts/tvheadend/descrambler and compiled the 4.3-1173 version but the problem is still there.

no, from my perspective you should go to the dir here you have tvheadend git cloned... them make a git pull... them apply the patch Jaroslav said and them build it and test!

Thanks

#20 Updated by Robert ¯\_(ツ)_/¯ 3 months ago

Ricardo Rocha wrote:

Robert ¯\_(ツ)_/¯ wrote:

should descrambler be in /home/hts/.hts/tvheadend or /usr/local/share/tvheadend/data/conf?

I put it at /home/hts/.hts/tvheadend/descrambler and compiled the 4.3-1173 version but the problem is still there.

no, from my perspective you should go to the dir here you have tvheadend git cloned... them make a git pull... them apply the patch Jaroslav said and them build it and test!

Thanks

Done, but the problem still exists :-/

#21 Updated by Ricardo Rocha 3 months ago

make the logs Jaroslav asked... i will be doing the same as soon as i can!

#22 Updated by Ricardo Rocha 3 months ago

Jaroslav just a small update before the log's... like i said i changed from capmt to newcamd... does those changes also apply for newcamd?

this is the messages that are always poping up:

2018-03-22 12:32:00.051 TS: DVB-S/12206.98H/SIC Caras: H264 #5977 Continuity counter error (total 1)
2018-03-22 12:32:00.051 TS: DVB-S/12206.98H/SIC Caras: MPEG2AUDIO
#5978 Continuity counter error (total 1)
2018-03-22 12:32:00.428 cwc: 127.0.0.1:22222: Got unexpected ECM reply (seqno: 61)
2018-03-22 12:32:05.993 descrambler: cannot decode packets for service "SIC Caras"
2018-03-22 12:32:56.802 TS: DVB-S/12206.98H/Porto Canal: H264 #5937 Continuity counter error (total 1)
2018-03-22 12:32:56.803 TS: DVB-S/12206.98H/Porto Canal: MPEG2AUDIO
#5938 Continuity counter error (total 1)
2018-03-22 12:33:04.327 descrambler: cannot decode packets for service "Porto Canal"
2018-03-22 12:33:06.520 TS: DVB-S/12476H/SIC Mulher: H264 #6400 Continuity counter error (total 1)
2018-03-22 12:33:06.520 TS: DVB-S/12476H/SIC Mulher: MPEG2AUDIO
#6401 Continuity counter error (total 1)
2018-03-22 12:33:11.225 descrambler: cannot decode packets for service "SIC Mulher"
2018-03-22 12:33:26.829 TS: DVB-S/12206.98H/Porto Canal: H264 #5937 Continuity counter error (total 406)
2018-03-22 12:33:26.829 TS: DVB-S/12206.98H/Porto Canal: MPEG2AUDIO
#5938 Continuity counter error (total 67)
2018-03-22 12:33:33.350 descrambler: cannot decode packets for service "Porto Canal"

Oscam user for that newcamd reports 100% OK

thanks

#23 Updated by Jaroslav Kysela 3 months ago

#24 Updated by Ricardo Rocha 3 months ago

Jaroslav Kysela wrote:

No logs.

the log attached is from version HTS Tvheadend 4.3-1166~g2e9a18678 will make a new one with changes of comment #13

as for the comment #23 should i use the last 1173 with or without the patch of #13?

Thanks

#25 Updated by Ricardo Rocha 3 months ago

here's the new log...

sorry for have so many channels forced to play at same time ... but it's easy to get those errors this way... if it's not channel x it's the channel y!!!

Thanks

#26 Updated by Jaroslav Kysela 3 months ago

It seems like that there something unexpected in the input stream and the key parity. Until fixed, you can turn off all extra queuing features using constcw (modify CAID) in the 'descrambler' config file:

diff --git a/data/conf/descrambler b/data/conf/descrambler
index 53d75a193..68864869e 100644
--- a/data/conf/descrambler
+++ b/data/conf/descrambler
@@ -29,6 +29,12 @@
       "constcw": 1
     },
     {
+      "name": "Your CA name",
+      "caid": "0700",
+      "mask": "FFFF",
+      "constcw": 1
+    },
+    {
       "name": "PowerVu",
       "caid": "0E00",

#27 Updated by Jaroslav Kysela 3 months ago

Note that you should see something like this when tvh starts, otherwise you modified the wrong file:

2018-03-23 09:47:17.163 [   INFO] descrambler: adding CAID 0700/FFFF as ConstCW interval 10000ms pc 20 ep default (Your CA name)

#28 Updated by Ricardo Rocha 3 months ago

Jaroslav Kysela wrote:

Note that you should see something like this when tvh starts, otherwise you modified the wrong file:

[...]

using constcw worked for me at least for this caid... will continue with testing and let you know if something go wrong!

#29 Updated by Robert ¯\_(ツ)_/¯ 3 months ago

Sorry for the late reply... Turning off all extra queuing features in the descrambler file worked for me.

Also available in: Atom PDF