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

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