Skip to content

Commit

Permalink
Stricter identification of EAC3 tracks
Browse files Browse the repository at this point in the history
With this edit the script only processes files that actually contain an EAC3 track. Also it makes sure that when there are multiple audio tracks (eg. DTS and EAC3) it finds the right one.
  • Loading branch information
marcfon authored Feb 14, 2017
1 parent c258278 commit 2c085bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eac3toac3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ IFILE=$(basename "$MKV_INPUT")
IFILE="${IFILE%.*}"

# get E-AC3 audio track ID from MKV container
LINE=$(LANG=C mkvinfo "${MKV_INPUT}" | grep "Track type" | grep -n "audio" | cut -d":" -f1)
LINE=$(LANG=C mkvinfo "${MKV_INPUT}" | grep "Codec ID" | grep -n "A_EAC3" | cut -d":" -f1)
AUDIO_ID=$(( $LINE - 1 ))

# extract E-AC3 audio track from MKV container
Expand Down

0 comments on commit 2c085bb

Please sign in to comment.