Browse Source

Add documentation.

Georgi Chorbadzhiyski 10 years ago
parent
commit
b653401e30
3 changed files with 185 additions and 1 deletions
  1. 100
    0
      README
  2. 0
    1
      TODO
  3. 85
    0
      tsdumper2.1

+ 100
- 0
README View File

@@ -0,0 +1,100 @@
1
+tsdumper2
2
+=========
3
+tsdumper2 reads incoming mpeg transport stream over UDP/RTP and then
4
+records it to disk. The files names are generated based on preconfigured
5
+time interval.
6
+
7
+License
8
+=======
9
+tsdumper2 is released under GNU GPL v2.
10
+
11
+Development
12
+===========
13
+The development is done using git. tsdumper2 repository is hosted
14
+at http://github.com/gfto/tsdumper2
15
+
16
+To clone the repository issue the following commands:
17
+
18
+   git clone git://github.com/gfto/tsdumper2.git
19
+   cd tsdumper2
20
+   git submodule init
21
+   git submodule update
22
+   make
23
+
24
+The code is developed and tested under modern Linux. It is also
25
+compiled from time to time under OS X but is not tested there.
26
+
27
+To see all Makefile targets run 'make help'.
28
+
29
+Updating the code
30
+=================
31
+To update cloned tsdumper2, go to the directory where the repository
32
+is cloned and run the following commands:
33
+
34
+   git fetch origin
35
+   git merge origin/master
36
+   git submodule update
37
+   make clean all
38
+
39
+tsdumper2's master branch should always be useful so it is safe to
40
+use it instead of official release. The master branch will always
41
+be better than any released version.
42
+
43
+Command line parameters
44
+=======================
45
+tsdumper2 is controlled using command line parameters. For more information
46
+about the parameters see the man page. Here is a list of supported command
47
+line parameters:
48
+
49
+        Usage: tsdumper2 -n <name> -i <input>
50
+
51
+Settings:
52
+ -n --prefix <name>         | Filename prefix.
53
+ -s --seconds <seconds>     | How much to save (default: 60 sec).
54
+ -d --output-dir <dir>      | Startup directory (default: .).
55
+ -D --create-dirs           | Save files in subdirs YYYY/MM/DD/HH/file.
56
+
57
+Input options:
58
+ -i --input <source>        | Where to read from.
59
+                            .  -i udp://224.0.0.1:5000    (v4 multicast)
60
+                            .  -i udp://[ff01::1111]:5000 (v6 multicast)
61
+                            .  -i rtp://224.0.0.1:5000    (v4 RTP input)
62
+                            .  -i rtp://[ff01::1111]:5000 (v6 RTP input)
63
+ -z --input-ignore-disc     | Do not report discontinuty errors in input.
64
+ -4 --ipv4                  | Use only IPv4 addresses.
65
+ -6 --ipv6                  | Use only IPv6 addresses.
66
+
67
+Examples
68
+========
69
+To get a quick start here are some example command lines.
70
+
71
+Examples:
72
+
73
+   # Read multicast stream from 239.78.78.78:5000 and save it in
74
+   # files with test- prefix
75
+   tsdumper2 --input udp://239.78.78.78:5000/ --prefix test
76
+
77
+   # Same as above but create directories YYYY/MM/DD/HH and put
78
+   # files into the directory.
79
+   tsdumper2 --input udp://239.78.78.78:5000/ --prefix test --create-dirs
80
+
81
+   # Same as above but create directories YYYY/MM/DD/HH and put
82
+   # files into the directory and create new file each 10 seconds.
83
+   tsdumper2 --input udp://239.78.78.78:5000/ --prefix test --create-dirs --seconds 10
84
+
85
+Reporting bugs
86
+==============
87
+If you think you have found bug in tsdumper2, please report it to the
88
+e-mail listed in Contact section (see below) of this README file.
89
+
90
+Releases
91
+========
92
+Official releases can be downloaded from tsdumper2 home page which is
93
+
94
+   http://georgi.unixsol.org/programs/tsdumper2/
95
+
96
+Contact
97
+=======
98
+For patches, bug reports, complaints and so on send e-mail to
99
+
100
+   Georgi Chorbadzhiyski <georgi@unixsol.org>

+ 0
- 1
TODO View File

@@ -1,2 +1 @@
1
-- Add README and man page.
2 1
 - Add http input.

