INPUT="$1"
-acodec="$("$MPLAYER" -identify -frames 0 "$INPUT" | grep ID_AUDIO_CODEC | cut -d= -f2)"
+acodec="$(
+ "$MPLAYER" -identify -vo null -ao null -frames 0 "$INPUT" |
+ grep ID_AUDIO_CODEC |
+ cut -d= -f2
+)"
if [ "$acodec" = "ffaac" ]; then
ext=".m4a"
else