Browse Source

Add man page.

Georgi Chorbadzhiyski 12 years ago
parent
commit
daac46d38a
3 changed files with 152 additions and 9 deletions
  1. 18
    8
      Makefile
  2. 0
    1
      TODO
  3. 134
    0
      tsdecrypt.1

+ 18
- 8
Makefile View File

@@ -15,8 +15,11 @@ Q = @
15 15
 
16 16
 PREFIX ?= /usr/local
17 17
 
18
-INSTALL = tsdecrypt
19
-INSTALL_BIN = $(subst //,/,$(DESTDIR)/$(PREFIX)/bin)
18
+INSTALL_PRG = tsdecrypt
19
+INSTALL_PRG_DIR = $(subst //,/,$(DESTDIR)/$(PREFIX)/bin)
20
+
21
+INSTALL_DOC = tsdecrypt.1
22
+INSTALL_DOC_DIR = $(subst //,/,$(DESTDIR)/$(PREFIX)/man/man1)
20 23
 
21 24
 FUNCS_DIR = libfuncs
22 25
 FUNCS_LIB = $(FUNCS_DIR)/libfuncs.a
@@ -64,12 +67,19 @@ distclean: clean
64 67
 	$(Q)$(MAKE) -s -C $(FUNCS_DIR) clean
65 68
 
66 69
 install: all strip
67
-	@install -d "$(INSTALL_BIN)"
68
-	@echo "INSTALL $(INSTALL) -> $(INSTALL_BIN)"
69
-	$(Q)install $(INSTALL) "$(INSTALL_BIN)"
70
+	@install -d "$(INSTALL_PRG_DIR)"
71
+	@install -d "$(INSTALL_DOC_DIR)"
72
+	@echo "INSTALL $(INSTALL_PRG) -> $(INSTALL_PRG_DIR)"
73
+	$(Q)-install $(INSTALL_PRG) "$(INSTALL_PRG_DIR)"
74
+	@echo "INSTALL $(INSTALL_DOC) -> $(INSTALL_DOC_DIR)"
75
+	$(Q)-install --mode 0644 $(INSTALL_DOC) "$(INSTALL_DOC_DIR)"
70 76
 
71 77
 uninstall:
72
-	@-for FILE in $(INSTALL); do \
73
-		echo "RM       $(INSTALL_BIN)/$$FILE"; \
74
-		rm "$(INSTALL_BIN)/$$FILE"; \
78
+	@-for FILE in $(INSTALL_PRG); do \
79
+		echo "RM       $(INSTALL_PRG_DIR)/$$FILE"; \
80
+		rm "$(INSTALL_PRG_DIR)/$$FILE"; \
81
+	done
82
+	@-for FILE in $(INSTALL_DOC); do \
83
+		echo "RM       $(INSTALL_DOC_DIR)/$$FILE"; \
84
+		rm "$(INSTALL_DOC_DIR)/$$FILE"; \
75 85
 	done

+ 0
- 1
TODO View File

@@ -1,3 +1,2 @@
1
-- Write man page.
2 1
 - Make camd comm code modular in order to add more protocols.
3 2
 - Allow to working with unknown CA's (set CAID as command line parameter).

+ 134
- 0
tsdecrypt.1 View File

@@ -0,0 +1,134 @@
1
+.TH TSDECRYPT "1" "September 2011" "tsdecrypt 2.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. Currently
10
+supported and tested crypto systems are Conax, Cryptoworks and Irdeto. tsdecrypt
11
+communicates with camd using camd35 over tcp protocol also known as cs378x.
12
+.SH OPTIONS
13
+.TP
14
+.SH MAIN OPTIONS
15
+.PP
16
+.TP
17
+\fB\-i\fR, \fB\-\-ident\fR <ident>
18
+Set ident that will be used when logging to syslog. The prefered format
19
+for the ident is PROVIDER/CHANNEL.
20
+.TP
21
+\fB\-d\fR, \fB\-\-daemon\fR <pidfile>
22
+When started become a daemon and write pid file to <pidfile>.
23
+.TP
24
+\fB\-l\fR, \fB\-\-syslog\-host\fR <addr>
25
+Set syslog host. tsdecrypt sends messages to this host over tcp in
26
+syslog compatible format. syslog-ng was tested as receiving syslog server.
27
+.TP
28
+\fB\-L\fR, \fB\-\-syslog\-port\fR <port>
29
+Syslog server port. The default value is \fB514\fR.
30
+.TP
31
+\fB\-D\fR, \fB\-\-debug\fR <level>
32
+Set message debug level. Currently there are five message levels.
33
+0 = default messages, 1 = show PSI tables, 2 = show EMMs 3 = show
34
+duplicate ECMs, 4 = packet debug. Setting higher level enables the
35
+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 CAMD 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 and \fBIRDETO\fR. The default <ca_sys> is
80
+\fBCONAX\fR.
81
+.TP
82
+\fB\-s\fR, \fB\-\-camd\-server\fR <addr[:port]>
83
+Set CAMD server ip and port (10.0.1.1:2233). Is not set default port is
84
+\fB2233\fR. tsdecrypt is tested and working with OSCAM using cs378x protocol
85
+(camd35 over tcp).
86
+.TP
87
+\fB\-U\fR, \fB\-\-camd\-user\fR <username>
88
+Set CAMD user name. The default is \fBuser\fR.
89
+.TP
90
+\fB\-P\fR, \fB\-\-camd\-pass\fR <password>
91
+Set CAMD user password. The default is \fBpass\fR.
92
+.TP
93
+\fB\-y\fR, \fB\-\-camd\-pkt\-delay\fR <usec>
94
+Sleep <usec> microseconds between sending ECM/EMM packets to CAMD. This
95
+is workaround for camd35 OSCAM protocol processing. The default sleep time is
96
+\fB0\fR (workaround is disabled).
97
+.TP
98
+.SH EMM OPTIONS
99
+.PP
100
+.TP
101
+\fB\-e\fR, \fB\-\-emm\fR
102
+Enable sending EMM's to CAMD for processing. By default EMM processing
103
+is \fBdisabled\fR and only ECM are processed.
104
+.TP
105
+\fB\-E\fR, \fB\-\-emm\-only\fR <hierarchy>
106
+Disable ECM processing and stream output. This option is useful if the EMM
107
+stream has very high rate and is interfering with ECM processing. Using
108
+--emm-only you can run special tsdecrypt dedicated only to card auto update.
109
+.TP
110
+\fB\-f\fR, \fB\-\-emm\-report\-time\fR <seconds>
111
+Set interval for EMM totals report message. The default is \fB60\fR seconds.
112
+Set to \fB0\fR to disable EMM reporting.
113
+.TP
114
+.SH ECM OPTIONS
115
+.PP
116
+.TP
117
+\fB\-G\fR, \fB\-\-ecm\-irdeto\-type\fR <type>
118
+Set ECM IRDETO type. IRDETO CA send ECMs with different id mixed
119
+into one stream. Only one of the IDs are valid in given time. This
120
+option lets you choose which stream to process. The default stream
121
+type is \fB0\fR.
122
+.SH SEE ALSO
123
+See the README file for more information. If you have questions, remarks,
124
+problems or you just want to contact the developer, write to:
125
+  \fIgeorgi@unixsol.org\fP
126
+.TP
127
+For more info, see the website at
128
+.I http://georgi.unixsol.org/programs/tsdecrypt/
129
+.SH AUTHORS
130
+Writen by Georgi Chorbadzhiyski <\fBgeorgi@unixsol.org\fR>
131
+.SH LICENCE
132
+This program is free software; you can redistribute it and/or modify it under
133
+the terms of version 2 of the GNU General Public License as published by the
134
+Free Software Foundation.

Loading…
Cancel
Save