GegoXaren

mp32opus.sh

Nov 14th, 2020 (edited)
889
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment