From: James Bunton Date: Sat, 8 Jun 2013 09:00:19 +0000 (+1000) Subject: Fixed rip-audio to not need X11 X-Git-Url: https://code.delx.au/transcoding/commitdiff_plain/74520912b5f9489ab5e27bcb0263b919c98f850a Fixed rip-audio to not need X11 --- diff --git a/rip-audio b/rip-audio index 1ed4d18..4d23eab 100755 --- a/rip-audio +++ b/rip-audio @@ -10,7 +10,11 @@ fi 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