Moderator Control Panel ]

Damaged DVB-S2 stream

Re: Damaged DVB-S2 stream

Postby jeroen » Mon Jun 03, 2013 5:25 pm

cody Wrote:what you've done with sasc-ng doesn't answer anything, because it could be your smart-card reader is not set properly, i.e. it causes delay/lag in the keys, which leads immediately to picture (and sound) corruption. also, that doesn't rule out problem with what displays that video/audio data like codecs. the easiest way to analyze the pure TS data without decrypting them is to use DVBlast - it's debug output, which is active by default, shows messages in case there is TS data corruption. so, you can just set streaming with DVBlast and monitor the debug messages (if any, because if everything is fine, there will be none). i still believe there is communication problem between your CAM and CI interface on TBS card, which is the most common source of TS corruption, because FTA channels are fine for you. so, another good idea is to try different TBS card (if you have such available) or different CAM.

Okay I tried that.
dvblast -c dvblast.conf -u -m psk_8 -F 34 -f 12721750 -s22000000 -S 0 -v 18 -a 1

I get errors like this all the time:
warning: TS discontinuity on pid 552 expected_cc 6 got 7 (H.264/14496-10 video (MPEG-4/AVC), sid 12852)
warning: transport_error_indicator on pid 552 (H.264/14496-10 video (MPEG-4/AVC), sid 12852)
warning: TS discontinuity on pid 556 expected_cc 4 got 6 (H.264/14496-10 video (MPEG-4/AVC), sid 12856)
warning: TS discontinuity on pid 551 expected_cc 13 got 2 (H.264/14496-10 video (MPEG-4/AVC), sid 12851)
warning: transport_error_indicator on pid 553 (H.264/14496-10 video (MPEG-4/AVC), sid 12853)
warning: TS discontinuity on pid 7460 expected_cc 12 got 3 (..., sid 0)
warning: transport_error_indicator on pid 7460 (..., sid 0)
warning: TS discontinuity on pid 555 expected_cc 13 got 1 (..., sid 0)
warning: transport_error_indicator on pid 555 (..., sid 0)
warning: TS discontinuity on pid 664 expected_cc 8 got 9 (..., sid 0)
warning: transport_error_indicator on pid 664 (..., sid 0)
warning: transport_error_indicator on pid 111 (13818-3 audio (MPEG-2), sid 12861)
warning: TS discontinuity on pid 6655 expected_cc 0 got 8 (..., sid 0)
warning: transport_error_indicator on pid 6655 (..., sid 0)
warning: TS discontinuity on pid 554 expected_cc 4 got 13 (..., sid 0)
warning: transport_error_indicator on pid 554 (..., sid 0)
warning: TS discontinuity on pid 5105 expected_cc 12 got 13 (..., sid 0)
warning: transport_error_indicator on pid 5105 (..., sid 0)

dvblast.conf:
192.168.12.28:9999/udp 1 12808

where 192.168.12.28 is the ip of my laptop on which I netcat port 9999 to a file.
jeroen
 
Posts: 13
Joined: Thu May 23, 2013 3:48 am

Re: Damaged DVB-S2 stream

Postby cody » Mon Jun 03, 2013 6:19 pm

that actually indicates massive corruption. please, run more simple DVBlast command line:

dvblast -c dvblast.conf -f 12721750 -s 22000000 -v 18 -a 1

and paste your output from it here again. thanks.

in the meantime i will try to reposition one dish to Astra 19.2 and test on the same signal and provide my test results too. however, at this point considering the level of corruption you're getting i believe something is wrong from your side and by that i don't exclude fault on your 6991 card.
cody
 
Posts: 627
Joined: Tue Apr 13, 2010 11:20 pm

Re: Damaged DVB-S2 stream

Postby jeroen » Mon Jun 03, 2013 6:44 pm

cody Wrote:that actually indicates massive corruption. please, run more simple DVBlast command line:

dvblast -c dvblast.conf -f 12721750 -s 22000000 -v 18 -a 1

and paste your output from it here again. thanks.

in the meantime i will try to reposition one dish to Astra 19.2 and test on the same signal and provide my test results too. however, at this point considering the level of corruption you're getting i believe something is wrong from your side and by that i don't exclude fault on your 6991 card.

Ok, I did that. I see it's tuning QPSK now where as it should be 8PSK (according to kingofsat)

