summaryrefslogtreecommitdiff
path: root/mkmp3
diff options
context:
space:
mode:
authoryuzu-eva <cafebabe@disroot.org>2025-05-08 14:01:37 +0200
committeryuzu-eva <cafebabe@disroot.org>2025-05-08 14:01:37 +0200
commitef7c1605a027b52bbff1b01ea693b60f53fa3a71 (patch)
tree1089334258aefbd459d18cf6968e78f1194739b0 /mkmp3
initial commit
Diffstat (limited to 'mkmp3')
-rwxr-xr-xmkmp39
1 files changed, 9 insertions, 0 deletions
diff --git a/mkmp3 b/mkmp3
new file mode 100755
index 0000000..b706296
--- /dev/null
+++ b/mkmp3
@@ -0,0 +1,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