From ee1dce9e95e5439a09001830f4f44fff804585b7 Mon Sep 17 00:00:00 2001 From: hannes Date: Thu, 3 Aug 2017 17:12:58 +0200 Subject: [PATCH] Very basic version, but works --- mp4_to_mp3.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 mp4_to_mp3.sh diff --git a/mp4_to_mp3.sh b/mp4_to_mp3.sh new file mode 100644 index 0000000..9f8c61a --- /dev/null +++ b/mp4_to_mp3.sh @@ -0,0 +1,13 @@ +#/bin/bash + +# Works only without spaces in the titles + +SUFFIX=mp3 + +for IMG_FILE in *.mp4 +do + #strip .mp4 from file name + IMG_FILE_NAME=${IMG_FILE%.*} + echo "avconv -i ${IMG_FILE} ${IMG_FILE_NAME}.${SUFFIX}" + avconv -i ${IMG_FILE} ${IMG_FILE_NAME}.${SUFFIX} +done