.TH TSDECRYPT "1" "September 2011" "tsdecrypt 2.0" "User Commands" .SH NAME tsdecrypt - Decrypt mpegts stream. .SH SYNOPSIS .B tsdecrypt [\fIoptions\fR] .SH DESCRIPTION tsdecrypt reads incoming mpeg transport stream over UDP/RTP and then decrypts it using libdvbcsa and keys obtained from OSCAM or similar cam server. tsdecrypt communicates with CAM server using camd35 over tcp protocol also known as cs378x. .SH OPTIONS .TP .SH MAIN OPTIONS .PP .TP \fB\-i\fR, \fB\-\-ident\fR Set ident that will be used when logging to syslog. The prefered format for the ident is PROVIDER/CHANNEL. .TP \fB\-d\fR, \fB\-\-daemon\fR When started become a daemon and write pid file to . .TP \fB\-l\fR, \fB\-\-syslog\-host\fR Set syslog host. tsdecrypt sends messages to this host over tcp in syslog compatible format. syslog-ng was tested as receiving syslog server. .TP \fB\-L\fR, \fB\-\-syslog\-port\fR Syslog server port. The default value is \fB514\fR. .TP \fB\-D\fR, \fB\-\-debug\fR Set message debug level. Currently there are five message levels. 0 = default messages, 1 = show PSI tables, 2 = show EMMs 3 = show duplicate ECMs, 4 = packet debug. Setting higher level enables the levels bellow. .TP \fB\-h\fR, \fB\-\-help\fR Show program help. .TP .SH INPUT OPTIONS .PP .TP \fB\-I\fR, \fB\-\-input\fR Where to read from. tsdecrypt supports input from files (-I file.ts or -I -) or multicast (-I 224.0.0.1:5000). By default tsdecrypt reads from \fBstdin\fR. .TP \fB\-R\fR, \fB\-\-input\-rtp\fR When reading from multicast assume the input is RTP stream. NOTE: No RTP processing/reordering of packets is done. The 12 byte RTP header is just stripped out and the stream is then processed as normal mpegts over UDP multicast. .TP \fB\-z\fR, \fB\-\-input\-ignore\-disc\fR Do not report input discontinuity or RTP discontinuity errors. .TP .SH OUTPUT OPTIONS .PP .TP \fB\-O\fR, \fB\-\-output\fR Output decrypted stream to . Destination can be multicast address (-O 239.0.0.1:5000) or a file (-O file.ts). The default output is \fBstdout\fR. .TP \fB\-o\fR, \fB\-\-output\-intf\fR Set multicast output interface. .TP \fB\-t\fR, \fB\-\-output\-ttl\fR Set multicast ttl. The default value is \fB1\fR. .TP \fB\-p\fR, \fB\-\-output\-filter\fR Enable output filtering. When output filter is enabled only PAT/PMT/SDT and data packets are left in the output. Everything else not mentioned in PMT like NIT, EIT, TDT tables and unknown pids is removed. .TP .SH CA OPTIONS .PP .TP \fB\-c\fR, \fB\-\-ca\-system\fR Process input EMM/ECM from . Currently tested and working CA systems are \fBCONAX\fR, \fBCRYPTOWORKS\fR, \fBIRDETO\fR, \fBVIACCESS\fR, \fBMEDIAGUARD\fR (\fBSECA\fR) and \fBVIDEOGUARD\fR (\fBNDS\fR). Other supported CA systems that you can choose but are not tested are \fBNAGRA\fR and \fBDRECRYPT\fR. The default is \fBCONAX\fR. .TP \fB\-C\fR, \fB\-\-caid\fR Directly set CAID. This is useful if you have couple of CA streams from one CA but with different CAIDs. .TP .SH CAMD OPTIONS .PP .TP \fB\-s\fR, \fB\-\-camd\-server\fR Set CAMD server ip and port (10.0.1.1:2233). Is not set default port is \fB2233\fR. tsdecrypt is tested and working with OSCAM using cs378x protocol (camd35 over tcp). .TP \fB\-U\fR, \fB\-\-camd\-user\fR Set CAMD user name. The default is \fBuser\fR. .TP \fB\-P\fR, \fB\-\-camd\-pass\fR Set CAMD user password. The default is \fBpass\fR. .TP \fB\-y\fR, \fB\-\-camd\-pkt\-delay\fR Sleep microseconds between sending ECM/EMM packets to CAMD. This is workaround for camd35 OSCAM protocol processing. The default sleep time is \fB0\fR (workaround is disabled). .TP .SH EMM OPTIONS .PP .TP \fB\-e\fR, \fB\-\-emm\fR Enable sending EMM's to CAMD for processing. By default EMM processing is \fBdisabled\fR and only ECM are processed. .TP \fB\-Z\fR, \fB\-\-emm\-pid\fR Set EMM pid manually. This option is useful for services that have couple of EMM streams from one CA system. Without this option tsdecrypt always chooses the first stream from the chosen CA system. .TP \fB\-E\fR, \fB\-\-emm\-only\fR Disable ECM processing and stream output. This option is useful if the EMM stream has very high rate and is interfering with ECM processing. Using --emm-only you can run special tsdecrypt dedicated only to card auto update. .TP \fB\-f\fR, \fB\-\-emm\-report\-time\fR Set interval for EMM reports. The default is \fB60\fR seconds. Set to \fB0\fR to disable EMM reports. .TP .SH ECM OPTIONS .PP .TP \fB\-X\fR, \fB\-\-ecm\-pid\fR Set ECM pid manually. This option is useful for services that have couple of ECM streams from one CA system. Without this option tsdecrypt always chooses the first stream from the chosen CA system. Run tsdecrypt with --debug 2 and look at CA descriptors in PMT to see what CA streams are available. .TP \fB\-H\fR, \fB\-\-ecm\-report\-time\fR Set interval for ECM reports. The default is \fB60\fR seconds. Set to \fB0\fR to disable ECM reports. .TP \fB\-G\fR, \fB\-\-ecm\-irdeto\-type\fR Set ECM IRDETO type. IRDETO CA send ECMs with different id mixed into one stream. Only one of the IDs are valid in given time. This option lets you choose which stream to process. The default stream type is \fB0\fR. .TP \fB\-K\fR, \fB\-\-ecm\-no\-log\fR Disable logging of ECMs and code words. Code word errors and stats reports are not affected by this option. .TP \fB\-J\fR, \fB\-\-cw\-warn\-time\fR After how much seconds to warn if valid code word was not received. The default is \fB20\fR seconds. Set to \fB0\fR to disable the warning. .SH SEE ALSO See the README file for more information. If you have questions, remarks, problems or you just want to contact the developer, write to: \fIgeorgi@unixsol.org\fP .TP For more info, see the website at .I http://georgi.unixsol.org/programs/tsdecrypt/ .SH AUTHORS Writen by Georgi Chorbadzhiyski <\fBgeorgi@unixsol.org\fR> .SH LICENCE This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation.