Project

General

Profile

Bug #1986

Continuity counter error again

Added by Daniel Kucera over 10 years ago. Updated over 9 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
DVB
Target version:
-
Start date:
2014-03-06
Due date:
% Done:

100%

Estimated time:
Found in version:
3.9.401~g68f6061-dirty
Affected Versions:

Description

Hi I'm getting plenty of Continuity counter error when I try to watch certain channels, some channels are ok.

2014-03-06 13:11:30.592 [WARNING] TS: 11727V/TV Markiza: MPEG2VIDEO #401: Continuity counter error
2014-03-06 13:11:30.666 [WARNING] TS: 11727V/TV Markiza: TELETEXT
#420: Continuity counter error
2014-03-06 13:11:31.036 [WARNING] TS: 11727V/TV Markiza: MPEG2VIDEO #401: Continuity counter error, 28 duplicate log lines suppressed
2014-03-06 13:11:31.189 [WARNING] TS: 11727V/TV Markiza: TELETEXT
#420: Continuity counter error, 3 duplicate log lines suppressed
2014-03-06 13:11:31.189 [WARNING] TS: 11727V/TV Markiza: MPEG2AUDIO #414: Continuity counter error
2014-03-06 13:11:31.700 [WARNING] TS: 11727V/TV Markiza: CA
#5005: Continuity counter error
2014-03-06 13:11:32.048 [WARNING] TS: 11727V/TV Markiza: MPEG2VIDEO #401: Continuity counter error, 75 duplicate log lines suppressed
2014-03-06 13:11:32.048 [WARNING] TS: 11727V/TV Markiza: MPEG2AUDIO
#414: Continuity counter error, 4 duplicate log lines suppressed
2014-03-06 13:11:32.424 [WARNING] TS: 11727V/TV Markiza: TELETEXT #420: Continuity counter error, 11 duplicate log lines suppressed
2014-03-06 13:11:33.059 [WARNING] TS: 11727V/TV Markiza: MPEG2VIDEO
#401: Continuity counter error, 138 duplicate log lines suppressed
2014-03-06 13:11:33.134 [WARNING] TS: 11727V/TV Markiza: TELETEXT #420: Continuity counter error, 13 duplicate log lines suppressed
2014-03-06 13:11:33.397 [WARNING] TS: 11727V/TV Markiza: MPEG2AUDIO
#414: Continuity counter error, 7 duplicate log lines suppressed
2014-03-06 13:11:34.034 [WARNING] TS: 11727V/TV Markiza: TELETEXT #420: Continuity counter error, 19 duplicate log lines suppressed
2014-03-06 13:11:34.089 [WARNING] TS: 11727V/TV Markiza: MPEG2VIDEO
#401: Continuity counter error, 183 duplicate log lines suppressed
2014-03-06 13:11:34.705 [WARNING] TS: 11727V/TV Markiza: MPEG2AUDIO #414: Continuity counter error, 10 duplicate log lines suppressed
2014-03-06 13:11:35.025 [WARNING] TS: 11727V/TV Markiza: MPEG2VIDEO
#401: Continuity counter error, 224 duplicate log lines suppressed
2014-03-06 13:11:35.184 [WARNING] TS: 11727V/TV Markiza: MPEG2AUDIO #414: Continuity counter error, 12 duplicate log lines suppressed
2014-03-06 13:11:35.267 [WARNING] TS: 11727V/TV Markiza: TELETEXT
#420: Continuity counter error, 22 duplicate log lines suppressed

In vdr I can watch this same channel without any problem so there is no HW issue. System is almost ide so performance is also not an issue.
Is there any configuration option which can fix this or is it a bug?


Files

tvh.log (429 KB) tvh.log Daniel Kucera, 2014-03-06 13:15
debug.log (2.56 MB) debug.log Daniel Kucera, 2014-03-08 11:49
syslog.txt (229 KB) syslog.txt Rob vh, 2014-04-17 17:25
pidscan-NotOK.txt (8.21 KB) pidscan-NotOK.txt Daniel Kucera, 2014-04-21 20:50
pidscan-OK.txt (7.47 KB) pidscan-OK.txt Daniel Kucera, 2014-04-21 20:50

History

#1

Updated by Sam Stenvall over 10 years ago

In my experience the absolutely only cause of continuity counter errors is bad hardware, bad cabling, or both.

#2

Updated by Daniel Kucera over 10 years ago

