Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Increase volume of podcasts
#!/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
You can’t perform that action at this time.