/useful/trunk-1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/useful/trunk-1
9 by Gustav Hartvigsson
Added FILE NAME to scripts missing it,
1
#!/usr/bin/env bash
2
#####
3
# FILE NAME: mp32opus.sh
4
#
5
# Convert Audiobooks (mp3) to Opus with cover-art preserved.
6
#
7
# FIXME:
8
# This probobly needs a bit of an overhaul... Now it is just a dumb script
9
# without any commandline arguments.
10
#
11
#####
12
13
14
15
for i in *.mp3; do
16
  name=`echo "$i" | cut -d'.' -f1`
17
  echo "$name"
18
  ffmpeg -i "$i" -f flac - | opusenc - "${name}.opus"
19
done