gfto / tsdecrypt

tsdecrypt reads and decrypts CSA encrypted incoming mpeg transport stream over UDP/RTP using code words obtained from OSCAM or similar CAM server. tsdecrypt communicates with CAM server using cs378x (camd35 over tcp) protocol or newcamd protocol.
http://georgi.unixsol.org/programs/tsdecrypt/
GNU General Public License v2.0
115 stars 53 forks source link

can't detect ident CONAX #13

Closed X-Filess closed 6 years ago

X-Filess commented 6 years ago

Hello.

git version cant find ECM pids on CONAX, 2017-12-13 18:06:25 | *** | ERROR: Can't detect ECM pid.

please check it...

version from git ! 2017-12-13 18:06:25 | CA System : CONAX | CAID: 0x0b00 (2816) ... 2017-12-13 18:06:25 | CAMD proto : newcamd 2017-12-13 18:06:25 | CAMD addr : 127.0.0.1:3008 (IPv4/IPv6) .... 2017-12-13 18:06:25 | EMM process: No 2017-12-13 18:06:25 | ECM process: Yes 2017-12-13 18:06:25 | ECM report : 60 sec 2017-12-13 18:06:25 | CW warning : 60 sec 2017-12-13 18:06:25 | Start tsdecrypt v10.0 (v10.0-45-gb1eaec9, libdvbcsa) ... 2017-12-13 18:06:25 | Output connected to fd:4 2017-12-13 18:06:25 | CAM | Connecting to server 127.0.0.1 port 3008 2017-12-13 18:06:25 | CAM | Connected to server 127.0.0.1 port 3008 (addr=127.0.0.1 fd=5). 2017-12-13 18:06:25 | CAM | [newcamd] Card info: CAID 0x0B00 Admin=YES srvUA=000000000032F516 2017-12-13 18:06:25 | CAM | [newcamd] Card info: Provider 0 : 000000 : 000000000032F516 2017-12-13 18:06:25 | PAT | Using service 0x1586 (5510), PMT pid: 1587 (5511) 2017-12-13 18:06:25 | NEW | Input PID 0x0000 appeared (PAT) 2017-12-13 18:06:25 | *** | ERROR: Can't detect ECM pid. 2017-12-13 18:06:25 | NEW | Input PID 0x1587 appeared (PMT)

version from official release 10.0 2017-12-13 18:05:27 | CA System : CONAX | CAID: 0x0b00 (2816) ... 2017-12-13 18:05:27 | CAMD proto : newcamd 2017-12-13 18:05:27 | CAMD addr : 127.0.0.1:3008 (IPv4/IPv6) .... 2017-12-13 18:05:27 | EMM process: No 2017-12-13 18:05:27 | ECM process: Yes 2017-12-13 18:05:27 | ECM report : 60 sec 2017-12-13 18:05:27 | CW warning : 60 sec 2017-12-13 18:05:27 | Start tsdecrypt v10.0 (release, build 2017-12-13_12:40 libdvbcsa) ... 2017-12-13 18:05:27 | Output connected to fd:4 2017-12-13 18:05:27 | CAM | Connecting to server 127.0.0.1 port 3008 2017-12-13 18:05:27 | CAM | Connected to server 127.0.0.1 port 3008 (addr=127.0.0.1 fd=5). 2017-12-13 18:05:27 | CAM | [newcamd] Card info: CAID 0x0B00 Admin=YES srvUA=0000000072F63560 2017-12-13 18:05:27 | CAM | [newcamd] Card info: Provider 0 : 000000 : 000000000032F516 2017-12-13 18:05:27 | PAT | Using service 0x1586 (5510), PMT pid: 1587 (5511) 2017-12-13 18:05:27 | NEW | Input PID 0x0000 appeared (PAT) 2017-12-13 18:05:27 | --- | ECM CAID: 0x0b00 (CONAX) 2017-12-13 18:05:27 | --- | ECM pid : 0x0070 (CONAX) 2017-12-13 18:05:27 | NEW | Input PID 0x1587 appeared (PMT)

X-Filess commented 6 years ago

Я могу тут на русском писать ? разработчик может понять меня ?

more information

