Tech Support > Computer Hardware > Desktops > MPEG2 Demuxing, Muxing and Cutting with multiple audio streams
MPEG2 Demuxing, Muxing and Cutting with multiple audio streams
Posted by Marton Anka on July 18th, 2003


Hello All,

I am looking for the perfect software for converting MPEG2 .ts files
(transport streams) to MPEG2 program streams.

Here's what I do at the moment:

1. I record Formula 1 digital broadcasts with my satellite receiver.

2. I demux the resulting .ts files using ds.jar (a tool written in
Java). I get two audio streams and one video stream as the result. I
need both audio streams, since one of these is the track with
commentary and the other one contains only ambient and engine sounds.

3. I remux the three streams into an MPEG2 SVCD-type program stream
using TMPGEnc.

The resulting MPEG2 file plays correctly in any software DVD player
(NVDVD, WinDVD), but they refuse to let me select the audio stream. I
tried playing the stream with the VideoLan client, but it cannot
handle the SVCD-type streams and crashes after a few seconds. If, on
the other hand, I convert the stuff into a regular MPEG2 program
stream (and not an SVCD-type one) the resulting streams play both in
software DVD players and in VideoLan. Best of all, VideoLan allows me
to select the audio stream as well. The problem is, that if I mux a
regular program stream instead of an SVCD one, the audio is out of
sync by several seconds.

The problem is in step 3. If I use an SVCD stream, the resulting MPEG2
is in sync. If I use a regular program stream, it's not. Furthermore
the fact that I have more than audio stream is irrelevant: If I just
take a single audio track to mux with the video track, it's still out
of sync.

I would also like to use TMPGEnc's Merge & Cut functionality (which is
a GOP-level MPEG2 cutter) to chop off the uninteresting parts from the
beginning and the end of the stream. However, if I run it on my
dual-audio MPEG stream, it throws away one of the audio tracks.

So, does anyone know of software that:

a) allows the muxing of more than one audio stream into a standard
MPEG2 program stream with proper sync?

b) has GOP-level MPEG2 cutting (I don't want to re-encode the video
just because I want to chop off a minute in the beginning and a minute
in the end) that handles more than one audio streams

- or -

a) plays an MPEG2 SVCD stream with multiple audio streams properly and
allows selecting the track I want to be played?

Thanks!

Marton Anka


Similar Posts