HydrogenAudio

Lossless Audio Compression => FLAC => Topic started by: nabla on 2004-11-01 11:47:42

Title: Linux: oggenc with flac support
Post by: nabla on 2004-11-01 11:47:42
Hi everybody on hydrogenaudio,

I'm looking for oggenc which supports flac. I tried the recommended version but it only says "...flac is not a supported format". So I compiled libogg 1.1.2 and libvorbis 1.1.0 myself and installed it. After that I did the same with vorbis-tools 1.0.1.
oggenc shows me now

OggEnc v1.0.1 (libvorbis 1.0.1)
© 2000-2003 Michael Smith <msmith@xiph.org>

It seems it didn't use the new libraries. Or didn't "make install" do its job? ogginfo of a vorbis file encoded with this oggenc gives me "Vendor: Xiph.Org libVorbis I 20040629".

Thanks for your help
nabla
Title: Linux: oggenc with flac support
Post by: dev0 on 2004-11-01 12:36:57
Quote
OggEnc v1.0.1 (libvorbis 1.0.1)
© 2000-2003 Michael Smith <msmith@xiph.org>

is hardcoded:
Code: [Select]
#define VERSION_STRING "OggEnc v1.0.1 (libvorbis 1.0.1)\n"
#define COPYRIGHT "(c) 2000-2003 Michael Smith <msmith@xiph.org>\n"

[span style='font-size:8pt;line-height:100%']http://svn.xiph.org/trunk/vorbis-tools/oggenc/oggenc.c (http://svn.xiph.org/trunk/vorbis-tools/oggenc/oggenc.c)[/span]

Don't worry. As long as the created Oggs have the correct Vendor String (Xiph.Org libVorbis I 20040629) everything should be fine.
Title: Linux: oggenc with flac support
Post by: QuantumKnot on 2004-11-01 23:22:03
If you want to set the vendor tag to the new one, go to vorbis/lib/info.c, do a search for the vendor tag, and change it yourself
Title: Linux: oggenc with flac support
Post by: nabla on 2004-11-02 10:15:31
Quote
If you want to set the vendor tag to the new one, go to vorbis/lib/info.c, do a search for the vendor tag, and change it yourself
[a href="index.php?act=findpost&pid=251448"][{POST_SNAPBACK}][/a]


So there isn't any difference between "Xiph.Org libVorbis I 20040920" and "Xiph.Org libVorbis I 20040629" except the support for the impulse_trigger_profile, which, actually, has to be set manually, is it?

Thank you for information
nabla
Title: Linux: oggenc with flac support
Post by: QuantumKnot on 2004-11-02 10:31:21
Quote
So there isn't any difference between "Xiph.Org libVorbis I 20040920" and "Xiph.Org libVorbis I 20040629" except the support for the impulse_trigger_profile, which, actually, has to be set manually, is it?

Thank you for information
nabla
[a href="index.php?act=findpost&pid=251542"][{POST_SNAPBACK}][/a]


As far as I know, there is no difference between the two.  Xiph's policy on vendor tags is that only major changes in the code warrant a change in the tag I think.  However, we've changed the tag to differentiate between 1.1RC1 and 1.1. 

impulse_trigger_profile is just an unofficial feature in the HA builds only.
Title: Linux: oggenc with flac support
Post by: Triza on 2004-11-02 11:39:53
Impulse Trigger Profile would be nice in the stock code too.

Thanks to QK providing the source code I managed to create a patchfile and adjusted it so that one can apply it onto the official 1.1 (or more exactly libvorbis 1.1.0 and vorbis-tools 1.0.1) without any warnings. The adjustments were needed because some code changed between 1.1RC1 and 1.1 It seemed it was mainly bitrate management stuff. I will upload the patches in case someone is as anal as I am wanting to use the official final release, but with ITP. It would also be good if QK could quickly check it. It was very straightforward so I do not expect any error.

I'll upload it tonight when I am back home.