TS Offline Decryption

Status
Not open for further replies.

marce

VIP
Messages
7,115
TS Offline Decryption with MDAPI plugins (Acamd etc.)


Code:
Hey there!

I've written three little programs which might be of some use for you and which you can find in a zip archive at

They allow you to decrypt encrypted Transport Stream (TS) recordings (known as Offline Decryption). 
Older versions of the package communicated directly with gbox/mbox. 
This has now been replaced by communication with MDAPI plugins like 
Acamd and vPlug. You can still use it with gbox/mbox by using Acamd (Acamd supports communication with gbox/mbox).

The main purposes of this package are:
1) getting error free decryptions of broadcastings even in cases of critical smartcard latencies (e.g. in case of Sk@ UK).
2) decryption of broadcastings without having access to a cardsharing network: The first program extracts all ECM data from the TS file - you can send it via e-mail (files are not so large) to someone who has access to a cardsharing network + supported MDAPI plugin. This person uses the second program to send the ECM data to the plugin and collect the Control Words to another little file. This file can be sent back to you - and you use it together with the third program to decrypt the encrypted TS file. On an up-to-date PC, it takes about 15 minutes from the end of the encrypted recording to the finished decrypted TS file.
 

marce

VIP
Messages
7,115
TS Offline Decryption with MDAPI plugins (Acamd etc.)

Code:
Updates:26-06-10

ECMCollector V1.92
- icon added
- minimized to system tray in auto mode

CWCollector V3.02:
- icon added
- minimized to system tray in auto mode
- filter activity is being ignored after collection has finished
- detection of corrupt CWs using their checksums
- collection strategy improved (checking identity with only the last two CWs, ignoring latest CW of the same type (even / odd) as last one, no writing of first received CW if followed by another CW belonging to the same ECM)
- display of received CW corrected

TSDecryptor V1.82:
- icon added
- minimized to system tray in auto mode
- removed unused variable from source
- corrected PCR detection (thanks to ned1986zha)
- changed typo "collection" to "decryption"
- ratio between PES Errors and processed bytes is now used to detect best starting CW pair
 

tani1

Staff member
Super Moderator
Messages
17,767
TS Offline Decryption with MDAPI plugins (Acamd etc.)

Important Updates: (no downward compatibility anymore!):

ECMCollector V1.98:
- some bug fixes
- code optimizations -> faster now
- removed PCR handling due to new synchronization method in TSDecryptor
- writing both scrambled and unscrambled PES headers
- fixed rewriting of extracted files if located in different folder than specified in TSODP.ini
- now possible to close application during collection

CWCollector V3.08:
- removed PCR handling due to new synchronization method in TSDecryptor
- removing redundant CWs and CW checksums from CWS file after end of collection
-> CWS file less than half in size now
- collection strategy completely rewritten
- now detecting cases in which validation via PES header is not available for individual CWs

TSDecryptor V1.87:
- now synchronizing by validating one PES header per scrambling control with all CWs until matching
- now supporting in-between unencrypted parts of source TS file
- CW change algorithm now based on scrambling control instead of ECMs
- code optimizations -> may be faster now
- due to synchronization reasons, the decrypted file will not include the data of the first one or two CW(s) (usually between 8 and 20 seconds)
- ECM PID filtering fixed
- latency (in ms) between scrambling control change and CW change now defined in TSODP.ini, section TSDecryptor; leave this value at 200 unless you experience PES errors; if set to 0, TSDecryptor will use half of the time of one scrambling control interval
- file selection bug fixed
- now displaying newly set CWs
- now possible to close application during decryption

Thx Knowbody
 

tani1

Staff member
Super Moderator
Messages
17,767
TS Offline Decryption with MDAPI plugins (Acamd etc.)

Updates (17-03-2011):

ECMCollector V1.99:
- fixed writing PES header only after scrambling control change

CWCollector V3.09:
- fixed detection of number of different ECMs per table ID
- checking for identical CWs
- fixed crash in case first received CW was invalid as to PESH file

Thx Knowbody
 

marce

VIP
Messages
7,115
Updates (22-03-2011)

Code:
ECMCollector V1.991:
- small code optimization

CWCollector V3.10:
- small bug fixes
- now writing ECM information to CWS file to allow TSDecryptor more reliable synchronization
- fixed bug of .CWS and .CWStemp file if CW collection was continued in a new CWCollector session
- number of maximum retries can now be defined in TSODP.ini, section CWCollector, variable MaxRetries (if set to 0, CWCollector will perform retries until correct CWs are received; if set to >0, the current ECM will be skipped if the maximum number of retries has been reached)

TSDecryptor V1.88:
- now using ECM information from CWS file for more reliable synchronization
- latency (in ms) in TSODP.ini, section TSDecryptor now refers to the latency between ECM change and CW change; leave this value at 200 unless you experience PES errors; if set to 0, TSDecryptor will use half of the time it takes from ECM change to scrambling control change
Thx Knowbody
 

marce

VIP
Messages
7,115
Code:
Updates:

CWCollector V3.11:
- fixed handling of ECM files which include only 1 ECM

TSDecryptor V1.89:
- improved output to ErrorLog.TXT
- fixed deleting source files if a non-PES-related error occured
- now supports decryption of TS files if CWs from only 1 ECM available in CWS file
Thx Knowbody
 
Status
Not open for further replies.
Top