M2psd is efficient software that extracts MPEG-2 Program Stream data swiftly.
The motive behind creating mp2psd was that most of the available free software MPEG 2 demultiplexers were sluggish and failed to output the offset between the first video and audio timestamps. Therefore, mp2psd was created as an efficient alternative.
To run the application, users need to supply the input MPEG Program Stream file name as an argument. However, if a base name for the output files is not 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 have the format basename-n.mpa and basename-n.mpv, where n represents the stream number (0-31 for audio, 0-15 for video).
Additional features of the software include the "-t" option, which prints the difference between the first presentation time stamps of the video #0 and audio #0 streams in milliseconds. This feature is useful as input for a multiplexer. The "-a" option, on the other hand, discards any partial MPEG audio frame at the start of audio streams, as some software gets confused with partial audio frames.
Finally, the "-p" option produces PES streams as output instead of elementary streams, which preserves the timestamps. However, it is important to note that many programs may not be able to handle PES streams. Therefore, this option is mutually exclusive with the "-t" and "-a" options.
Version 0.11: N/A