2017-12-13 19:24:50 | tei:0 pusi:1 prio:0 pid:1587 (5511) scramble:0 adapt:0 payload:1 adapt_len:0 adapt_flags:0 | pofs:4 plen:184 2017-12-13 19:24:50 | Section header 2017-12-13 19:24:50 | - Table id : 002 (2) program_map_section 2017-12-13 19:24:50 | - Section length : 02e (46) [num_packets:1] 2017-12-13 19:24:50 | - TS ID / Program No : 1586 (5510) 2017-12-13 19:24:50 | - Version number 30, current next 1, section number 0, last section number 0 2017-12-13 19:24:50 | - CRC : 0xd2c49a48 2017-12-13 19:24:50 | PMT data 2017-12-13 19:24:50 | PID : 1587 (5511) 2017-12-13 19:24:50 | reserved1 : 7 2017-12-13 19:24:50 | PCR PID : 1588 (5512) 2017-12-13 19:24:50 | reserved2 : 15 2017-12-13 19:24:50 | program_len : 6 2017-12-13 19:24:50 | num_streams : 3 2017-12-13 19:24:50 | Program info: 2017-12-13 19:24:50 | program info size: 6 2017-12-13 19:24:50 | Tag 0x09 (09), sz: 4, CA descriptor: CAID 0x0b00 (2816) | CA PID 0x0070 (112) | CONAX 2017-12-13 19:24:50 | [01/03] PID 1588 (5512) -> Stream type: 0x1b (27) /es_info_size: 0/ H.264/14496-10 video (MPEG-4/AVC) 2017-12-13 19:24:50 | [02/03] PID 1589 (5513) -> Stream type: 0x03 (3) /es_info_size: 6/ 11172-3 audio (MPEG-1) 2017-12-13 19:24:50 | Tag 0x0a (10), sz: 4, Language descriptor: 2017-12-13 19:24:50 | Lang: rus Type: (0) 2017-12-13 19:24:50 | [03/03] PID 158a (5514) -> Stream type: 0x03 (3) /es_info_size: 6/ 11172-3 audio (MPEG-1) 2017-12-13 19:24:50 | Tag 0x0a (10), sz: 4, Language descriptor: 2017-12-13 19:24:50 | * Lang: lav Type: (0) 2017-12-13 19:24:50 | PMT (tspacket->struct) generator is correct 2017-12-13 19:24:50 | PMT (struct->tspacket) generator is correct 2017-12-13 19:24:50 | * | ERROR: Can't detect ECM pid. 2017-12-13 19:24:50 | NEW | Input PID 0x1587 appeared (PMT) 2017-12-13 19:24:50 | NEW | Input PID 0x1588 appeared (H.264/14496-10 video (MPEG-4/AVC)) 2017-12-13 19:24:50 | NEW | Input PID 0x158a appeared (11172-3 audio (MPEG-1)) 2017-12-13 19:24:50 | NEW | Input PID 0x1589 appeared (11172-3 audio (MPEG-1)) 2017-12-13 19:24:50 | NEW | Input PID 0x01f5 appeared (EMM) 2017-12-13 19:24:51 | NEW | Input PID 0x0012 appeared (EPG) 2017-12-13 19:24:51 | SDT table 2017-12-13 19:24:51 | tei:0 pusi:1 prio:0 pid:0011 (17) scramble:0 adapt:0 payload:1 adapt_len:0 adapt_flags:0 | pofs:4 plen:184 2017-12-13 19:24:51 | Section header 2017-12-13 19:24:51 | - Table id : 042 (66) service_description_section - actual_transport_stream 2017-12-13 19:24:51 | - Section length : 02b (43) [num_packets:1] 2017-12-13 19:24:51 | - TS ID / Program No : 157c (5500) 2017-12-13 19:24:51 | - Version number 10, current next 1, section number 0, last section number 0 2017-12-13 19:24:51 | - CRC : 0xb5ee0bb2 2017-12-13 19:24:51 | SDT data 2017-12-13 19:24:51 | PID : 0011 (17) 2017-12-13 19:24:51 | org_net_id : 21ac (8620) 2017-12-13 19:24:51 | reserved : 255 2017-12-13 19:24:51 | num_streams : 1 2017-12-13 19:24:51 | [01/01] Service_id: 1586 (5510) Res1: 63 EIT_schedule: 1 EIT_present: 1 Running_status: 4 free_CA_mode: 0 /es_info_size: 26/ 2017-12-13 19:24:51 | Tag 0x48 (72), sz: 24, Service descriptor: 2017-12-13 19:24:51 | Service type : digital tv service 2017-12-13 19:24:51 | Provider name: "Provider" (size: 10) 2017-12-13 19:24:51 | Service name : "Channel" (size: 11) 2017-12-13 19:24:51 | ** SDT (tspacket->struct) generator is correct 2017-12-13 19:24:51 | SDT (struct->tspacket) generator is correct **** 2017-12-13 19:24:51 | SDT | Service 0x1586 ( 5510) Type: 0x01 (Tv) Provider: "Provider" Service: "Channel" 2017-12-13 19:24:51 | NEW | Input PID 0x0011 appeared (SDT) 2017-12-13 19:24:52 | NEW | Input PID 0x0010 appeared (NIT) 2017-12-13 19:24:53 | EMM | Received 2023, Skipped 21, Sent 181, Processed 181 in 3 seconds. 2017-12-13 19:24:53 | ECM | Received 0 (0 dup) and processed 0 in 3 seconds. 2017-12-13 19:24:55 | NEW | Input PID 0x0014 appeared (TDT/TOT)

malakudi commented 6 years ago

Following diff fixes the issue (a small variable misplacement):

--- tables.c.orig   2018-01-29 17:04:41.045379437 +0200
+++ tables.c    2018-01-29 17:05:07.237079966 +0200
@@ -167,7 +167,7 @@

 // Copied from libtsfuncs with added logic to return more than one PID
 int __ts_get_ecm_info(struct ts_pmt *pmt, enum CA_system req_CA_type, uint16_t forced_caid, uint16_t *CA_id, uint16_t *CA_pid, uint16_t *CA_pids, unsigned int *n_pids) {
-   int i, result = find_CA_descriptor(pmt->program_info, pmt->program_info_size, forced_caid, req_CA_type, CA_id, CA_pid, CA_pids, n_pids);
+   int i, result = find_CA_descriptor(pmt->program_info, pmt->program_info_size, req_CA_type, forced_caid, CA_id, CA_pid, CA_pids, n_pids);
    if (!result) {
        for(i=0;i<pmt->streams_num;i++) {
            struct ts_pmt_stream *stream = pmt->streams[i];
gfto commented 6 years ago

Thanks for fix. Committed in master.