Created
December 9, 2017 21:16
-
-
Save tripu/c09a36e5bb723c449417dbf0b6b82deb to your computer and use it in GitHub Desktop.
Increase volume of podcasts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
INPUTDIR="/home/tripu/gPodder/Downloads/" | |
PREFIXLENGTH=6 | |
OUTPUTDIR=/home/tripu/t/personal/podcasts/ | |
GAIN=2.5 | |
find "$INPUTDIR" -regextype egrep -iregex '.+\.mp3$' | while read f; do | |
SHORT=$(echo $f | cut -d'/' -f"$PREFIXLENGTH"-) | |
echo -n "$SHORT… " | |
OUT=$(basename "$f") | |
if [ -f "$OUTPUTDIR""$OUT" ]; then | |
echo — | |
else | |
# ffmpeg -loglevel quiet -map_metadata 0 -i "$f" -af "volume=$GAIN" "$OUTPUTDIR""$OUT" > /dev/null 2>&1 && echo ✓ || echo ☹ | |
ffmpeg -loglevel quiet -map_metadata 0 -i "$f" -af "volume=$GAIN" "$OUTPUTDIR""$OUT" && echo ✓ || echo ☹ | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment