Demuxing (Demultiplexing) MPEG Files with mpgtx

Q

Demuxing (Demultiplexing) MPEG Files with mpgtx

✍: Guest

A

The demux function (-d command option) of "mpgtx" allows you to demultiplex a MPEG file to separate streams of media data into separate output files. Here is an example of demuxing a MPEG-1 file:

C:\temp>\local\bin\mpgtx -d sample_part.mpg -b sample_stream
 DemultiplexingXXX : [audio 01  video 01] [ 99.63%]

C:\temp>dir sample*.*

   4,913,152 sample_full.m1s
   1,739,330 sample_part.mpg
   1,403,732 sample_stream-0.m1v
     280,317 sample_stream-0.mp2

The output files look good:

* "sample_stream-0.m1v" - The video stream data encoded in MPEG-1 Video format.
* "sample_stream-0.mp2" - The video stream data encoded with MPEG-1 Layer 2 Audio format.

2008-01-29, 5730👍, 0💬