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

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