Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How does conversion to Ogg Vorbis in Linux work? (Read 1834 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How does conversion to Ogg Vorbis in Linux work?

Hi Folks,
I am currently using Soundconverter 2.1.6 on Linux Mint to transcode my FLAC files to Ogg Vorbis for portable listening. Everything works great but I am very confused as to "what" exactly is being used to transcode the files. I believe Soundconverter uses Gstreamer which in turn uses a program called "vorbisenc" but what library or software does "vorbisenc" use and how up to date is it?

For example, I believe the latest version of libvorbis is 1.3.5 (the most recent update on the Xiph.org website news feed is for version 1.3.4 but version 1.3.5 is available for download). Does Soundconverter use this latest version? Or do I need to first compile libvorbis 1.3.5 and then re-compile Soundconverter?

Also, does anyone know how much of the AoTUV optimizations are incorporated into libvorbis 1.3.5?

I am ideally looking to encode files to ogg vorbis using the latest tools and to understand how I can have some sort of control as to what is being used to convert the files to ogg vorbis (I prefer not to use FFMPEG as Soundconverter creates all the artist and album sub directories very nicely for batch conversions).

Thanks.
djme.

Re: How does conversion to Ogg Vorbis in Linux work?

Reply #1
gstreamer doesn't use vorbisenc, at least not in versions I've seen.  It directly calls libvorbisenc, which is exactly  what vorbisenc uses.  The version depends on your repository.  Debian Jessie (stable) uses 1.3.4 while Ubuntu Trusty (LTS) uses 1.3.2.  Ubuntu Xenial and Debian Stretch use 1.3.5.

I don't know what Soundconverter package you have, but it will attempt to use whatever libvorbisenc you have installed, although the package will insist on a suitable version of the package being installed.  For example the Debian Jessie package (gstreamer0.10-plugins-base (0.10.36-2)) will install with any version of libvorbisenc that is greater than 1.1.2.  So you can then compile libvorbisenc and soundcoverter will use it.  You could compile and install the AoTUV version directly and get all of its optimisations.

Re: How does conversion to Ogg Vorbis in Linux work?

Reply #2
Various older linux builds are here
http://wiki.hydrogenaud.io/index.php?title=Recommended_Ogg_Vorbis#AoTuV_builds

Trying to compile beta 6.03, gives me stuff like:
Code: [Select]
make[3]: Entering directory '/home/ticho/downloads/aotuv-b6.03_20110424-20150808/lib'
/bin/bash ../libtool  --tag=CC  --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/usr/local/include    -O3 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char -Wdeclaration-after-statement  -DUSE_MEMORY_H -MT mdct.lo -MD -MP -MF .deps/mdct.Tpo -c -o mdct.lo mdct.c
libtool: Version mismatch error.  This is libtool 2.4.6, but the
libtool: definition of this LT_INIT comes from libtool 2.4.2.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6
libtool: and run autoconf again.
Makefile:615: recipe for target 'mdct.lo' failed
make[3]: *** [mdct.lo] Error 63
make[3]: Leaving directory '/home/ticho/downloads/aotuv-b6.03_20110424-20150808/lib'
Makefile:648: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/ticho/downloads/aotuv-b6.03_20110424-20150808/lib'
Makefile:524: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ticho/downloads/aotuv-b6.03_20110424-20150808'
Makefile:399: recipe for target 'all' failed
make: *** [all] Error 2

PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung

 

Re: How does conversion to Ogg Vorbis in Linux work?

Reply #3
 Thanks for the replies folks. I did a bit of digging and as suggested by lithopsian, Soundconverter uses "libvorbisenc" which according to the Xiph.org website is an API which simply sets up the encoding environment for libvorbis.

I checked the version of libvorbis used to create some ogg files using:
strings file.ogg | grep Vorbis
Output: Xiph.Org libVorbis I 20101101 (Schaufenugget)

The website below tells me that this is libvorbis version 1.3.2 which must have been the default version installed with linux mint or soundconverter.
https://svn.xiph.org/trunk/vorbis/CHANGES

I then downloaded and built libvorbis 1.3.5, converted a file and then checked the version of libvorbis used to create the file.
Output: Xiph.Org libVorbis I 20150105 (
Again, checking the website above confirmed that this file was created using libvorbis 1.3.5.

I think I understand the process a little bit better now.

Thanks for your help.