Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112
  1. #!/usr/bin/env bash
  2. # AUTHOR: shaggy
  3. # FILE: oggtomp3
  4. # ROLE: TODO (some explanation)
  5. # CREATED: 2014-12-25 17:06:54
  6. # MODIFIED: 2014-12-25 17:07:40
  7. for f in *.ogg; do
  8. title=$(vorbiscomment -l "$f" | grep -i 'title' | cut -d '=' -f 2)
  9. album=$(vorbiscomment -l "$f" | grep -i 'album' | cut -d '=' -f 2)
  10. artist=$(vorbiscomment -l "$f" | grep -i 'artist' | cut -d '=' -f 2)
  11. ffmpeg -y -i "$f" -metadata title="$title" -metadata album="$album" -metadata artist="$artist" -ab 256k "${f%.ogg}.mp3"
  12. done