oggenc's man page (part of media-sound/vorbis-tools) states support for transcoding FLAC and Ogg FLAC files based on compile-time options. It seems, you need to media-libs/flac with +ogg USE flag and media-sound/vorbis-tools with +flac. With them transcoding FLAC files is possible, Ogg FLAC files, however, fail. Reproducible: Always Steps to Reproduce: 1. emerge flac and vorbis-tools with +ogg and +flac 2. create an Ogg FLAC file with "flac --ogg -o <outputfile> <inputfile>" The output file should have the file extension oga. Proposed input: /usr/share/sound/alsa/Noise.wav 3. try transcoding it to Ogg-Vorbis with "oggenc <inputfile>" Actual Results: ERROR: Input file "Noise.oga" is not a supported format There's been a bug like this in 2004 but the patch is long applied: #49763 Used versions: media-sound/vorbis-tools-1.1.1-r3 media-libs/flac-1.2.1-r1
Try media-sound/vorbis-tools-1.2.0, thanks. from CHANGES: vorbis-tools 1.2.0 -- 2008-02-21 * FLAC support now relies on libFLAC
I see the same, too. Interestingly on one machine only. On another box I don't have that problem. Versions and USE flags: # paludis -q flac vorbis-tools * media-libs/flac gentoo: 1.2.1-r1 1.2.1-r2 1.2.1-r3 {:0} installed: 1.2.1-r3* {:0} Description: free lossless audio encoder and decoder Homepage: http://flac.sourceforge.net License: GPL-2 LGPL-2 Installed time: Fri Jun 19 06:15:55 2009 Use flags: (-3dnow) (-altivec) (cxx) (-debug) (doc) (ogg) (sse) From repositories: gentoo Installed using: paludis-0.36.1 * media-sound/vorbis-tools gentoo: 1.2.0-r2 {:0} installed: 1.2.0-r2* {:0} Description: tools for using the Ogg Vorbis sound file format Homepage: http://www.vorbis.com License: GPL-2 Installed time: Fri Jun 19 06:01:56 2009 Use flags: (flac) (nls) (ogg123) (speex) From repositories: gentoo Installed using: paludis-0.36.1
With a bit of googling, I found out that the removal of support for ID3 tags from flac is causing this. When the FLAC file has ID3 tags (because for example grip was told to create them), you get the mentioned error message. % file myfile.flac myfile.flac: Audio file with ID3 version 2.3.0, contains: FLAC audio bitstream data, 16 bit, stereo, 44.1 kHz, 11532444 samples I've put together a small script to recode the FLACs in the current directory and replace the tags: for FILE in *.flac do # Export tags to .flac.tags metaflac --export-tags-to="${FILE}.tags" "${FILE}" # Recode file to .flac.new flac -d -o - "${FILE}"|flac --best -o "${FILE}.new" - # Import tags into .flac.new metaflac --import-tags-from="${FILE}.tags" "${FILE}.new" # Cleanup #rm "${FILE}.tags" #mv "${FILE}.new" "${FILE}" done That creates a .flac.new for every .flac in the current directory, where the ID3 tags are gone. % file myfile.flac.new myfile.flac.new: FLAC audio bitstream data, 16 bit, stereo, 44.1 kHz, 11532444 samples If you are brave, you can just uncomment the last two lines to replace the .flac with .flac.new. Conversion of the resulting FLACs with oggenc also works fine, now.