SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Sponsored Links

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

m2psd: MPEG 2 Program Stream Demultiplexer Copyright 2003 Eric Smith <eric@brouhaha.com> $Id: README 7 2004-02-07 19:55:43Z eric $

m2psd will demultiplex an MPEG 2 Program Stream provided that the packs are exactly 2048 bytes long. It was written for use with MPEG 2 Program Streams recorded by a Hauppauge WinTV PVR 250 or 350, and trimmed with GOPChop (Linux) or Womble (Windows).

mp2psd was written because all of the free software MPEG 2 demultiplexers I could find were very slow, and did not output the offset between the first video and audio timestamps.

The input MPEG Program Stream file name must be supplied as an argument.

A base name for the output files may optionally be specified; if none is provided, the base name will be the input file name with all characters from the last dot to the end removed. The output filenames will be of the form basename-n.mpa and basename-n.mpv, for audio and video, respectively, where n is the stream number (0-31 for audio, 0-15 for video).

The "-t" option prints the difference between the first presentation time stamps of the video #0 and audio #0 streams (0xe0 and 0xc0) in milliseconds. This is useful as input to a multiplexer.

The "-a" option discards any partial MPEG audio frame at the start of audio streams, because some software gets upset at partial audio frames.

The "-p" option produced PES streams as output rather than elementary streams. This preserves the time stamps, but many programs cannot deal with PES streams. This option is mutually exclusive with the "-t" and "-a" options.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. Note that permission is not granted to redistribute this program under the terms of any other version of the General Public License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA


Sponsored Links

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.