implement Ogg Vorbis encoding

This commit is contained in:
Vincent Riquer 2013-03-14 14:12:26 +01:00
parent a59a9915ce
commit b99ffdab36

24
atom
View File

@ -1088,6 +1088,30 @@ encodeFile::mp3() {
progressSpin
}
encodeFile::vorbis() {
oggencopts="-Q -q ${destinationquality[$destination]}"
[ -n "$albumartist" ] && oggencopts+=" -c \"ALBUMARTIST=$albumartist\""
[ -n "$album" ] && oggencopts+=" -l \"$album\""
[ -n "$artist" ] && oggencopts+=" -a \"$artist\""
[ -n "$composer" ] && oggencopts+=" -c \"COMPOSER=$composer\""
[ -n "$disc" ] && oggencopts+=" -c \"DISCNUMBER=$disc\""
[ -n "$genre" ] && oggencopts+=" -G \"$genre\""
[ -n "$performer" ] && oggencopts+=" -c \"PERFORMER=$performer\""
[ -n "$title" ] && oggencopts+=" -t \"$title\""
[ -n "$track" ] && oggencopts+=" -N \"$track\""
[ -n "$year" ] && oggencopts+=" -d \"$year\""
encodetaskid=$(
Insert tasks <<-EOInsert
key ${fileid}oggenc$destination
requires ${soxtaskid:-$decodetaskid}
command_line oggenc $oggencopts -o "$destdir/$destfile.ogg" "$tempdir/$tmpfile.wav"
source_file $fileid
status 0
EOInsert
)
progressSpin
}
checkFinished() {
#retrieve info from finished transcodeFile()
#update counters / metadata