/useful/trunk-1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/useful/trunk-1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
#####
# FILE NAME: mp32opus.sh
#
# Authors:
#    Gustav Hartvigsson 2024
#    Distributed under the Cool Licence 1.1
#
# Convert Audiobooks (mp3) to Opus with cover-art preserved.
#
# FIXME:
# This probobly needs a bit of an overhaul... Now it is just a dumb script
# without any commandline arguments.
#
#####



for i in *.mp3; do
  name=`echo "$i" | cut -d'.' -f1`
  echo "$name"
  ffmpeg -i "$i" -f flac - | opusenc - "${name}.opus"
done