This is super_demux

I took the mpeg2_dec from mjpegtools, and added the following changes:
Input accepts pid in both on hex (as 0x100) or decimal (as 256)

You can now also demux audio.
So input transport DVB stream, output ES.

Usage
extract video es
cat q2.ts | super_demux -t 256 > q2.mpv

extract audio
cat q2.ts | super_demux -t 257 > q2.mp2

Now you can process further.

I wrote this because both mplayer and ts2pes + es_demux from convergence.de do not
produce clean video es from the decryped ts.


If you get header problems with the audio .mp2, run it through mpgedit like this:
mpgedit -e0 q2.mp2
This will produce a correct mp2.
You can find mpgedit at http://www.mpgedit.org/mpgedit/





