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
116 stars 52 forks source link

crash #24

Open taojishou opened 2 years ago

taojishou commented 2 years ago

[root@localhost tsdecrypt]# ./tsdecrypt --emm --camd-proto NEWCAMD --camd-server 127.0.0.1:34000 --camd-user user1 --camd-pass user1 --camd-des-key 000102030405060708090A0B0C0D --input 235.1.1.1:1234 --output 238.1.1.1:1234 --caid 0x4AD2 2022-09-18 23:22:47 | Syslog : disabled 2022-09-18 23:22:47 | CA System : UNKNOWN | CAID: 0x4ad2 (19154) 2022-09-18 23:22:47 | Input addr : udp://235.1.1.1:1234/ 2022-09-18 23:22:47 | Input src : 0.0.0.0 2022-09-18 23:22:47 | Output addr: udp://238.1.1.1:1234/ 2022-09-18 23:22:47 | Output intf: 0.0.0.0 (IPv6 intf index:-1) 2022-09-18 23:22:47 | Output ttl : 1 2022-09-18 23:22:47 | Out filter : enabled (output only service related PIDs) 2022-09-18 23:22:47 | TS discont : report 2022-09-18 23:22:47 | Decoding : threaded 2022-09-18 23:22:47 | CAMD proto : newcamd 2022-09-18 23:22:47 | CAMD addr : 127.0.0.1:34000 (IPv4/IPv6) 2022-09-18 23:22:47 | CAMD user : user1 2022-09-18 23:22:47 | CAMD pass : user1 2022-09-18 23:22:47 | CAMD deskey: 000102030405060708090A0B0C0D 2022-09-18 23:22:47 | EMM process: Yes 2022-09-18 23:22:47 | EMM report : 60 sec 2022-09-18 23:22:47 | ECM process: Yes 2022-09-18 23:22:47 | ECM report : 60 sec 2022-09-18 23:22:47 | CW warning : 60 sec 2022-09-18 23:22:47 | Start tsdecrypt v10.0 (v10.0-50-g1b573a5, libdvbcsa) 2022-09-18 23:22:47 | Connecting input to 235.1.1.1 port 1234 2022-09-18 23:22:47 | Input connected to fd:3 2022-09-18 23:22:47 | Connecting output to 238.1.1.1 port 1234 ttl 1 2022-09-18 23:22:47 | Output connected to fd:4 2022-09-18 23:22:47 | CAM | Connecting to server 127.0.0.1 port 34000 2022-09-18 23:22:47 | CAM | Connected to server 127.0.0.1 port 34000 (addr=127.0.0.1 fd=5). 2022-09-18 23:22:49 | CAM | [newcamd] Card info: CAID 0x4AD2 Admin=YES srvUA=00000000000000F4 2022-09-18 23:22:49 | CAM | [newcamd] Card info: Provider 0 : 00030C : 0000000000000000 2022-09-18 23:22:49 | CW | ERR No valid code word was received for 2 seconds! 2022-09-18 23:22:49 | PAT | Using service 0x0324 (804), PMT pid: 0610 (1552) 2022-09-18 23:22:49 | NEW | Input PID 0x0000 appeared (PAT) 2022-09-18 23:22:49 | *** | ERROR: Can't detect ECM pid.

taojishou commented 2 years ago

2022-09-18 23:22:49 | NEW | Input PID 0x0000 appeared (PAT) 2022-09-18 23:22:49 | ** | ERROR: Can't detect ECM pid. 2022-09-18 23:22:49 | NEW | Input PID 0x0610 appeared (PMT) 2022-09-18 23:22:49 | NEW | Input PID 0x0612 appeared (H.264/14496-10 video (MPEG-4/AVC)) 2022-09-18 23:22:49 | NEW | Input PID 0x0620 appeared (11172-3 audio (MPEG-1)) 2022-09-18 23:22:49 | --- | TS discontinuity on PID 0x0612 expected 10 got 3 /9/ (H.264/14496-10 video (MPEG-4/AVC)) 2022-09-18 23:22:49 | --- | TS discontinuity on PID 0x0620 expected 8 got 12 /4/ (11172-3 audio (MPEG-1)) 2022-09-18 23:22:49 | --- | TS discontinuity on PID 0x0000 expected 3 got 5 /2/ (PAT) 2022-09-18 23:22:49 | --- | TS discontinuity on PID 0x0610 expected 7 got 9 /2/ (PMT) 2022-09-18 23:22:50 | EMM | Received 4594, Skipped 21, Sent 1, Processed 0 in 3 seconds. 2022-09-18 23:22:50 | ECM | Received 0 (0 dup) and processed 0 in 3 seconds. 2022-09-18 23:22:50 | OUT | ERR* The output is encrypted for 2496 ms, stopping output

taojishou commented 2 years ago

./tsdecrypt --camd-proto NEWCAMD --camd-server 127.0.0.1:10100 --camd-user 1 --camd-pass 1 --camd-des-key 0102030405060708091011121314 --input 235.1.1.1:1234 --output 238.1.1.1:1234 --caid 0x0100 --ca-system SECA The same goes for the other CA encryption