From f597da21dca1135697c67e71e2f3d47f210980e7 Mon Sep 17 00:00:00 2001 From: NightPumpkin Date: Thu, 26 Aug 2021 12:28:51 +0200 Subject: [PATCH] flac to mp3 , script --- Conversion FLAC vers MP3/flac_to_mp3.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Conversion FLAC vers MP3/flac_to_mp3.sh diff --git a/Conversion FLAC vers MP3/flac_to_mp3.sh b/Conversion FLAC vers MP3/flac_to_mp3.sh new file mode 100644 index 0000000..c0ab818 --- /dev/null +++ b/Conversion FLAC vers MP3/flac_to_mp3.sh @@ -0,0 +1,11 @@ +## Discord Plex FR : https://discord.gg/3gtABCH +## Version 2021-08-23 +## +## Pour une aide à l'installation, consulter le README +## +#!/bin/bash + +while read FILE ; do + [[ -e ${FILE%%.*}.mp3 ]] || ffmpeg -i "$FILE" -ab 320k -map_metadata 0 "${FILE%.*}.mp3" + [[ $? -eq 0 ]] && rm $FILE +done < <(find . -name "*.flac") \ No newline at end of file