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 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. .TH TSDECRYPT "1" "November 2011" "tsdecrypt 4.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 and then decrypts it
  9. using libdvbcsa and keys obtained from OSCAM or similar cam server. tsdecrypt
  10. communicates with CAM server using camd35 over tcp protocol also known as cs378x.
  11. .SH OPTIONS
  12. .TP
  13. .SH MAIN OPTIONS
  14. .PP
  15. .TP
  16. \fB\-i\fR, \fB\-\-ident\fR <ident>
  17. Set ident that will be used when logging to syslog. The prefered format
  18. for the ident is PROVIDER/CHANNEL.
  19. .TP
  20. \fB\-d\fR, \fB\-\-daemon\fR <pidfile>
  21. When started become a daemon and write pid file to <pidfile>.
  22. .TP
  23. \fB\-N\fR, \fB\-\-notify\-program\fR <program>
  24. Execute \fB<program>\fR when predefined events happen. In order for
  25. this option to work \fB\-\-ident\fR should also be used.
  26. You can use \fBnotify-script.example\fR file as notification program
  27. and an example on how to create your own notification script.
  28. See \fBEVENTS\fR section for detailed description of the events.
  29. .TP
  30. \fB\-S\fR, \fB\-\-syslog\fR
  31. Write log messages to local syslog.
  32. .TP
  33. \fB\-l\fR, \fB\-\-syslog\-host\fR <addr>
  34. Set syslog host. tsdecrypt sends messages to this host over tcp in
  35. syslog compatible format. syslog-ng was tested as receiving syslog server.
  36. .TP
  37. \fB\-L\fR, \fB\-\-syslog\-port\fR <port>
  38. Syslog server port. The default value is \fB514\fR.
  39. .TP
  40. \fB\-D\fR, \fB\-\-debug\fR <level>
  41. Set message debug level. Currently there are five message levels.
  42. 0 = default messages, 1 = show PSI tables, 2 = show EMMs 3 = show
  43. duplicate ECMs, 4 = packet debug. 5 = packet debug + mpeg ts packet
  44. dump.
  45. Setting higher level enables the levels bellow.
  46. .TP
  47. \fB\-V\fR, \fB\-\-version\fR
  48. Show program version.
  49. .TP
  50. \fB\-h\fR, \fB\-\-help\fR
  51. Show program help.
  52. .TP
  53. .SH INPUT OPTIONS
  54. .PP
  55. .TP
  56. \fB\-I\fR, \fB\-\-input\fR <source>
  57. Where to read from. tsdecrypt supports input from files (-I file.ts or -I -)
  58. or multicast (-I 224.0.0.1:5000). By default tsdecrypt reads from \fBstdin\fR.
  59. .TP
  60. \fB\-R\fR, \fB\-\-input\-rtp\fR
  61. When reading from multicast assume the input is RTP stream. NOTE: No RTP
  62. processing/reordering of packets is done. The 12 byte RTP header is just
  63. stripped out and the stream is then processed as normal mpeg transport
  64. stream over UDP multicast.
  65. .TP
  66. \fB\-z\fR, \fB\-\-input\-ignore\-disc\fR
  67. Do not report input discontinuity or RTP discontinuity errors.
  68. .TP
  69. .SH OUTPUT OPTIONS
  70. .PP
  71. .TP
  72. \fB\-O\fR, \fB\-\-output\fR <dest>
  73. Output decrypted stream to <dest>. Destination can be multicast address
  74. (-O 239.0.0.1:5000) or a file (-O file.ts). The default output is \fBstdout\fR.
  75. .TP
  76. \fB\-o\fR, \fB\-\-output\-intf\fR <addr>
  77. Set multicast output interface.
  78. .TP
  79. \fB\-t\fR, \fB\-\-output\-ttl\fR
  80. Set multicast ttl. The default value is \fB1\fR.
  81. .TP
  82. \fB\-p\fR, \fB\-\-output\-filter\fR
  83. Enable output filtering. When output filter is enabled only PAT/PMT/SDT
  84. and data packets are left in the output. Everything else not mentioned
  85. in PMT like NIT, EIT, TDT tables and unknown pids is removed.
  86. .TP
  87. .SH CA OPTIONS
  88. .PP
  89. .TP
  90. \fB\-c\fR, \fB\-\-ca\-system\fR <ca_sys>
  91. Process input EMM/ECM from <ca_sys>. Currently tested and working CA systems
  92. are \fBCONAX\fR, \fBCRYPTOWORKS\fR, \fBIRDETO\fR, \fBVIACCESS\fR, \fBMEDIAGUARD\fR
  93. (\fBSECA\fR) and \fBVIDEOGUARD\fR (\fBNDS\fR). Other supported CA systems that
  94. you can choose but are not tested are \fBNAGRA\fR and \fBDRECRYPT\fR.
  95. The default <ca_sys> is \fBCONAX\fR.
  96. .TP
  97. \fB\-C\fR, \fB\-\-caid\fR <caid>
  98. Directly set CAID. This is useful if you have couple of CA streams from
  99. one CA but with different CAIDs.
  100. .TP
  101. .SH CAMD OPTIONS
  102. .PP
  103. .TP
  104. \fB\-s\fR, \fB\-\-camd\-server\fR <addr[:port]>
  105. Set CAMD server ip and port (10.0.1.1:2233). Is not set default port
  106. is \fB2233\fR. tsdecrypt is tested and working with OSCAM using cs378x protocol
  107. (camd35 over tcp).
  108. .TP
  109. \fB\-U\fR, \fB\-\-camd\-user\fR <username>
  110. Set CAMD user name. The default is \fBuser\fR.
  111. .TP
  112. \fB\-P\fR, \fB\-\-camd\-pass\fR <password>
  113. Set CAMD user password. The default is \fBpass\fR.
  114. .TP
  115. \fB\-y\fR, \fB\-\-camd\-pkt\-delay\fR <usec>
  116. Sleep <usec> microseconds between sending ECM/EMM packets to CAMD. This
  117. is workaround for camd35 OSCAM protocol processing. The default sleep time
  118. is \fB0\fR (workaround is disabled).
  119. .TP
  120. .SH EMM OPTIONS
  121. .PP
  122. .TP
  123. \fB\-e\fR, \fB\-\-emm\fR
  124. Enable sending EMM's to CAMD for processing. By default EMM processing
  125. is \fBdisabled\fR and only ECM are processed.
  126. .TP
  127. \fB\-Z\fR, \fB\-\-emm\-pid\fR <pid>
  128. Set EMM pid manually. This option is useful for services that have
  129. couple of EMM streams from one CA system. Without this option tsdecrypt
  130. always chooses the first stream from the chosen CA system.
  131. .TP
  132. \fB\-E\fR, \fB\-\-emm\-only\fR <hierarchy>
  133. Disable ECM processing and stream output. This option is useful if the EMM
  134. stream has very high rate and is interfering with ECM processing. Using
  135. --emm-only you can run special tsdecrypt dedicated only to card auto update.
  136. .TP
  137. \fB\-f\fR, \fB\-\-emm\-report\-time\fR <seconds>
  138. Set interval for EMM reports. The default is \fB60\fR seconds. Set to \fB0\fR
  139. to disable EMM reports.
  140. .TP
  141. .SH ECM OPTIONS
  142. .PP
  143. .TP
  144. \fB\-X\fR, \fB\-\-ecm\-pid\fR <pid>
  145. Set ECM pid manually. This option is useful for services that have
  146. couple of ECM streams from one CA system. Without this option tsdecrypt
  147. always chooses the first stream from the chosen CA system. Run tsdecrypt
  148. with --debug 2 and look at CA descriptors in PMT to see what CA streams
  149. are available.
  150. .TP
  151. \fB\-H\fR, \fB\-\-ecm\-report\-time\fR <seconds>
  152. Set interval for ECM reports. The default is \fB60\fR seconds. Set to \fB0\fR
  153. to disable ECM reports.
  154. .TP
  155. \fB\-G\fR, \fB\-\-ecm\-irdeto\-type\fR <type>
  156. Set ECM IRDETO type. IRDETO CA send ECMs with different id mixed
  157. into one stream. Only one of the IDs are valid in given time. This
  158. option lets you choose which stream to process. The default stream
  159. type is \fB0\fR.
  160. .TP
  161. \fB\-K\fR, \fB\-\-ecm\-no\-log\fR
  162. Disable logging of ECMs and code words. Code word errors and stats
  163. reports are not affected by this option.
  164. .TP
  165. \fB\-J\fR, \fB\-\-cw\-warn\-time\fR <seconds>
  166. After how much seconds to warn if valid code word was not received.
  167. The default is \fB20\fR seconds. Set to \fB0\fR to disable the warning.
  168. .SH EVENTS
  169. Notification events are sent when \fB\-\-notify\-program\fR and \fB\-\-ident\fR
  170. options are used. The event parameters are set as environmental variables
  171. before executing the external notification program. The variables are:
  172. \fB_TS\fR Unix timestamp of the event.
  173. \fB_IDENT\fR tsdecrypt ident parameter with "/" replaced by "-".
  174. \fB_MESSAGE_ID\fR Event message id (for example START, STOP, etc...).
  175. \fB_MESSAGE_MSG\fR Event message id with "_" replaced by " ".
  176. \fB_MESSAGE_TEXT\fR Event message text. Human readable event message.
  177. currently defined events are:
  178. \fBSTART\fR tsdecrypt was started.
  179. \fBCODE_WORD_OK\fR Valid code word was received and decryption is
  180. working ok.
  181. \fBNO_CODE_WORD\fR No valid code word was received for X seconds. The
  182. decryption process have been suspended until valid
  183. code word is received.
  184. \fBINPUT_TIMEOUT\fR There was no data on the input.
  185. \fBINPUT_OK\fR The data have appeared on the input.
  186. \fBSTOP\fR tsdecrypt was stopped.
  187. See \fBnotify-script.example\fR for an example on how to create external
  188. notification program.
  189. .SH SEE ALSO
  190. See the README file for more information. If you have questions, remarks,
  191. problems or you just want to contact the developer, write to:
  192. \fIgeorgi@unixsol.org\fP
  193. .TP
  194. For more info, see the website at
  195. .I http://georgi.unixsol.org/programs/tsdecrypt/
  196. .SH AUTHORS
  197. Written by Georgi Chorbadzhiyski <\fBgeorgi@unixsol.org\fR>
  198. .SH LICENSE
  199. This program is free software; you can redistribute it and/or modify it under
  200. the terms of version 2 of the GNU General Public License as published by the
  201. Free Software Foundation.