From 74520912b5f9489ab5e27bcb0263b919c98f850a Mon Sep 17 00:00:00 2001 From: James Bunton Date: Sat, 8 Jun 2013 19:00:19 +1000 Subject: [PATCH] Fixed rip-audio to not need X11 --- rip-audio | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2