JakeWharton / mkvdts2ac3

Bash script to convert DTS audio to AC3 within a matroska file.
Apache License 2.0
322 stars 60 forks source link

Using "-i" to put AC3 track as second track (after video) is not working. It's set as index=0 every time. #113

Closed tmchow closed 6 years ago

tmchow commented 6 years ago

When I use the -i argument, according to the code, it's supposed to put that track as the second track with the first track being the the video.

        # Puts the AC3 track as the second in the file if indicated as initial
        if [ $INITIAL = 1 ]; then
                CMD="$CMD --track-order 0:1,1:0"
        fi

This isn't happening and the AC3 track is being put first (index=0) with video being second (index=1).

I don't understand how the --track-order argument works with mkvmerge otherwise I'd suggest a fix.

tmchow commented 6 years ago

After mucking with this a bit, discovered that the fix is simple and I created a PR for it: https://github.com/JakeWharton/mkvdts2ac3/pull/114