If so, how can you explain, that in VDR (http://www.tvdr.de/) it works without any problem?

#3

Updated by Daniel Kucera over 10 years ago

Is there any debug output I can provide for examination?

#4

Updated by Petar Ivanov over 10 years ago

Jalle Grönroos wrote:

In my experience the absolutely only cause of continuity counter errors is bad hardware, bad cabling, or both.

He is not only one with this error i also have same problem see: https://tvheadend.org/issues/1977

Also and other: https://tvheadend.org/boards/5/topics/11179 , https://tvheadend.org/boards/5/topics/11053

#5

Updated by Daniel Kucera over 10 years ago

I did some additional testing and found out that it affects all channels from the same transponder. I also found out that if I start streaming in certain moment, it plays without any error and when I stop it and start it again it shows errors again. I think there is some bug in demuxing function.

#6

Updated by Daniel Kucera over 10 years ago

After starting tvheadend, the channel plays ok. When I stop streaming and start it again, I get following errors in log:

2014-03-08 11:39:14.959 [ DEBUG]:psi: pid 0012 cc error 5 != 6
2014-03-08 11:39:14.959 [ DEBUG]:psi: pid 0012 cc error 0 != 1
2014-03-08 11:39:14.967 [ DEBUG]:psi: pid 03E7 cc error 6 != 7
2014-03-08 11:39:14.967 [ DEBUG]:psi: pid 0012 cc error 4 != 5

and

2014-03-08 11:39:15.294 [ DEBUG]:eit: invalid checksum

Please see attached debug log ( tvheadend --debug all -l debug.log )

Petar, I see in your debug, that you are using descrambling.

Is it possible, that this issue is caused by descrambling module?

#7

Updated by Adam Sutton over 10 years ago

  • Category changed from Demultiplex to DVB
  • Status changed from New to Accepted

All,

I'm aware this is happening, and as yet I've not come up with an obvious cause. I have started putting together a branch with some changes to the threading, that was intended to help with the issue. However as yet its not working. I really need access to a system where this is happening (I do have offers already) and some time to investigate further.

@Jalle isn't entirely correct to say that CC errors are only ever caused by hardware. Indeed this can be a result of signal problems, a CC error ultimately implies a packet was lost, however this can also happen due to bad software (unlike TEI, which is always hardware/signal). If the software has inefficiencies and is too slow to process the stream then the (potentially) small HW buffers can overflow and result in missed packets that way.

Adam

#8

Updated by Adam Sutton over 10 years ago

All,

I have discovered a couple of issues that need to be looked at, I will post some fixes soon. Though not sure I've uncovered all possible causes.

Adam

#9

Updated by Petar Ivanov over 10 years ago

Adam Sutton wrote:

All,

I have discovered a couple of issues that need to be looked at, I will post some fixes soon. Though not sure I've uncovered all possible causes.

Adam

Hi Adam,

Thanks for your hard work. Do you can see also my problem same error, this thread https://tvheadend.org/issues/1977
I test on new PC with new dish, cable, other convertor still the same. See my thread.
I can give access to a system where this error.

Regards

#10

Updated by Anonymous over 10 years ago

All my HD channels gets errors, and flickering/objects/stuttering:
Apr 14 21:40:23.466 TS: Sundtek DVB-C (III)/Get.: 386,000 kHz/TV2 HD: H264 @ #1634: Continuity counter error, 44 duplicate log lines suppressed

- And it just goes on and on, counting errors.

Hope there's a fix to this because I absolutely love Tvheadend.
(Have a batch off two more Sundtek's arriving to test if that tuner alone isn't the problem, otherwise cabling is fine.)

"I really need access to a system where this is happening (I do have offers already) and some time to investigate further."

My system is a Synology DS1812+, that is completely at your disposal if needed.

I also thank you for your hard work, keep it up :)

#11

Updated by Adam Sutton over 10 years ago

Please try master, again.

Adam

#12

Updated by Anonymous over 10 years ago

All I've found is this package from synocommunity.
https://github.com/SynoCommunity/spksrc/commits/develop/spk/tvheadend

Tvheadend 3.4.27

I'm a little worried about how to install without a "package".

Do you mean I should un-install that package and build tvheadend on my synology like this?
https://tvheadend.org/projects/tvheadend/wiki/Building
I think the synology has git bootstrapped, but im new to linux.

#13

Updated by Petar Ivanov over 10 years ago

Adam Sutton wrote:

Please try master, again.

Adam

I try master from github, now many bad, anything don't work. Free , encrypted any channel don't work give many error.

When start give:

2014-04-15 03:40:02.287 [WARNING] psi: PID 0012 CC error 9 != 8

