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. https://georgi.unixsol.org/programs/tsdecrypt/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tsdecrypt.1 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. .TH TSDECRYPT "1" "September 2013" "tsdecrypt 10.0" "User Commands"
  2. .SH NAME
  3. tsdecrypt \- Decrypt mpeg transport stream.
  4. .SH SYNOPSIS
  5. .B tsdecrypt
  6. [\fIoptions\fR]
  7. .SH DESCRIPTION
  8. tsdecrypt reads incoming mpeg transport stream over UDP/RTP or file and
  9. then decrypts it by after retriving code words from OSCAM or similar
  10. CAMD server. tsdecrypt communicates with CAM server using cs378x (camd35
  11. over tcp) protocol or newcamd protocol.
  12. .SH OPTIONS
  13. .TP
  14. .SH MAIN OPTIONS
  15. .PP
  16. .TP
  17. \fB\-i\fR, \fB\-\-ident\fR <ident>
  18. Set ident that will be used when logging to syslog. The preferred format
  19. for the ident is PROVIDER/CHANNEL.
  20. .TP
  21. \fB\-d\fR, \fB\-\-daemon\fR <pidfile>
  22. When started become a daemon and write pid file to <pidfile>.
  23. .TP
  24. \fB\-N\fR, \fB\-\-notify\-program\fR <program>
  25. Execute \fB<program>\fR when predefined events happen. In order for
  26. this option to work \fB\-\-ident\fR should also be used.
  27. You can use \fBnotify\-script.example\fR file as notification program
  28. and an example on how to create your own notification script.
  29. See \fBEVENTS\fR section for detailed description of the events.
  30. .TP
  31. \fB\-9\fR, \fB\-\-notify-wait\fR
  32. Wait for notification script to exit before starting another notification.
  33. By default notifications script is executed as soon as notification is
  34. received. But since several notifications might come at one time, there
  35. is no guarantee that notification script would be run sequentially. The
  36. notification script for newer notification might be run before an older
  37. notification.
  38. Setting this option makes sure that you'll have only one notify script
  39. running. \fB*NOTE*\fR if you set this option make sure that notification
  40. script does not take a lot of time to run or you'll run into problems.
  41. .TP
  42. \fB\-0\fR, \fB\-\-status-file\fR <filename>
  43. Write latest notification in file named <filename>. You can monitor this
  44. file to know what is the current tsdecrypt status.
  45. The file contains the following fields (see \fBEVENTS\fR bellow) separated
  46. by the pipe symbol (|).
  47. _IDENT
  48. _TS
  49. _MESSAGE_ID
  50. _MESSAGE_TEXT
  51. _INPUT_ADDR
  52. _OUTPUT_ADDR
  53. See \fBEVENTS\fR section for detailed description of the events.
  54. See \fBnotify-script.example\fR for example how to implement
  55. \fB--status-file\fR by using external notification script.
  56. .TP
  57. \fB\-S\fR, \fB\-\-syslog\fR
  58. Write log messages to local syslog.
  59. .TP
  60. \fB\-l\fR, \fB\-\-syslog\-host\fR <addr>
  61. Set syslog host. tsdecrypt sends messages to this host over tcp in
  62. syslog compatible format. syslog\-ng was tested as receiving syslog server.
  63. .TP
  64. \fB\-L\fR, \fB\-\-syslog\-port\fR <port>
  65. Syslog server port. The default value is \fB514\fR.
  66. .TP
  67. \fB\-F\fR, \fB\-\-log\-file\fR <filename>
  68. Write logging data to <filename>. This option can be used along with syslog.
  69. .TP
  70. \fB\-D\fR, \fB\-\-debug\fR <level>
  71. Set message debug level. Currently there are five message levels.
  72. 0 = default messages, 1 = show PSI tables, 2 = show EMMs 3 = show
  73. duplicate ECMs, 4 = packet debug. 5 = packet debug + mpeg ts packet
  74. dump.
  75. Setting higher level enables the levels bellow.
  76. .TP
  77. \fB\-j\fR, \fB\-\-pid\-report\fR
  78. When this option is used, tsdecrypt on exit reports how much packets
  79. were received on each PID.
  80. .TP
  81. \fB\-b\fR, \fB\-\-bench\fR
  82. Bechmark the CSA decryption. The benchmark is single threaded.
  83. If you want to fully test your CPU, run couple of tsdecrypts in parallel.
  84. .TP
  85. \fB\-V\fR, \fB\-\-version\fR
  86. Show program version.
  87. .TP
  88. \fB\-h\fR, \fB\-\-help\fR
  89. Show program help.
  90. .TP
  91. .SH INPUT OPTIONS
  92. .PP
  93. .TP
  94. \fB\-I\fR, \fB\-\-input\fR <source>
  95. Where to read from. tsdecrypt supports input from file (\-I file://file.ts),
  96. IPv4 multicast/unicast addresses (\-I 224.0.0.1:5000) or IPv6 multicast/unicast
  97. addresses (\-I [ff01::1111]:5000). By default tsdecrypt reads from \fBstdin\fR.
  98. .TP
  99. \fB\-1\fR, \fB\-\-input\-source\fR <ipaddr>
  100. Set multicast input source address using IP_ADD_SOURCE_MEMBERSHIP. This works
  101. only for IPv4 multicast. The default value is 0.0.0.0 (do not apply source
  102. filtering).
  103. .TP
  104. \fB\-R\fR, \fB\-\-input\-rtp\fR
  105. When reading from multicast assume the input is RTP stream. NOTE: No RTP
  106. processing/reordering of packets is done. The 12 byte RTP header is just
  107. stripped out and the stream is then processed as normal mpeg transport
  108. stream over UDP multicast.
  109. .TP
  110. \fB\-z\fR, \fB\-\-input\-ignore\-disc\fR
  111. Do not report input discontinuity or RTP discontinuity errors.
  112. .TP
  113. \fB\-M\fR, \fB\-\-input\-service\fR <service_id>
  114. Choose the service id. This option must be used when the input is MPTS
  115. in order to select the correct service (program). If the input is MPTS
  116. and \fB\-\-input\-service\fR is not used, tsdecrypt chooses the last service
  117. listed in PAT.
  118. .TP
  119. \fB\-T\fR, \fB\-\-input\-buffer\fR <miliseconds>
  120. Use this option to delay the decoding for certain amount of milliseconds. This
  121. allows tsdecrypt to decode services even if OSCAM returns code word too late.
  122. For example SkyUK sends code words ~700 ms before it starts using them. This
  123. means that if OSCAM is unable to return code word in less than 700 ms the
  124. decryption will fail for a small amount of time. Setting \-\-input\-buffer 1000
  125. will solve the problem in this case.
  126. .TP
  127. \fB\-W\fR, \fB\-\-input\-dump\fR <filename>
  128. Save input stream in <filename>. If the input is RTP, the file will contain
  129. the data without RTP headers (pure mpeg transport stream). Easiest way to
  130. save the input is using command line like the following:
  131. tsdecrypt \-I 239.78.78.78:5000 \-O /dev/null \-s 0.0.0.0 \-W file.ts
  132. .TP
  133. .SH OUTPUT OPTIONS
  134. .PP
  135. .TP
  136. \fB\-O\fR, \fB\-\-output\fR <dest>
  137. Output decrypted stream to <dest>. The destination can be IPv4 multicast
  138. address (\-O 239.0.0.1:5000), IPv6 mulicast address (\-O [ff01::2222]:5000),
  139. hostname that resolves to IPv4/IPv6 address (\-O example.com:5000) or file.
  140. When the output is file, the file name should be prefixed with file://
  141. (\-O file://out.ts)if it doesn't contain / symbol. The default output
  142. is \fBstdout\fR.
  143. .TP
  144. \fB\-o\fR, \fB\-\-output\-intf\fR <value>
  145. Set multicast output interface. The value can be IPv4 address of the output
  146. interface (default: 0.0.0.0 /any/) or in the case of IPv6 the interface
  147. number (default: -1 /any/).
  148. .TP
  149. \fB\-t\fR, \fB\-\-output\-ttl\fR
  150. Set multicast ttl. The default value is \fB1\fR.
  151. .TP
  152. \fB\-g\fR, \fB\-\-output\-tos\fR
  153. Set TOS value of output packets. The default is not to set any specific TOS.
  154. .TP
  155. \fB\-r\fR, \fB\-\-output\-rtp\fR
  156. Enable RTP output. The default output is standard MPEG TS over UDP, this
  157. option enables tsdecrypt to output RTP packets.
  158. .TP
  159. \fB\-k\fR, \fB\-\-output\-rtp\-ssrc\fR <ssrc>
  160. .TP
  161. \fB\-u\fR, \fB\-\-no\-output\-on\-error\fR
  162. Filter all output when there is no valid code word.
  163. .TP
  164. \fB\-p\fR, \fB\-\-no\-output\-filter\fR
  165. Disable output filtering. By default the output filter is enabled and only
  166. PAT/PMT/SDT and data packets are left in the output. Everything else not
  167. mentioned in PMT like NIT, EIT, TDT tables and unknown pids is removed.
  168. .TP
  169. \fB\-3\fR, \fB\-\-output\-enc\-pass\fR
  170. Output the stream even if it is encrypted. By default tsdecrypt detects
  171. if the stream is still encrypted after passing through decryption and
  172. does not output it.
  173. .TP
  174. \fB\-y\fR, \fB\-\-output\-nit\-pass\fR
  175. Pass through NIT packets when output filtering is enabled.
  176. .TP
  177. \fB\-w\fR, \fB\-\-output\-eit\-pass\fR
  178. Pass through EIT (EPG) packets when output filtering is enabled.
  179. .TP
  180. \fB\-x\fR, \fB\-\-output\-tdt\-pass\fR
  181. Pass through TDT/TOT packets when output filtering is enabled.
  182. .TP
  183. .SH CA OPTIONS
  184. .PP
  185. .TP
  186. \fB\-c\fR, \fB\-\-ca\-system\fR <ca_sys>
  187. Process input EMM/ECM from <ca_sys>. Currently tested and working CA systems
  188. are \fBCONAX\fR, \fBCRYPTOWORKS\fR, \fBIRDETO\fR, \fBVIACCESS\fR, \fBMEDIAGUARD\fR
  189. (\fBSECA\fR) and \fBVIDEOGUARD\fR (\fBNDS\fR), \fBNAGRA\fR, \fBBULCRYPT\fR,
  190. \fBGRIFFIN\fR and \fBDGCRYPT\fR.
  191. Other supported CA system that you can choose but is not tested is \fBDRECRYPT\fR.
  192. The default \fB<ca_sys>\fR is \fBCONAX\fR. You can override the default CAS CAIDs
  193. by using \fB\-\-caid\fR parameter.
  194. .TP
  195. \fB\-C\fR, \fB\-\-caid\fR <caid>
  196. Directly set CAID. This is useful if you have couple of CA streams from
  197. one CA but with different CAIDs or CAS that is unsupported by \fB\-\-ca\-system\fR
  198. parameter.
  199. .TP
  200. \fB\-Y\fR, \fB\-\-const\-cw\fR <code_word>
  201. Set constant code word to be used for decryption. The \fB<code_word>\fR should
  202. contain 32 hex chars. For example using \fBa1a2a3a4a5a6a7a8b1b2b3b4b5b6b7b8\fR
  203. as parameter will set even code word to \fBa1a2a3a4a5a6a7a8\fR and odd code
  204. word to \fBb1b2b3b4b5b6b7b8\fR.
  205. .TP
  206. \fB\-Q\fR, \fB\-\-biss\-key\fR <biss_key>
  207. Set BISS key to be used for decryption. The \fB<biss_key>\fR should
  208. contain 12 chars (hex). For example \fB112233445566\fR is valid BISS key.
  209. If the BISS key contains 16 chars this means that the key CRC is embeded
  210. in the key. These keys are also supported (they are the same as using
  211. constant code word with same code words for even and odd keys).
  212. .TP
  213. .SH CAMD OPTIONS
  214. .PP
  215. .TP
  216. \fB\-A\fR, \fB\-\-camd\-proto\fR <protocol>
  217. Set CAMD server protocol. Valid protocols are \fBCS378X\fR and \fBNEWCAMD\fR.
  218. If this option is not used the default protocol is \fBCS378X\fR (camd35 over
  219. tcp).
  220. .TP
  221. \fB\-s\fR, \fB\-\-camd\-server\fR <hostname[:port]>
  222. Set CAMD server address. You can use IPv4/IPv6 address or hostname. If the port
  223. is not set then \fB2233\fR is used as default port. 2233 is the default port
  224. for CS378X protocol but for NEWCAMD protocol you probably should choose other
  225. port number. To set static IPv6 address you have to put in in brackets (\fB[]\fR)
  226. for example: \fB[1234::5678]:2233\fR
  227. .TP
  228. \fB\-U\fR, \fB\-\-camd\-user\fR <username>
  229. Set CAMD user name. The default is \fBuser\fR.
  230. .TP
  231. \fB\-P\fR, \fB\-\-camd\-pass\fR <password>
  232. Set CAMD user password. The default is \fBpass\fR.
  233. .TP
  234. \fB\-B\fR, \fB\-\-camd\-des\-key\fR <des_key>
  235. Set DES key used by NEWCAMD protocol. The default
  236. is \fB0102030405060708091011121314\fR.
  237. .TP
  238. \fB\-4\fR, \fB\-\-ipv4\fR
  239. Connect to CAMD server using only IPv4 addresses of the server. IPv6
  240. addresses would be are ignorred.
  241. .TP
  242. \fB\-6\fR, \fB\-\-ipv6\fR
  243. Connect to CAMD server using only IPv6 addresses of the server. IPv4
  244. addresses would be are ignorred.
  245. .TP
  246. .SH EMM OPTIONS
  247. .PP
  248. .TP
  249. \fB\-e\fR, \fB\-\-emm\fR
  250. Enable sending EMM's to CAMD for processing. By default EMM processing
  251. is \fBdisabled\fR and only ECM are processed.
  252. .TP
  253. \fB\-Z\fR, \fB\-\-emm\-pid\fR <pid>
  254. Set EMM pid manually. This option is useful for services that have
  255. couple of EMM streams from one CA system. Without this option tsdecrypt
  256. always chooses the first stream from the chosen CA system.
  257. .TP
  258. \fB\-E\fR, \fB\-\-emm\-only\fR
  259. Disable ECM processing and stream output. This option is useful if the EMM
  260. stream has very high rate and is interfering with ECM processing. Using
  261. \-\-emm\-only you can run special tsdecrypt dedicated only to keeping
  262. card entitlements up to date.
  263. .TP
  264. \fB\-f\fR, \fB\-\-emm\-report\-time\fR <seconds>
  265. Set interval for EMM reports. The default is \fB60\fR seconds. Set to \fB0\fR
  266. to disable EMM reports.
  267. .TP
  268. \fB\-a\fR, \fB\-\-emm\-filter\fR <filter_definition>
  269. Add EMM filter described by <filter_definition>. EMM filters are useful if
  270. you want to limit the number of EMMs that should reach your CAMD server.
  271. The basic \fB<filter_defintion>\fR is \fBCommand/Settings\fR where
  272. the commands are: \fBaccept_all\fR, \fBreject_all\fR, \fBaccept\fR
  273. and \fBreject\fR.
  274. For more information about filtering and for example filters, please
  275. read \fBFILTERING\fR file that comes with tsdecrypt. This option can be
  276. used multiple times to define up to \fB16\fR different filters.
  277. .TP
  278. .SH ECM OPTIONS
  279. .PP
  280. .TP
  281. \fB\-X\fR, \fB\-\-ecm\-pid\fR <pid>
  282. Set ECM pid manually. This option is useful for services that have
  283. couple of ECM streams from one CA system. Without this option tsdecrypt
  284. always chooses the first stream from the chosen CA system. Run tsdecrypt
  285. with \-\-debug 2 and look at CA descriptors in PMT to see what CA streams
  286. are available.
  287. .TP
  288. \fB\-v\fR, \fB\-\-ecm\-only\fR
  289. Process ECMs but do not decode the input stream. This option is useful if
  290. you just want to populate you OSCAM DCW cache but do not want to waste CPU
  291. time on stream decoding.
  292. .TP
  293. \fB\-H\fR, \fB\-\-ecm\-report\-time\fR <seconds>
  294. Set interval for ECM reports. The default is \fB60\fR seconds. Set to \fB0\fR
  295. to disable ECM reports.
  296. .TP
  297. \fB\-G\fR, \fB\-\-ecm\-irdeto\-type\fR <int>
  298. Set the index of the IRDETO ECM stream. \fBNOTE: This option is deprecated,
  299. better use \-\-ecm\-irdeto\-chid\fR.
  300. .TP
  301. \fB\-2\fR, \fB\-\-ecm\-irdeto\-chid\fR <int>
  302. IRDETO CA sends ECMs mixed in single stream on single PID. In order to select
  303. the correct ECM stream the so called CHID number is used. Oscam reports what
  304. CHIDs are activated in your card and tsdecrypt allows you to set the correct
  305. CHID number using this option. tsderypt reports what CHIDs are available
  306. in the incoming ECM stream. The CHID is 16-bit number (0x0000 - 0xffff).
  307. .TP
  308. \fB\-K\fR, \fB\-\-ecm\-no\-log\fR
  309. Disable logging of ECMs and code words. Code word errors and stats
  310. reports are not affected by this option.
  311. .TP
  312. \fB\-J\fR, \fB\-\-cw\-warn\-time\fR <seconds>
  313. After how much seconds to warn if valid code word was not received.
  314. The default is \fB60\fR seconds. Set to \fB0\fR to disable the warning.
  315. .TP
  316. \fB\-q\fR, \fB\-\-ecm\-and-emm-only\fR
  317. Process ECMs and EMMs but do not decode the input stream. This option combines
  318. \-\-ecm\-only and \-\-emm\-only options. Use it if you want to populate your
  319. OSCAM DCW cache and keep your card entitlements updated but do not want to
  320. waste CPU time on stream decoding.
  321. .TP
  322. .SH DEBUG OPTIONS
  323. .PP
  324. .TP
  325. \fB\-n\fR, \fB\-\-ecm\-file\fR <file.txt>
  326. Read ECM from text file and send it to CAMD server for processing. This
  327. option must be used along with \fB\-\-caid\fR and \fB\-\-input-service\fR
  328. options.
  329. The file should be normal text file, the format of the file is described
  330. bellow.
  331. .TP
  332. \fB\-m\fR, \fB\-\-emm\-file\fR <file.txt>
  333. Read EMM from text file and send it to CAMD server for processing. This
  334. option must be used along with \fB\-\-caid\fR and \fB\-\-input-service\fR
  335. options.
  336. Bellow is an example text file, lines starting with # are ignored and
  337. also 0x prefixes are ignored. Any other symbol in the file is processed
  338. as hex number. An example file might look like this:
  339. .nf
  340. # comment
  341. aa bb cc dd ee
  342. ff 01 02 03 04
  343. # Other comment
  344. 0x05 0x06 0x07
  345. .fi
  346. .SH EVENTS
  347. Notification events are sent when \fB\-\-notify\-program\fR and \fB\-\-ident\fR
  348. options are used. The event parameters are set as environmental variables
  349. before executing the external notification program. The variables are:
  350. \fB_TS\fR Unix timestamp of the event.
  351. \fB_IDENT\fR tsdecrypt ident parameter with "/" replaced by "\-".
  352. \fB_INPUT_ADDR\fR Input address and port (for example 239.1.2.3:5000)
  353. \fB_OUTPUT_ADDR\fR Output address and port (for example 239.9.8.7:5000)
  354. \fB_MESSAGE_ID\fR Event message id (for example START, STOP, etc...).
  355. \fB_MESSAGE_MSG\fR Event message id with "_" replaced by " ".
  356. \fB_MESSAGE_TEXT\fR Event message text. Human readable event message.
  357. currently defined events are:
  358. \fBSTART\fR tsdecrypt was started.
  359. \fBNO_PROGRAM\fR There is an input but there is no valid program
  360. in the input (PMT table is missing). This error is
  361. reported when there 15 seconds have passed since
  362. last valid PMT was received. When this error is
  363. active tsdecrypt stops outputing the stream.
  364. \fBCODE_WORD_OK\fR Valid code word was received and decryption is
  365. working ok.
  366. \fBNO_CODE_WORD\fR No valid code word was received for X seconds. The
  367. decryption process have been suspended until valid
  368. code word is received. This event is sent only if
  369. the stream is encrypted and there are no new code
  370. words from the CAMD server.
  371. \fBSTREAM_CLEAR\fR No encrypted packets arrived in the input stream.
  372. The stream is not encrypted and clear to view.
  373. \fBNO_EMM_RECEIVED\fR No EMM packet have been received for X seconds.
  374. \fBINPUT_TIMEOUT\fR There was no data on the input.
  375. \fBINPUT_OK\fR The data have appeared on the input.
  376. \fBENCRYPTED_OUTPUT\fR The received keyword can not decrypt the stream
  377. \fBOUTPUT_OK\fR The stream that is beeing processed is decrypted
  378. \fBSTOP\fR tsdecrypt was stopped.
  379. See \fBnotify\-script.example\fR for an example on how to create external
  380. notification program.
  381. .SH EXAMPLES
  382. To get a quick start here are some example command lines. The default
  383. CA system is set to CONAX, you can change it using \fB\-\-ca-system\fR parameter.
  384. .nf
  385. # Decrypt multicast stream from 239.0.50.11:5000 using 10.0.1.1:2233
  386. # as camd server and output decrypted result to 239.78.78.78:5000
  387. tsdecrypt --camd-server 10.0.1.1 \\
  388. --input 239.0.50.11:5000 --output 239.78.78.78:5000
  389. # Same as above but enable EMM processing
  390. tsdecrypt --emm --camd-server 10.0.1.1:2233 \\
  391. --input 239.0.50.11:5000 --output 239.78.78.78:5000
  392. # Same as above but do not filter output stream thus allowing
  393. # EIT/TOT/NIT, etc tables to passthrough
  394. tsdecrypt --no-output-filter --emm --camd-server 10.0.1.1 \\
  395. --input 239.0.50.11:5000 --output 239.78.78.78:5000
  396. # Choose program/service_id to decrypt. Useful when the input is MPTS
  397. tsdecrypt --camd-server 10.0.1.1 --input-service 1234 \\
  398. --input 239.0.50.11:5000 --output 239.78.78.78:5000
  399. # Read stream over RTP and process VIACCESS encoded channel
  400. tsdecrypt --ca-system VIACCESS --emm --camd-server 10.0.1.1:2233 \\
  401. --input-rtp --input 239.0.50.11:5000 --output 239.78.78.78:5000
  402. # Decrypt stream encypted with CAID 0x0963 (NDS, sky)
  403. tsdecrypt --camd-server 10.0.1.1 --ca-system NDS --caid 0x0963 \\
  404. --input 239.0.50.11:5000 --output 239.78.78.78:5000
  405. # Send only EMMs to OSCAM for CAID 0x0963 (NDS, sky)
  406. tsdecrypt --camd-server 10.0.1.1 --emm-only --caid 0x0963 \\
  407. --input 239.0.50.11:5000 --output /dev/null
  408. # Decrypt stream encypted with CAID 0x5581 (Bulcrypt)
  409. tsdecrypt --camd-server 10.0.1.1 --caid 0x5581 \\
  410. --input 239.0.50.11:5000 --output 239.78.78.78:5000
  411. # Decrypt BISS encrypted stream
  412. tsdecrypt --biss-key 0x112233445566 --input 239.0.50.11:5000 \\
  413. --output 239.78.78.78:5000
  414. # Decrypt file encypted with constant code word
  415. tsdecrypt --const-cw 0x00000000000000001111111111111111 \\
  416. --input encrypted-file.ts --output file://decrypted-file.ts
  417. # Send ECM from file
  418. tsdecrypt --ecm-file ecm.txt --caid 0x5581 --input-service 12345 \\
  419. --camd-server example.com
  420. # Decrypt IRDETO stream from Raduga (CHID == 0x0015)
  421. tsdecrypt --input 239.0.50.11:5000 --output 239.78.78.78:5000 \\
  422. --camd-server example.com \\
  423. --ca-system IRDETO --caid 0x0652 --ecm-irdeto-chid 0x0015
  424. .fi
  425. .SH SEE ALSO
  426. See the README file for more information. If you have questions, remarks,
  427. problems or you just want to contact the developer, write to:
  428. \fIgeorgi@unixsol.org\fP
  429. .TP
  430. For more info, see the website at
  431. .I https://georgi.unixsol.org/programs/tsdecrypt/
  432. .SH AUTHORS
  433. Written by Georgi Chorbadzhiyski <\fBgeorgi@unixsol.org\fR>
  434. .SH LICENSE
  435. This program is free software; you can redistribute it and/or modify it under
  436. the terms of version 2 of the GNU General Public License as published by the
  437. Free Software Foundation.