/useful/trunk-1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/useful/trunk-1

« back to all changes in this revision

Viewing changes to scripts/mp32opus.sh

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-13 18:44:02 UTC
  • Revision ID: git-v1:0dbf5fcfbb68944b25dbeeeceb02ac414ac330ad
Inital code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env bash
 
2
 
 
3
# Convert Audiobooks (mp3) to Opus with cover-art preserved.
 
4
 
 
5
for i in *.mp3; do
 
6
  name=`echo "$i" | cut -d'.' -f1`
 
7
  echo "$name"
 
8
  ffmpeg -i "$i" -f flac - | opusenc - "${name}.opus"
 
9
done