You can use notify-script.example file as notification program and an example on how to create your own notification script.
See EVENTS section for detailed description of the events.
tsdecrypt -I 239.78.78.78:5000 -O /dev/null -s 0.0.0.0 -W file.ts
For more information about filtering and for example filters, please read FILTERING file that comes with tsdecrypt. This option can be used multiple times to define up to 16 different filters.
The file should be normal text file, the format of the file is described bellow.
Bellow is an example text file, lines starting with # are ignored and also 0x prefixes are ignored. Any other symbol in the file is processed as hex number. An example file might look like this:
# comment aa bb cc dd ee ff 01 02 03 04 # Other comment 0x05 0x06 0x07
_TS Unix timestamp of the event.
_IDENT tsdecrypt ident parameter with "/" replaced by "-".
_MESSAGE_ID Event message id (for example START, STOP, etc...).
_MESSAGE_MSG Event message id with "_" replaced by " ".
_MESSAGE_TEXT Event message text. Human readable event message.
currently defined events are:
START tsdecrypt was started.
CODE_WORD_OK Valid code word was received and decryption is
working ok.
NO_CODE_WORD No valid code word was received for X seconds. The
decryption process have been suspended until valid
code word is received.
NO_EMM_RECEIVED No EMM packet have been received for X seconds.
INPUT_TIMEOUT There was no data on the input.
INPUT_OK The data have appeared on the input.
STOP tsdecrypt was stopped.
See notify-script.example for an example on how to create external notification program.
# Decrypt multicast stream from 239.0.50.11:5000 using 10.0.1.1:2233 # as camd server and output decrypted result to 239.78.78.78:5000 tsdecrypt --camd-server 10.0.1.1 \ --input 239.0.50.11:5000 --output 239.78.78.78:5000 # Same as above but enable EMM processing tsdecrypt --emm --camd-server 10.0.1.1:2233 \ --input 239.0.50.11:5000 --output 239.78.78.78:5000 # Same as above but do not filter output stream thus allowing # EIT/TOT/NIT, etc tables to passthrough tsdecrypt --no-output-filter --emm --camd-server 10.0.1.1 \ --input 239.0.50.11:5000 --output 239.78.78.78:5000 # Choose program/service_id to decrypt. Useful when the input is MPTS tsdecrypt --camd-server 10.0.1.1 --input-service 1234 \ --input 239.0.50.11:5000 --output 239.78.78.78:5000 # Read stream over RTP and process VIACCESS encoded channel tsdecrypt --ca-system VIACCESS --emm --camd-server 10.0.1.1:2233 \ --input-rtp --input 239.0.50.11:5000 --output 239.78.78.78:5000 # Decrypt stream encypted with CAID 0x0963 (NDS, sky) tsdecrypt --camd-server 10.0.1.1 --ca-system NDS --caid 0x0963 \ --input 239.0.50.11:5000 --output 239.78.78.78:5000 # Send only EMMs to OSCAM for CAID 0x0963 (NDS, sky) tsdecrypt --camd-server 10.0.1.1 --emm-only --caid 0x0963 \ --input 239.0.50.11:5000 --output /dev/null # Decrypt stream encypted with CAID 0x5581 (Bulcrypt) tsdecrypt --camd-server 10.0.1.1 --caid 0x5581 \ --input 239.0.50.11:5000 --output 239.78.78.78:5000 # Decrypt BISS encrypted stream tsdecrypt --biss-key 0x112233445566 --input 239.0.50.11:5000 \ --output 239.78.78.78:5000 # Decrypt file encypted with constant code word tsdecrypt --const-cw 0x00000000000000001111111111111111 \ --input encrypted-file.ts --output file://decrypted-file.ts # Send ECM from file tsdecrypt --ecm-file ecm.txt --caid 0x5581 --input-service 12345 \ --camd-server example.com # Decrypt IRDETO stream from Raduga (CHID == 0x0015) tsdecrypt --input 239.0.50.11:5000 --output 239.78.78.78:5000 \ --camd-server example.com \ --ca-system IRDETO --caid 0x0652 --ecm-irdeto-chid 0x0015