File: mpegcat.sgml

package info (click to toggle)
gopchop 1.1.8-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 2,908 kB
  • sloc: sh: 9,981; cpp: 4,975; ansic: 4,028; makefile: 105
file content (327 lines) | stat: -rw-r--r-- 10,684 bytes parent folder | download | duplicates (6)
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [

<!-- Process this file with docbook-to-man to generate an nroff manual
     page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
     less'.  A typical entry in a Makefile or Makefile.am is:

manpage.1: manpage.sgml
	docbook-to-man $< > $@
  -->

<!-- This is based on an example constructed by Colin Watson
     <email>cjwatson@debian.org</email>, based on a man page template
     provided by Tom Christiansen <email>tchrist@jhereg.perl.com</email>
     and a DocBook man page example by Craig Small
     <email>csmall@debian.org</email>.
  -->

  <!-- Fill in the various UPPER CASE things here. -->
  <!ENTITY manfirstname "<firstname>Kees</firstname>">
  <!ENTITY mansurname   "<surname>Cook</surname>">
  <!-- Please adjust the date whenever revising the manpage. -->
  <!ENTITY mandate      "<date>February 17, 2004</date>">
  <!-- SECTION should be 1-8, maybe with subsection. Other parameters are
       allowed: see man(7), man(1). -->
  <!ENTITY mansection   "<manvolnum>1</manvolnum>">
  <!ENTITY manemail     "<email>kees@outflux.net</email>">
  <!ENTITY manusername  "kees">
  <!ENTITY manucpackage "<refentrytitle>mpegcat</refentrytitle>">
  <!ENTITY manpackage   "mpegcat">
]>

