1
Fork 0

Add the to-opus function.

This commit is contained in:
Bauke 2023-01-01 13:54:30 +01:00
parent e6b65a52aa
commit b7d791c88a
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 7 additions and 0 deletions

View File

@ -10,3 +10,10 @@ get-feed-url () {
echo echo
done done
} }
to-opus () {
for input_file in "$@"; do
output_file="${input_file%.*}.opus"
ffmpeg -i "$input_file" -c:a libopus -b:a 128K "$output_file"
done
}