Skip to content

Commit

Permalink
Merge pull request #2 from marcfon/patch-2
Browse files Browse the repository at this point in the history
Stricter identification of EAC3 tracks
  • Loading branch information
samirfor authored Feb 16, 2017
2 parents c258278 + 2c085bb commit e3eb521
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 e3eb521

Please sign in to comment.