+ 85
- 0
tsdumper2.1 View File

@@ -0,0 +1,85 @@
1
+.TH TSDUMPER2 "1" "July 2013" "tsdumper2 0.9" "User Commands"
2
+.SH NAME
3
+tsdumper2 \- Record mpeg transport stream in files.
4
+.SH SYNOPSIS
5
+.B tsdumper2 -n <name> -i <input> \fI..other options..\fR
6
+.SH DESCRIPTION
7
+tsdumper2 reads incoming mpeg transport stream over UDP/RTP and then
8
+records it to disk. The files names are generated based on preconfigured
9
+time interval.
10
+.SH OPTIONS
11
+.PP
12
+.TP
13
+\fB\-n\fR, \fB\-\-prefix\fR <name>
14
+Set file name prefix. The output file name is generated using the
15
+following pattern: PREFIX-YYYYMMDD_hhmmss_UNIXTS.ts
16
+.TP
17
+\fB\-s\fR, \fB\-\-seconds\fR <seconds>
18
+How much seconds should each individual file be long. The default
19
+interval is 60 seconds.
20
+.TP
21
+\fB\-d\fR, \fB\-\-output\-dir\fR <dir>
22
+Set the directory into which the files will be written. The default
23
+directory is . (current directory).
24
+.TP
25
+\fB\-D\fR, \fB\-\-create\-dirs\fR
26
+Save output files into directories named YYYY/MM/DD/hh. The output
27
+file is created in the top directory and then it is hard linked into
28
+the output directory. In the top directory you'll see the file that
29
+is currently written.
30
+.TP
31
+.SH INPUT OPTIONS
32
+.PP
33
+.TP
34
+\fB\-i\fR, \fB\-\-input\fR <source>
35
+Where to read from. tsdumper2 supports input from IPv4 multicast/unicast
36
+addresses (\-i udp://224.0.0.1:5000/) or IPv6 multicast/unicast
37
+addresses (\-i udp://[ff01::1111]:5000). RTP input is also supported
38
+by using rtp:// instead of udp://.
39
+.TP
40
+\fB\-z\fR, \fB\-\-input\-ignore\-disc\fR
41
+Do not report RTP discontinuity errors.
42
+.TP
43
+\fB\-4\fR, \fB\-\-ipv4\fR
44
+Use only IPv4 addresses for the input. IPv6 addresses would be are ignorred.
45
+.TP
46
+\fB\-6\fR, \fB\-\-ipv6\fR
47
+Use only IPv6 addresses of the server. IPv4 addresses would be are ignorred.
48
+.TP
49
+.SH MISC OPTIONS
50
+.PP
51
+.TP
52
+\fB\-V\fR, \fB\-\-version\fR
53
+Show program version.
54
+.TP
55
+\fB\-h\fR, \fB\-\-help\fR
56
+Show program help.
57
+.TP
58
+.SH EXAMPLES
59
+To get a quick start here are some example command lines.
60
+.nf
61
+   # Read multicast stream from 239.78.78.78:5000 and save it in
62
+   # files with test- prefix
63
+   tsdumper2 --input udp://239.78.78.78:5000/ --prefix test
64
+
65
+   # Same as above but create directories YYYY/MM/DD/HH and put
66
+   # files into the directory.
67
+   tsdumper2 --input udp://239.78.78.78:5000/ --prefix test --create-dirs
68
+
69
+   # Same as above but create directories YYYY/MM/DD/HH and put
70
+   # files into the directory and create new file each 10 seconds.
71
+   tsdumper2 --input udp://239.78.78.78:5000/ --prefix test --create-dirs --seconds 10
72
+.fi
73
+.SH SEE ALSO
74
+See the README file for more information. If you have questions, remarks,
75
+problems or you just want to contact the developer, write to:
76
+  \fIgeorgi@unixsol.org\fP
77
+.TP
78
+For more info, see the website at
79
+.I http://georgi.unixsol.org/programs/tsdumper2/
80
+.SH AUTHORS
81
+Written by Georgi Chorbadzhiyski <\fBgeorgi@unixsol.org\fR>
82
+.SH LICENSE
83
+This program is free software; you can redistribute it and/or modify it under
84
+the terms of version 2 of the GNU General Public License as published by the
85
+Free Software Foundation.

Loading…
Cancel
Save