1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36.
.TH ES2TS "1" "November 2008" "es2ts 1.11" "User Commands"
.SH NAME
es2ts \- convert ES to TS
.SH SYNOPSIS
.B es2ts
[\fIswitches\fR] \fI<infile>\fR \fI<outfile>\fR
.SH DESCRIPTION
.IP
TS tools version 1.11, es2ts built Nov 11 2008 17:15:46
.IP
Convert an elementary video stream to H.222 transport stream.
Supports input streams conforming to MPEG\-2 (H.262), MPEG\-4/AVC
(H.264) and AVS. Also supports MPEG\-1 input streams, insofar as MPEG\-2
is backwards compatible with MPEG\-1.
.IP
Note that this program works by reading and packaging the elementary
stream packages directly \- it does not parse them as H.262 or H.264
data.
.SS "Files:"
.TP
<infile>
is a file containing the Elementary Stream data
(but see \fB\-stdin\fR below)
.TP
<outfile>
is an H.222 Transport Stream file
(but see \fB\-stdout\fR and \fB\-host\fR below)
.SS "Switches:"
.TP
\fB\-pid\fR <pid>
<pid> is the video PID to use for the data.
Use '\-pid 0x<pid>' to specify a hex value.
Defaults to 0x68.
.TP
\fB\-pmt\fR <pid>
<pid> is the PMT PID to use.
Use '\-pmt 0x<pid>' to specify a hex value.
Defaults to 0x66
.TP
\fB\-verbose\fR, \fB\-v\fR
Output summary information about each ES packet
as it is read
.TP
\fB\-quiet\fR, \fB\-q\fR
Only output error messages
.TP
\fB\-stdin\fR
Take input from <stdin>, instead of a named file
.TP
\fB\-stdout\fR
Write output to <stdout>, instead of a named file
Forces \fB\-quiet\fR.
.TP
\fB\-host\fR <host>, \fB\-host\fR <host>:<port>
Writes output (over TCP/IP) to the named <host>,
instead of to a named file. If <port> is not
specified, it defaults to 88.
.TP
\fB\-max\fR <n>, \fB\-m\fR <n>
Maximum number of ES data units to read
.SS "Stream type:"
.IP
When the TS data is being output, it is flagged to indicate whether
it conforms to H.262, H.264 or AVS. It is important to get this right,
as it will affect interpretation of the TS data.
.IP
If input is from a file, then the program will look at the start of
the file to determine if the stream is H.264, H.262 or AVS. This
process may occasionally come to the wrong conclusion, in which case
the user can override the choice using the following switches.
.IP
If input is from standard input (via \fB\-stdin\fR), then it is not possible
for the program to make its own decision on the input stream type.
Instead, it defaults to H.262, and relies on the user indicating if
this is wrong.
.TP
\fB\-h264\fR, \fB\-avc\fR
Force the program to treat the input as MPEG\-4/AVC.
.TP
\fB\-h262\fR
Force the program to treat the input as MPEG\-2.
.TP
\fB\-avs\fR
Force the program to treat the input as AVS.
.IP
TS tools version 1.11, es2ts built Nov 11 2008 17:15:46
.IP
Convert an elementary video stream to H.222 transport stream.
Supports input streams conforming to MPEG\-2 (H.262), MPEG\-4/AVC
(H.264) and AVS. Also supports MPEG\-1 input streams, insofar as MPEG\-2
is backwards compatible with MPEG\-1.
.IP
Note that this program works by reading and packaging the elementary
stream packages directly \- it does not parse them as H.262 or H.264
data.
.SS "Files:"
.TP
<infile>
is a file containing the Elementary Stream data
(but see \fB\-stdin\fR below)
.TP
<outfile>
is an H.222 Transport Stream file
(but see \fB\-stdout\fR and \fB\-host\fR below)
.SS "Switches:"
.TP
\fB\-pid\fR <pid>
<pid> is the video PID to use for the data.
Use '\-pid 0x<pid>' to specify a hex value.
Defaults to 0x68.
.TP
\fB\-pmt\fR <pid>
<pid> is the PMT PID to use.
Use '\-pmt 0x<pid>' to specify a hex value.
Defaults to 0x66
.TP
\fB\-verbose\fR, \fB\-v\fR
Output summary information about each ES packet
as it is read
.TP
\fB\-quiet\fR, \fB\-q\fR
Only output error messages
.TP
\fB\-stdin\fR
Take input from <stdin>, instead of a named file
.TP
\fB\-stdout\fR
Write output to <stdout>, instead of a named file
Forces \fB\-quiet\fR.
.TP
\fB\-host\fR <host>, \fB\-host\fR <host>:<port>
Writes output (over TCP/IP) to the named <host>,
instead of to a named file. If <port> is not
specified, it defaults to 88.
.TP
\fB\-max\fR <n>, \fB\-m\fR <n>
Maximum number of ES data units to read
.SS "Stream type:"
.IP
When the TS data is being output, it is flagged to indicate whether
it conforms to H.262, H.264 or AVS. It is important to get this right,
as it will affect interpretation of the TS data.
.IP
If input is from a file, then the program will look at the start of
the file to determine if the stream is H.264, H.262 or AVS. This
process may occasionally come to the wrong conclusion, in which case
the user can override the choice using the following switches.
.IP
If input is from standard input (via \fB\-stdin\fR), then it is not possible
for the program to make its own decision on the input stream type.
Instead, it defaults to H.262, and relies on the user indicating if
this is wrong.
.TP
\fB\-h264\fR, \fB\-avc\fR
Force the program to treat the input as MPEG\-4/AVC.
.TP
\fB\-h262\fR
Force the program to treat the input as MPEG\-2.
.TP
\fB\-avs\fR
Force the program to treat the input as AVS.
.SH "SEE ALSO"
The full documentation for
.B es2ts
is maintained as a Texinfo manual.
Please check http://tstools.berlios.de for more information.
|