<refentry>
  <refentryinfo>
    <address>
      &manemail;
    </address>
    <author>
      &manfirstname;
      &mansurname;
    </author>
    <copyright>
      <year>2001-2005</year>
      <holder>&manusername;</holder>
    </copyright>
    &mandate;
  </refentryinfo>
  <refmeta>
    &manucpackage;

    &mansection;
  </refmeta>
  <refnamediv>
    <refname>&manpackage;</refname>
    <refpurpose>
      Extracts structural information and PES streams from an MPEG2 video file
    </refpurpose>
  </refnamediv>
  <refsynopsisdiv>
    <cmdsynopsis>
      <command>&manpackage;</command>
      <group choice="req"><arg><replaceable>options</replaceable></arg></group>
      <group choice="req"><arg><replaceable>file</replaceable></arg></group>
    </cmdsynopsis>
  </refsynopsisdiv>
  <refsect1>
    <title>DESCRIPTION</title>
     <para>
     <command>&manpackage;</command> dumps detailed textual information about
     an MPEG2 file. It also has an option for writing out a particular
     Packetized Elementary Stream (PES) given its id.
     </para>
     <para>
     The original purpose of <command>&manpackage;</command> was for debugging stream parsing issues
     in the gopchop cuts-only MPEG2 video editor, but it has more general utility.
     </para>
  </refsect1>
  <refsect1>
    <title>OPTIONS</title>
    <refsect2>
      <title>General Options</title>
      <variablelist>
        <varlistentry>
          <term><option>-d</option>,<option>--debug</option></term>
          <listitem>
            <para>
	            Report debug info
	          </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term><option>-D</option>,<option>--dvd-format</option></term>
          <listitem>
            <para>
	            Enable DVD packet extensions
	          </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term><option>-h</option>,<option>-?</option>,<option>--help</option></term>
          <listitem>
            <para>
	            Help
	          </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term><option>-w</option>,<option>--write <replaceable>FILE</replaceable>,<replaceable>0xID</replaceable>[,<replaceable>0xSID</replaceable>]</option></term>
          <listitem>
            <para>
	            Write <replaceable>PES</replaceable> with id <replaceable>ID</replaceable>
              (and subid <replaceable>SID</replaceable>) to <replaceable>FILE</replaceable>.
              Sub Picture Unit (SPU) streams such
              as overlays, subtitles and DVD menus extracted using this option
              can be displayed using the companion
              <command>gtkspu</command> utility.
	          </para>
            <para>
              To find SPU streams in a .VOB ripped from a DVD:
            </para>
            <screen>
                <prompt>$ </prompt><userinput><command>&manpackage;</command> -iDa VTS_01_0.VOB | grep SPU</userinput>
                   131086: 0xBD:  DVD Audio 0x20 (SPU 0): 2028 bytes (next marker @ 133120)
                   133134: 0xBD:  DVD Audio 0x20 (SPU 0): 2028 bytes (next marker @ 135168)
                   137230: 0xBD:  DVD Audio 0x20 (SPU 0): 190 bytes (next marker @ 137426)
                   ...
            </screen>
            <para>
              To save a given stream:
            </para>
            <screen>
                <prompt>$ </prompt><userinput><command>&manpackage;</command> -iDaw dump.spu,0xBD,0x20 VTS_01_0.VOB > /dev/null</userinput>
            </screen>
            <para>
              (And to view the stream)
            </para>
            <screen>
                <prompt>$ </prompt><userinput><command>gtkspu</command> dump.spu 1</userinput>
                <prompt>$ </prompt><userinput><command>gtkspu</command> dump.spu 2</userinput>
                <prompt>$ </prompt><userinput><command>gtkspu</command> dump.spu 3</userinput>
                ...
            </screen>
          </listitem>
        </varlistentry>
      </variablelist>
    </refsect2>
    <refsect2>
      <title>Processing Toggles</title>
      <variablelist>
        <varlistentry>
          <term><option>-V</option>,<option>--enter-video</option></term>
          <listitem>
            <para>
	            Process video packets (forced by -t option)
	          </para>
          </listitem>
        </varlistentry>
      </variablelist>
    </refsect2>
    <refsect2>
      <title>General Display Toggles</title>
      <variablelist>
        <varlistentry>
          <term><option>-p</option>,<option>--pack</option></term>
          <listitem>
            <para>
	            Toggle Pack packet start display
	          </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term><option>-v</option>,<option>--video</option></term>
          <listitem>
            <para>
	            Toggle video ES packet start display
	          </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term><option>-a</option>,<option>--audio</option></term>
          <listitem>
            <para>
	            Toggle audio ES packet start display
	          </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term><option>-o</option>,<option>--other</option></term>
          <listitem>
            <para>
	            Toggle other stream display (only show video & audio)
	          </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term><option>-y</option>,<option>--system</option></term>
          <listitem>
            <para>
	            Toggle system header display
	          </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term><option>-e</option>,<option>--errors</option></term>
          <listitem>
            <para>
	            Toggle packet errors
	          </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term><option>-i</option>,<option>--invert</option></term>
          <listitem>
            <para>
	            Invert all display toggles
	          </para>
          </listitem>
        </varlistentry>
      </variablelist>
    </refsect2>
    <refsect2>
      <title>Video Display Toggles</title>
      <variablelist>
        <varlistentry>
          <term><option>-s</option>,<option>--slices</option></term>
          <listitem>
            <para>
	            Toggle slice starts (default off)
	          </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term><option>-q</option>,<option>--sequence</option></term>
          <listitem>
            <para>
	            Toggle sequence header display
	          </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term><option>-g</option>,<option>--GOPs</option></term>
          <listitem>
            <para>
	            Toggle GOP header display
	          </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term><option>-f</option>,<option>--frames</option></term>
          <listitem>
            <para>
	            Toggle Picture header display
	          </para>
          </listitem>
        </varlistentry>
      </variablelist>
    </refsect2>
    <refsect2>
      <title>Short Cuts</title>
      <variablelist>
        <varlistentry>
          <term><option>-F</option>,<option>--just-frames</option></term>
          <listitem>
            <para>
	            Show only video frames (same as '-Vepvaoyq')
	          </para>
          </listitem>
        </varlistentry>
      </variablelist>
    </refsect2>
    <refsect2>
      <title>File Offset Options</title>
      <variablelist>
        <varlistentry>
          <term><option>-b</option>,<option>--begin=<replaceable>NUM</replaceable></option></term>
          <listitem>
            <para>
	            Start reading at offset <replaceable>NUM</replaceable>  
	          </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term><option>-n</option>,<option>--num=<replaceable>NUM</replaceable></option></term>
          <listitem>
            <para>
	            Stop after reading <replaceable>NUM</replaceable> bytes
	          </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term><option>-t</option>,<option>--scan-stream</option></term>
          <listitem>
            <para>Scan every byte of the stream instead of using PES offsets
            (this can show erroneous 'start code emulation' codes)</para>
          </listitem>
        </varlistentry>
      </variablelist>
    </refsect2>
  </refsect1>

  <refsect1>
    <title>AUTHOR</title>
	<para><author>&manfirstname;</author> <author>&mansurname;</author>, &manemail;</para>
  </refsect1>

  <refsect1>
    <title>SEE ALSO</title>
    <para>gopchop(1), gtkspu(1)</para>
  </refsect1>
</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:2
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:nil
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->