full logfile emailed, a part of it:
warning: TS discontinuity on pid 508 expected_cc 15 got 1 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 1 got 3 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 32 expected_cc 10 got 15 (H.222.0/13818-1 PES private data, sid 12808)
warning: transport_error_indicator on pid 32 (H.222.0/13818-1 PES private data, sid 12808)
warning: TS discontinuity on pid 508 expected_cc 7 got 8 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: transport_error_indicator on pid 508 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 32 expected_cc 0 got 10 (H.222.0/13818-1 PES private data, sid 12808)
warning: TS discontinuity on pid 508 expected_cc 6 got 7 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: transport_error_indicator on pid 508 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 5 got 7 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 12 got 13 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 32 expected_cc 12 got 2 (H.222.0/13818-1 PES private data, sid 12808)
warning: transport_error_indicator on pid 32 (H.222.0/13818-1 PES private data, sid 12808)
warning: TS discontinuity on pid 508 expected_cc 8 got 10 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 32 expected_cc 3 got 12 (H.222.0/13818-1 PES private data, sid 12808)
warning: TS discontinuity on pid 508 expected_cc 12 got 14 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: transport_error_indicator on pid 508 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: transport_error_indicator on pid 508 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 13 got 15 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 78 expected_cc 6 got 7 (11172-3 audio (MPEG-1), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 1 got 3 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 7 got 9 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 1 got 2 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 13 got 15 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 78 expected_cc 13 got 15 (11172-3 audio (MPEG-1), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 12 got 14 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)



warning: too many errors for stream 192.168.12.28:9999/udp, resetting
warning: TS discontinuity on pid 508 expected_cc 12 got 14 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 5 got 7 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 78 expected_cc 11 got 12 (11172-3 audio (MPEG-1), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 0 got 2 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 4 got 5 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: transport_error_indicator on pid 508 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 12 got 4 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: transport_error_indicator on pid 508 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 5 got 14 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: transport_error_indicator on pid 508 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 508 expected_cc 14 got 15 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: TS discontinuity on pid 78 expected_cc 0 got 1 (11172-3 audio (MPEG-1), sid 12808)
warning: too many errors for stream 192.168.12.28:9999/udp, resetting
warning: too many errors for stream 192.168.12.28:9999/udp, resetting
warning: too many errors for stream 192.168.12.28:9999/udp, resetting

I have the problem on different tbs6991 cards, with different satellite dishes in two different geographical locations.

I also see problems on the unencrypted BBC1 and 2 Astra 28.0E
DVB-S
5/6
10773
h
22000
QPSK
PID 256 and 258
jeroen
 
Posts: 13
Joined: Thu May 23, 2013 3:48 am

Re: Damaged DVB-S2 stream

Postby cody » Mon Jun 03, 2013 9:42 pm

6991 auto-detects QPSK and 8PSK in hardware...

so, i tested 12721H on Astra 19.2E and i can confirm small packet loss - nothing close to the packet-rate-loss you get though on your DVBlast log. also, in my case the packet loss is not Linux-related - i observed the same in Windows, but as i mentioned it's slight - here is statistics for 10-15 minutes:

Image

however, i was able to solve that small packet loss with small changes to the driver - modified code is attached. so, you need to use linux-tbs-drivers_120506 or linux-tbs-drivers_120509 drivers and replace:

linux-tbs-drivers/linux/drivers/media/common/saa716x/tbsci.c

with the attached one, then build and install the driver as usual. however, instead restart to load the new driver, you need to do shutdown in order to make sure the card lost the settings from the old driver (simple restart will leave those settings still active). so, please, do that and test again. if packet loss continue after that, because really packet loss rate seems quite massive on your logs and it doesn't seem the same behavior as on my tests then it's good idea to measure the signal dB levels from your side - my signal on 12721H is about 10.8-11.0 dB. in case you don't know how to measure dB levels with 6991:

create text file called for example "tbsfe.conf" in "/etc/modprobe.d" with content like this:

# cat /etc/modprobe.d/tbsfe.conf

options tbsfe esno=1

then for example 'szap-s2' output like this :

status 1f | signal 9a68| snr 0075 | ber 00000000 | unc 00000000 | FE_HAS_LOCK

means:

* C/N in EsNo dB is 11.7 dB, because '75' is hexadecimal value and in decimal value is 117 and 117 = 10*(EsNo dB)

[EDIT] sorry, i forgot the attachment - now that's fixed.
Attachments
tbsci.zip
(2.08 KiB) Downloaded 361 times
cody
 
Posts: 627
Joined: Tue Apr 13, 2010 11:20 pm

Re: Damaged DVB-S2 stream

Postby jeroen » Mon Jun 03, 2013 11:19 pm

I appreciate your help a lot.
But I seem to be getting the same results as before.
dB values are 11.8-12.0dB
dvblast gives warnings, perhaps a bit less than before. Some are directly after tuning (Disecq switching side effect?) and go away, then it's a batch of 1-5 lines every x minutes

warning: transport_error_indicator on pid 32 (H.222.0/13818-1 PES private data, sid 12808)
warning: transport_error_indicator on pid 508 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)
warning: transport_error_indicator on pid 19 (..., sid 0)
warning: TS discontinuity on pid 508 expected_cc 5 got 7 (H.264/14496-10 video (MPEG-4/AVC), sid 12808)

I tried it on both TBS cards and both dishes, same results.
Any other ideas?
jeroen
 
Posts: 13
Joined: Thu May 23, 2013 3:48 am

Previous

Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest