Defindit Docs and Howto Home

This page last modified: Apr 18 2007
title:Notes about transcoding flac and ogg music files
keywords:flac,ogg,vorbis,transcode,translate,change,convert,files,sound,music,
description:Brief notes on transcoding flac to ogg or faac.


This web page had good hints and supplied the flac2ogg.sh script:

http://nlindblad.org/2007/01/13/a-few-thoughts-on-encoding/


Drop these two lines of text into a file flac2ogg.sh, and then chmod
flac2ogg.sh to make it executable:

#!/bin/bash
flac -cd "${1}" | oggenc -b "192" -o "$(basename "${1}" .flac).ogg" -


chmod +x flac2ogg.sh


Use the find command and -exec to convert files. After conversion,
copy the .m3u for the flac files and change the file extensions to
.ogg. 

cd /mymusic/some_artist/some_album/
find . -name "*.flac" -exec sh ~/flac2ogg.sh {} \;




This appears to be a command to transcode flac to faac:


flac -dc filename.flac | faac - -o filename.mp4