oggenc doesn't read flac-in-ogg (created with flac --ogg)
$ flac --ogg audio_05.wav $ oggenc --output audio_05-128.ogg audio_05.ogg Erreur : le fichier d'entrée « audio_05.ogg » n'est pas dans un format reconnu (error: the input file is in an unknown format)
I'm using Debian/Sarge and grabbed theses sources: http://ftp.debian.org/debian/pool/main/v/vorbis-tools/vorbis-tools_1.0.1.orig.tar.gz
I also compared with the latest trunk from svn, same result.
I tried to fix it, but maybe the problem lies in flac. Here's what I did :
flac.c, line 43 : int oggflac_id(unsigned char *buf, int len) { if (len < 41) return 0;
return memcmp(buf, "OggS", 4) == 0 && flac_id(buf + 37, len - 37);
}
audio.c, line 47 /* Define the supported formats here */ {oggflac_id, 41, flac_open, flac_close, "ogg", N_("Ogg FLAC file reader")},
Really not sure why, but this now lets me encode oggflac files to oggvorbis with oggenc file.ogg, meaning when I create file.ogg with "flac --ogg ..."