Here's the source and a Windows executable for the Transport Stream demuxer.
Command line only. Sorry, it doesn't remux into Program Stream. It does do
continuity counter checking for finding bitstream errors, PID dumping and
shows the Transport Stream bitrate along with demuxing a specific program
and specific video and audio streams from that program.
Here's the usage:
xport
Example:
xport \\mpeg\\test.m2t 1 1 1
program = 1, video channel = 1, audio channel = 1
Program Number = 0 (0x0000), Program Map PID = 31 (0x001f)
Program Number = 1 (0x0001), Program Map PID = 48 (0x0030)
ts rate = 25051200
number of packets for pid 0x0000 = 53
number of packets for pid 0x001f = 1
number of packets for pid 0x0030 = 54
number of packets for pid 0x0031 = 41881
number of packets for pid 0x0033 = 707
number of packets for pid 0x0034 = 1055
number of packets for pid 0x1fff = 870
The demuxed files are always called bits0001.mpv and bits0001.mpa. The .mpa
file can contain AC3.
Ron
demux.zip 44.41796875k . file