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 |
#
|
|
27
by Gustav Hartvigsson
Added copyright information to all files. |
5 |
# Authors:
|
6 |
# Gustav Hartvigsson 2024
|
|
7 |
# Distributed under the Cool Licence 1.1
|
|
8 |
#
|
|
9
by Gustav Hartvigsson
Added FILE NAME to scripts missing it, |
9 |
# Convert Audiobooks (mp3) to Opus with cover-art preserved.
|
10 |
#
|
|
11 |
# FIXME:
|
|
12 |
# This probobly needs a bit of an overhaul... Now it is just a dumb script
|
|
13 |
# without any commandline arguments.
|
|
14 |
#
|
|
15 |
#####
|
|
16 |
||
17 |
||
18 |
||
19 |
for i in *.mp3; do |
|
20 |
name=`echo "$i" | cut -d'.' -f1` |
|
21 |
echo "$name" |
|
22 |
ffmpeg -i "$i" -f flac - | opusenc - "${name}.opus" |
|
23 |
done
|