- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95

Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/

`
"C:\Users\jlw_4\Desktop\mp4box.exe" -add "videosource.h264#video:lang=und:fps=23.976" -add "source.mp4#trackID=3#audio:name=AC-3 2.0:delay=0:lang=eng" -set-track-id 3:2 -add "source.srt:lang=und" -add "chapter.txt:fps=23.976" -new "C:\Users\jlw_4\Desktop\working.mp4"`

source.mp4 has TWO audio tracks
I'm trying to get the track #2 from source.mp4 and input it into my working.mp4 output

I can get it to actually get this done, however, it sets all of the track ID's out of order. Instead of them being **Video 1, Audio 2, SRT 3**, it becomes **Video 1, audio 3, srt 4**

If I swap Audio from 3 to 2 with -set-track-id 3:2 then srt will still be 4.

Is there a better way of doing this? I can't seem to find a work around that is accurate. 

I simply would like to be able to import video file, import audio (select which track I want out of the audio, in this case there is 1 video track and two audio tracks, I just want to get audio track 2, which would be ID 3), import srt, import chapters and them output in the correct format 1, 2, 3, etc...

I feel like I'm using the CLI wrong in some way. Thank you!

Importing 2nd audio track from mp4 file messes up track ID order in final output file
This is a GitHub Issue
repo:gpac
owner:gpac
Title : Importing 2nd audio track from mp4 file messes up track ID order in final output file
Issue date:

--- start body ---
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95

Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/

`
"C:\Users\jlw_4\Desktop\mp4box.exe" -add "videosource.h264#video:lang=und:fps=23.976" -add "source.mp4#trackID=3#audio:name=AC-3 2.0:delay=0:lang=eng" -set-track-id 3:2 -add "source.srt:lang=und" -add "chapter.txt:fps=23.976" -new "C:\Users\jlw_4\Desktop\working.mp4"`

source.mp4 has TWO audio tracks
I'm trying to get the track #2 from source.mp4 and input it into my working.mp4 output

I can get it to actually get this done, however, it sets all of the track ID's out of order. Instead of them being **Video 1, Audio 2, SRT 3**, it becomes **Video 1, audio 3, srt 4**

If I swap Audio from 3 to 2 with -set-track-id 3:2 then srt will still be 4.

Is there a better way of doing this? I can't seem to find a work around that is accurate. 

I simply would like to be able to import video file, import audio (select which track I want out of the audio, in this case there is 1 video track and two audio tracks, I just want to get audio track 2, which would be ID 3), import srt, import chapters and them output in the correct format 1, 2, 3, etc...

I feel like I'm using the CLI wrong in some way. Thank you!

--- end body ---

None