home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 June
/
ccd0605.iso
/
LINUX
/
gopchop-1.1.7.tar.tar
/
gopchop-1.1.7.tar
/
gopchop-1.1.7
/
docs
/
mpegcat.sgml
< prev
next >
Wrap
SGML Document
|
2005-05-02
|
11KB
<!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:
-->