Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mpegcat(1) [debian man page]

MPEGCAT(1)																MPEGCAT(1)

NAME
mpegcat - Extracts structural information and PES streams from an MPEG2 video file SYNOPSIS
mpegcat { options } { file } DESCRIPTION
mpegcat 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. The original purpose of mpegcat was for debugging stream parsing issues in the gopchop cuts-only MPEG2 video editor, but it has more gen- eral utility. OPTIONS
GENERAL OPTIONS -d,--debug Report debug info -D,--dvd-format Enable DVD packet extensions -h,-?,--help Help -w,--write FILE,0xID[,0xSID] Write PES with id ID (and subid SID) to FILE. Sub Picture Unit (SPU) streams such as overlays, subtitles and DVD menus extracted using this option can be displayed using the companion gtkspu utility. To find SPU streams in a .VOB ripped from a DVD: $ mpegcat -iDa VTS_01_0.VOB | grep SPU 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) ... To save a given stream: $ mpegcat -iDaw dump.spu,0xBD,0x20 VTS_01_0.VOB > /dev/null (And to view the stream) $ gtkspu dump.spu 1 $ gtkspu dump.spu 2 $ gtkspu dump.spu 3 ... PROCESSING TOGGLES -V,--enter-video Process video packets (forced by -t option) GENERAL DISPLAY TOGGLES -p,--pack Toggle Pack packet start display -v,--video Toggle video ES packet start display -a,--audio Toggle audio ES packet start display -o,--other Toggle other stream display (only show video & audio) -y,--system Toggle system header display -e,--errors Toggle packet errors -i,--invert Invert all display toggles VIDEO DISPLAY TOGGLES -s,--slices Toggle slice starts (default off) -q,--sequence Toggle sequence header display -g,--GOPs Toggle GOP header display -f,--frames Toggle Picture header display SHORT CUTS -F,--just-frames Show only video frames (same as '-Vepvaoyq') FILE OFFSET OPTIONS -b,--begin=NUM Start reading at offset NUM -n,--num=NUM Stop after reading NUM bytes -t,--scan-stream Scan every byte of the stream instead of using PES offsets (this can show erroneous 'start code emulation' codes) AUTHOR
Kees Cook, <kees@outflux.net> SEE ALSO
gopchop(1), gtkspu(1) 28 October 2006 MPEGCAT(1)

Check Out this Related Man Page

ESMERGE(1)							   User Commands							ESMERGE(1)

NAME
esmerge - merge audio and video ES into a TS DESCRIPTION
Usage: esmerge [switches] <video-file> <audio-file> <output-file> TS tools version 1.11, esmerge built Nov 11 2008 17:15:46 Merge the contents of two Elementary Stream (ES) files, one containing video data, and the other audio, to produce an output file containing Transport Stream (TS). Files: <video-file> is the ES file containing video. <audio-file> is the ES file containing audio. <output-file> is the resultant TS file. Switches: -quiet, -q Only output error messages. -verbose, -v Output information about each audio/video frame. -x Output diagnostic information. -h264 The video stream is H.264 (the default) -avs The video stream is AVS -vidrate <hz> Video frame rate in Hz - defaults to 25Hz. -rate <hz> Audio sample rate in Hertz - defaults to 44100, i.e., 44.1KHz. -cd Equivalent to -rate 44100 (CD rate), the default. -dat Equivalent to -rate 48000 (DAT rate). -adts The audio stream is ADTS (the default) -l2 The audio stream is MPEG layer 2 audio -mp2adts The audio stream is MPEG-2 style ADTS regardless of ID bit -mp4adts The audio stream is MPEG-4 style ADTS regardless of ID bit -ac3 The audio stream is Dolby AC-3 in ATSC -patpmtfreq <f> PAT and PMT will be inserted every <f> video frames. by default, f = 0 and PAT/PMT are inserted only at the start of the output stream. Limitations =========== For the moment, the video input must be H.264 or AVS, and the audio input ADTS, AC-3 ATSC or MPEG layer 2. Also, the audio is assumed to have a constant number of samples per frame. esmerge <video-file> <audio-file> <output-file> TS tools version 1.11, esmerge built Nov 11 2008 17:15:46 Merge the contents of two Elementary Stream (ES) files, one containing video data, and the other audio, to produce an output file containing Transport Stream (TS). Files: <video-file> is the ES file containing video. <audio-file> is the ES file containing audio. <output-file> is the resultant TS file. Switches: -quiet, -q Only output error messages. -verbose, -v Output information about each audio/video frame. -x Output diagnostic information. -h264 The video stream is H.264 (the default) -avs The video stream is AVS -vidrate <hz> Video frame rate in Hz - defaults to 25Hz. -rate <hz> Audio sample rate in Hertz - defaults to 44100, i.e., 44.1KHz. -cd Equivalent to -rate 44100 (CD rate), the default. -dat Equivalent to -rate 48000 (DAT rate). -adts The audio stream is ADTS (the default) -l2 The audio stream is MPEG layer 2 audio -mp2adts The audio stream is MPEG-2 style ADTS regardless of ID bit -mp4adts The audio stream is MPEG-4 style ADTS regardless of ID bit -ac3 The audio stream is Dolby AC-3 in ATSC -patpmtfreq <f> PAT and PMT will be inserted every <f> video frames. by default, f = 0 and PAT/PMT are inserted only at the start of the output stream. Limitations =========== For the moment, the video input must be H.264 or AVS, and the audio input ADTS, AC-3 ATSC or MPEG layer 2. Also, the audio is assumed to have a constant number of samples per frame. SEE ALSO
The full documentation for esmerge is maintained as a Texinfo manual. If the info and esmerge programs are properly installed at your site, the command info esmerge should give you access to the complete manual. esmerge 1.11 November 2008 ESMERGE(1)
Man Page