summaryrefslogtreecommitdiff
path: root/.local/bin/makestereo
blob: f43a6963d74f74afe1b70915fb960b517d064df6 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

file=$(readlink -f "$1")
dir=$(dirname "$file")
base="${file##*/}"
ext="${base##*.}"

ffmpeg -i $file  -af "pan=stereo|FL < 1.0*FL + 0.707*FC + 0.707*BL|FR < 1.0*FR + 0.707*FC + 0.707*BR" "$dir/stereo-$base.$ext"