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

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