2014-04-15 03:40:02.287 [WARNING] psi: PID 0012 CC error 9 != 8
2014-04-15 03:40:02.287 [WARNING] psi: PID 0012 CC error 9 != 8
2014-04-15 03:40:02.287 [WARNING] psi: PID 0012 CC error 9 != 8
2014-04-15 03:40:02.287 [WARNING] psi: PID 0012 CC error 9 != 8
2014-04-15 03:40:02.287 [WARNING] psi: PID 0012 CC error 9 != 8
2014-04-15 03:40:02.287 [WARNING] psi: PID 0012 CC error 9 != 8
2014-04-15 03:40:02.287 [WARNING] psi: PID 0012 CC error 9 != 8
2014-04-15 03:40:02.287 [WARNING] psi: PID 0012 CC error 9 != 8
2014-04-15 03:40:02.288 [WARNING] psi: PID 0012 CC error 9 != 8
2014-04-15 03:40:02.288 [WARNING] psi: PID 0012 CC error 9 != 8
2014-04-15 03:40:02.288 [WARNING] psi: PID 0012 CC error 9 != 8
2014-04-15 03:40:02.288 [WARNING] psi: PID 0012 CC error 9 != 8
2014-04-15 03:40:02.447 [WARNING] linuxdvb: TurboSight TBS 6981 DVBS/S2 frontend : DVB-S #0 - read() EOVERFLOW
2014-04-15 03:40:03.003 [WARNING] TS: 12092H/Mooz Dance HD: MPEG2AUDIO #5201: Continuity counter error, 39884 duplicate log lines suppressed
2014-04-15 03:40:03.003 [WARNING] TS: 12092H/Mooz Dance HD: H264
#5101: Continuity counter error, 39884 duplicate log lines suppressed
2014-04-15 03:40:04.003 [WARNING] TS: 12092H/Mooz Dance HD: MPEG2AUDIO #5201: Continuity counter error, 47958 duplicate log lines suppressed
2014-04-15 03:40:04.003 [WARNING] TS: 12092H/Mooz Dance HD: H264
#5101: Continuity counter error, 47958 duplicate log lines suppressed
2014-04-15 03:40:04.032 [WARNING] webui: Couldn't start streaming /stream/service/1aa06676a7520e6311b188a217aeec37, No input detected

Give this on every channels!

#14

Updated by Anonymous over 10 years ago

I'm sorry, I just realized I might've tried to hijack this thread :/ I did find another package though, will start another thread regarding this and synology.

#15

Updated by Adam Sutton over 10 years ago

  • Status changed from Accepted to Resolved

I "think" fingers cross this might be resolved now. Please do shout if its still happening, but early feedback from others seeing this is that its gone away.

Adam

#16

Updated by Daniel Kucera over 10 years ago

Hi, I tested it with current version from git but nothing changed. When I start TVH, and start channel A I'm getting:

2014-04-17 07:39:59.280 [WARNING] psi: PID 03E7 CC error 7 != 8
2014-04-17 07:39:59.336 [WARNING] psi: PID 0012 CC error 12 != 13
2014-04-17 07:39:59.336 [WARNING] psi: PID 0012 CC error 1 != 2
2014-04-17 07:39:59.350 [WARNING] psi: PID 0012 CC error 4 != 5
2014-04-17 07:39:59.350 [WARNING] psi: PID 0309 CC error 8 != 9
2014-04-17 07:39:59.350 [WARNING] psi: PID 0012 CC error 7 != 8
2014-04-17 07:39:59.350 [WARNING] psi: PID 0012 CC error 10 != 11

then I switch to channel B which doesn't have this problem anytime and switch back to A and it plays with no problem. Is it possible that this be somehow related to CSA?

#17

Updated by Daniel Kucera over 10 years ago

Update: I don't need to change to another channel to stop those messages, its enough to stop and start the same problematic channel.

#18

Updated by Rob vh over 10 years ago

With 3.9.542, I still get many CC errors and continuity errors, even for a channel where 3.9.422 had no problem recording (RTL4).

#19

Updated by Adam Sutton over 10 years ago

  • Status changed from Resolved to Need feedback

Rob, can you please provide a mux sample, capture with working version of TVH. Ta

#20

Updated by Rob vh over 10 years ago

