blob: b706296f765daf0dfb4d1c79d0732c60471d30d1 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/usr/bin/env bash
for i in "$@"; do
# Arguments for converting flac to mp3.
# ab - audio bitrate of 320k
# map_metadata 0 - copy all metadata from input to output
# id3v2_version 3 - convert metadata into this format, so it's mp3 compatible
ffmpeg -i "${i}" -ab 320k -map_metadata 0 -id3v2_version 3 "${i%.*}".mp3
done
|