#!/bin/sh
# boost sound by 10dB

# https://trac.ffmpeg.org/wiki/AudioVolume

if [ $# != 1 ] ; then
    echo "Usage: $0 <videofile>"
    exit 1
fi

input="$1"
#output=$(echo "$1" | sed 's/\.[a-z0-9A-Z]\{3,4\}$/_lauter&/')
#echo "$output"

# "volume=1.5" 
mkdir -p louder
ffmpeg -i "$input" -filter:a "volume=20dB"  -c:v copy  louder/"$input"