Noticed the following:
- with only one adapter enabled, reception is PURRRFECT.
- enable a second adapter, it doesn't do nothing. No EIT, no init scanning.
  • restart tvheadend
    - 2 adapters enabled
  • 1 adapter is initscanning
  • 1 adapter tuned and continuity errors abound
    Apr 18 18:41:03 sat tvheadend3296: psi: PID 00B6 CC error 11 != 7
    Apr 18 18:41:03 tvheadend3296: last message repeated 3 times
    Apr 18 18:41:03 sat tvheadend3296: psi: PID 00B6 CC error 8 != 12
    Apr 18 18:41:03 tvheadend3296: last message repeated 3 times
    Apr 18 18:41:03 sat tvheadend3296: psi: PID 0012 CC error 0 != 3
    Apr 18 18:41:03 sat tvheadend3296: pmt: invalid checksum
    Apr 18 18:41:03 sat tvheadend3296: psi: PID 0012 CC error 4 != 0
    Apr 18 18:41:03 sat rsyslogd-2177: imuxsock begins to drop messages from pid 3296 due to rate-limiting
    Apr 18 18:41:07 sat rsyslogd-2177: imuxsock lost 285 messages from pid 3296 due to rate-limiting
    Apr 18 18:41:07 sat tvheadend3296: TS: 12187H/Veronica/DisneyXD HD: H264 @ #517: Continuity counter error, 2932 duplicate log lines suppressed

But... if I have the transmission active and I go to Configure - Mux and try to save the mux stream, it goes to the 2nd adapter and incurs no CC errors. The adapter that is streaming the transmission keeps incurring CC errors.

Please tell me how to diagnose this more.

#21

Updated by holli 73 over 10 years ago

hello,

i'm on Build: 3.9.542~g63ac3be and did not get any continuity error anymore (i have 8 digital devices s2) and got this error everytime more than one tuner was active - but now i'm running all 8 and did not see any so far - cool my freezers are gone...

thanks a lot

holli

#22

Updated by Rob vh over 10 years ago

I added mesh shielding around my sat cards and can now confirm that reception is fine with 3.9.542. It would seem the motherboard or (more likely) the graphics card sprayed noise into the receiver.
So reception on one adapter is no longer impacted by another adapter doing init scan.
This applies for FTA and encrypted channels (using oscam mode 2 and genuine smartcards in Omnikey readers).
Thank you, Adam!

#23

Updated by Rob vh over 10 years ago

Live streaming of channels works well, as I stated yesterday.
I still see a large number of CC errors within eit messages. I've saved a mux stream: https://www.dropbox.com/s/sxgpuoimq4vwk91/10802H.ts

Apr 21 07:45:54 sat tvheadend952: mpegts: 10802H - starting for 'epggrab' (weight 1)
Apr 21 07:45:54 sat tvheadend952: mpegts: 10802H - tuning on STV090x Multistandard : DVB-S #0
Apr 21 07:45:55 sat tvheadend952: subscription: 'epggrab' subscribing to mux, weight: 1, adapter: 'STV090x Multistandard : DV
B-S #0', network: '19.2E', mux: '10802H'
Apr 21 07:46:00 sat tvheadend952: eit: invalid checksum
Apr 21 07:46:10 tvheadend952: last message repeated 4 times
Apr 21 07:46:10 sat tvheadend952: psi: PID 0000 CC error 13 != 5
Apr 21 07:46:10 sat tvheadend952: psi: PID 0000 CC error 6 != 13
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 15 != 0
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 3 != 4
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 9 != 10
Apr 21 07:46:10 sat tvheadend952: eit: invalid checksum
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 3 != 4
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 13 != 14
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 0 != 1
Apr 21 07:46:10 sat tvheadend952: psi: PID 0000 CC error 15 != 7
Apr 21 07:46:10 sat tvheadend952: psi: PID 0000 CC error 8 != 15
Apr 21 07:46:10 sat tvheadend952: pat: invalid checksum
Apr 21 07:46:10 sat tvheadend952: psi: PID 0011 CC error 12 != 11
Apr 21 07:46:10 sat tvheadend952: bat: invalid checksum
Apr 21 07:46:10 sat tvheadend952: psi: PID 0011 CC error 12 != 11
Apr 21 07:46:10 sat tvheadend952: sdt: invalid checksum
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 15 != 0
Apr 21 07:46:10 sat tvheadend952: eit: invalid checksum
Apr 21 07:46:10 sat tvheadend952: eit: invalid checksum
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 2 != 0
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 1 != 3
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 4 != 5
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 6 != 7
Apr 21 07:46:10 sat tvheadend952: psi: PID 0001 CC error 11 != 7
Apr 21 07:46:10 sat tvheadend952: psi: PID 0001 CC error 8 != 12
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 13 != 14
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 1 != 3
Apr 21 07:46:10 sat tvheadend952: eit: invalid checksum
Apr 21 07:46:10 sat tvheadend952: psi: PID 0010 CC error 13 != 7
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 7 != 8
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 15 != 13
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 14 != 1
Apr 21 07:46:10 sat tvheadend952: eit: invalid checksum
Apr 21 07:46:10 sat tvheadend952: psi: PID 0000 CC error 0 != 1
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 7 != 8
Apr 21 07:46:10 sat tvheadend952: eit: invalid checksum
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 10 != 11
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 13 != 14
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 15 != 0
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 6 != 14
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 15 != 8
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 15 != 0
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 10 != 11
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 11 != 12
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 0 != 8
Apr 21 07:46:10 sat tvheadend952: psi: PID 0012 CC error 9 != 1
Apr 21 07:46:10 sat tvheadend952: eit: invalid checksum
Apr 21 07:46:10 sat tvheadend952: psi: PID 0010 CC error 8 != 13
Apr 21 07:46:10 sat tvheadend952: eit: invalid checksum
Apr 21 07:46:10 sat tvheadend952: psi: PID 0983 CC error 0 != 1
Apr 21 07:46:10 sat tvheadend952: eit: invalid checksum
Apr 21 07:46:10 tvheadend952: last message repeated 2 times
Apr 21 07:46:10 sat tvheadend952: pmt: invalid checksum
Apr 21 07:46:10 sat tvheadend952: subscription: "epggrab" unsubscribing
Apr 21 07:47:21 tvheadend952: last message repeated 4 times

