Log in

View Full Version : MP4Box - demux all audio tracks to MP4 container(s)


dvdboy
6th May 2016, 11:36
Apologies if this is the incorrect section to post this.

I need to take mp4 files with multiple audio tracks and extract them to individual mp4 files.

Using MP4Box, I can run this command:

mp4box.exe -raw * "Input.mp4"

And that will 'demux' the file into raw streams, so if the source had 1 video track and 8 audio tracks, I would end up with 9 files - 1 *.264 and 8 *.aac files.

If I needed these raw streams each encapsulated in an mp4 wrapper, how would I do this?

It looks like this:

mp4box -single [TrackID] "Input.mp4"

works when the TrackID is specified, but I need something like this:

mp4box -single * "Input.mp4"

Which currently reports a bad parameter.

Any ideas?

Thanks