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

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