and the occasional blip while viewing

Apr 21 07:48:00 sat tvheadend952: TS: 11739V/FOX Channel: H264 #516: Continuity counter error
Apr 21 07:48:00 sat tvheadend[952]: TS: 11739V/FOX Channel: MPEG2AUDIO
#88: Continuity counter error
Apr 21 07:48:12 sat tvheadend952: psi: PID 0010 CC error 15 != 4
Apr 21 07:48:12 sat tvheadend952: TS: 11739V/FOX Channel: H264 @ #516: Continuity counter error
Apr 21 07:48:12 sat tvheadend952: psi: PID 0010 CC error 5 != 15

#24

Updated by Daniel Kucera over 10 years ago

I have 2 tuners in my PC:
STV090x Multistandard : DVB-S #0 <--- this one allways works fine, without any error
ST STV0299 DVB-S : DVB-S #0 <-- this one allways outputs PID CC errors and video is corrupted

they are both connected to the same quad LNB on dish.

In attachment are PID scans of the same transponder using both cards. Is it possible that the stream is not correctly decoded because of missing stuffing PID (8191) ?

You can check ts dump from non working card here http://danman.eu/dump.ts

#25

Updated by Adam Sutton over 10 years ago

Ron / Dan,

How did you capture those muxdumps? I think you will need to use something other than TVH or at the very least an older version (since unfortunately those raw dumps aren't so raw these days, they could well already be infected with the issue we're trying to investigate).

Adam

#26

Updated by Daniel Kucera over 10 years ago

I used dvbsnoop:
dvbsnoop -s ts -tsraw -b -n 0 > dump.ts

#27

Updated by Adam Sutton over 10 years ago

Daniel,

How was the device tuned? Another external app presumably? I.e. TVH was in no way involved in the process of generating that file?

Because looking at that TS file it is indeed filled with CC errors, so TVH would be correct in reporting them.

Adam

#28

Updated by Daniel Kucera over 10 years ago

I've used THV for transponder tunning. Now I've made another dump with VDR as tuner (dumping using dvbsnoop) with the same channel on same card playing perfectly.

http://danman.eu/dump2.ts

#29

Updated by Adam Sutton over 10 years ago

Ok, that's definitely cleaner, though its still got errors in it, so I'd expect some reporting from TVH.

That being said I think my handling of those errors may be causing more problems than it should.

Adam

#30

Updated by Daniel Kucera over 10 years ago

I still don't understand why it is working perfectly in VDR and in TVH not. Could you at least simply describe what's the point of the problem please?
Thank you.

#31

Updated by Adam Sutton over 10 years ago

The problem is that there are CC errors in the stream, a CC error in simple terms means "something went missing". Basically each packet carries a 4 bit counter (unique to the PID), if you get a packet with a CC which is not exactly +1 from the last, then you've missed something and got a continuity error.

Now this can happen for several reasons, but the most common are:

1. Intentional errors. This is rare, but not unheard of for some DVB broadcasters to insert intentional errors to try and trip up unofficial receivers (though it should at worst cause unnecessary error reports, not real damage).
2. Lost in transit, due to errors etc... (i.e. receiver hardware never received the packet)

3. Lost in transfer, i.e. packet arrived, but was lost from buffers before it was passed to application (usually implies application running slowly, and my original thoughts on this issue).
4. Lost in processing, it got to the application but then mysteriously disappeared (i.e. a bug in the processing logic).

I'm ignoring 1 assuming its a non-issue. 1 is difficult to disprove, however your dump file which was generated with a completely different application shows CC errors (so I can only surmise that some genuine, transit, errors are occurring, though odd no transport errors are reported).

3 is really difficult to test without real systems on which the problems occur, however I've done quite a bit to improve this so I really hope this is gone. But you could check very latest master and look at the new CC counter field on the stream status page.

4 is probably the most likely source of errors. At the moment I'm not sure packets are going missing as such, but possibly the way in which CC errors are treated is less than ideal.

Adam

#32

Updated by Daniel Kucera over 10 years ago

I've foud it!!!!

My card is not able to handle so many PIDs as TVH request so it starts dropping packets. To check if this was the reason, I tried this patch:

diff --git a/src/input/mpegts/dvb_psi.c b/src/input/mpegts/dvb_psi.c
index f4ce6b1..c42a267 100644
--- a/src/input/mpegts/dvb_psi.c
++ b/src/input/mpegts/dvb_psi.c
@ -575,7 +575,8 @ dvb_pat_callback
/* Process each programme */
ptr += 5;
len = 5;
while(len >= 4) {
// danmnan while(len >= 4) {
+ while(0) {
sid = ptr0 << 8 | ptr1;
pid = (ptr2 & 0x1f) << 8 | ptr3;

After this, I was able to watch without a single drop! I hope you will find some more systematic way how to fix it in next releases :).
Good night.

#33

Updated by Daniel Kucera over 10 years ago

diff --git a/src/input/mpegts/dvb_psi.c b/src/input/mpegts/dvb_psi.c
index f4ce6b1..c42a267 100644
--- a/src/input/mpegts/dvb_psi.c
+++ b/src/input/mpegts/dvb_psi.c
@@ -575,7 +575,8 @@ dvb_pat_callback
   /* Process each programme */
   ptr += 5;
   len -= 5;
-  while(len >= 4) {
+// danmnan while(len >= 4) {
+  while(0) {
     sid = ptr[0]         << 8 | ptr[1];
     pid = (ptr[2] & 0x1f) << 8 | ptr[3];
#34

Updated by Adam Sutton over 10 years ago

I've just made a point that I'm really not going to spend lots of time trying to support such hardware unfortunately. But I will have a think...

Adam

#35

Updated by Daniel Kucera over 10 years ago

I think that your approach is wrong. Why do you waste resources for permanent transponder scanning while the user only requested to watch single channel which PIDs we allready know? Shouldn't be this (scanning) done only once a time to update table with available programs?

#36

Updated by Adam Sutton over 10 years ago

The reality is that for most tuners it's not a problem and its hardly a big waste of resource, open PID, scan for few seconds processing and then ignore stuff. Compared to everything else going on its trivial. However I'll have a think, I had a simple fix, but that really won't do the job.

Adam

#37

Updated by Adam Sutton over 10 years ago

Dan,

can you try this, http://sprunge.us/TiQS, I've done VERY limited testing, but woud welcome some input.

Adam

#38

Updated by Daniel Kucera over 10 years ago

Hi Adam,

it works fine. Thank you.

#39

Updated by Adam Sutton over 10 years ago

  • Status changed from Need feedback to Fixed
  • % Done changed from 0 to 100

Applied in changeset commit:tvheadend|c361cc6c692114f7bf4f0274aa4bb289141b4e5a.

#40

Updated by Cassio Simoes over 9 years ago

Adam Sutton wrote:

Applied in changeset commit:tvheadend|c361cc6c692114f7bf4f0274aa4bb289141b4e5a.

I'm currently using build 4.0.4 + 4 DVBSky S960 tuners and having similar problems, but I can't find the "Disable PMT monitoring" option...

Thanks

Cassio

#41

Updated by Jaroslav Kysela over 9 years ago

The current code uses different mechanism - it opens PMT PIDs only during the scan and it limits the number of open PIDs according the user config (in the hardware tree tab).

Also available in: Atom PDF