HydrogenAudio

Lossy Audio Compression => Ogg Vorbis => Ogg Vorbis - Tech => Topic started by: enzo on 2018-04-02 20:17:21

Title: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: enzo on 2018-04-02 20:17:21
I have updated my aoTuV and Lancer patches (see old thread (https://hydrogenaud.io/index.php/topic,109766.0.html) for reference) for Vorbis 1.3.7.

The patches now apply on top of the official libvorbis 1.3.7 sources and must be applied in order.


Also see my GitHub repository (https://github.com/enzo1982/vorbis-aotuv-lancer) with these changes.

Edit: Updated post for Vorbis 1.3.7.
Edit 2: Updated patches to fix a glitch in Lancer decoder code. See the commit on GitHub (https://github.com/enzo1982/vorbis-aotuv-lancer/commit/797dc4) for more info.
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: john33 on 2018-04-02 22:12:17
Thanks. :) I'll look at these over the next few days.
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: estudiosyue1 on 2018-04-03 03:36:16
Gracias por el aporte he estado esperando una actualización desde hace muchos años. :'(
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: sanskrit44 on 2018-04-03 08:39:00
that is great news, thank you enzo and john for keeping lancer alive :)
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: madmax on 2018-04-04 20:07:12
thank you!
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: morbit on 2018-04-29 12:13:08
Code: [Select]
New logical stream (#1, serial: 6c7a3d84): type vorbis
Vorbis headers parsed for stream 1, information follows...
Version: 0
Vendor: BS; LancerMod(SSE3) (based on aoTuV 6.03 (2018))

Great work, thanks!
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: soundping on 2018-04-29 15:19:51
rarewares needs to updated.
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: john33 on 2018-04-30 17:32:28
Working on it! ;) Just taking longer than expected - life getting in the way!!
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: Sajadi on 2018-08-11 16:26:33
Anyone has windows binaries for this? :)
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: 145dBSPL on 2018-08-14 09:58:50
You might try these ones. Patched according to enzo's note. Compiled with GCC 8.2. AVX instruction set used.
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: Surfi on 2018-08-14 16:28:20
::

Thanks!

::
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: sanskrit44 on 2018-08-14 19:47:15
thank you.
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: Sajadi on 2018-08-21 10:46:39
Thank you very much :)
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: eahm on 2018-11-09 06:56:50
@john33, thanks for the builds.

-v shows 1.3.5.
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: john33 on 2018-11-09 11:54:30
@john33, thanks for the builds.

-v shows 1.3.5.
That's the program version string - which is wrong, the library is actually correct but I'll update the compiles to correct that. Thanks for letting me know. :)
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: john33 on 2018-11-09 15:29:42
They've now been updated. :)
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: eahm on 2018-11-09 16:32:34
Thank you @john33, I don't follow Vorbis much, does this last version have the enzo patches and all that stuff?
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: john33 on 2018-11-09 18:22:33
Yes, it does. I haven't got to the Lancer patches yet as they don't seem to want to patch automatically and it's a large manual exercise!! It may be something I'm doing wrong, but I'll get there, eventually! ;)
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: eahm on 2018-11-09 18:31:50
Perfect, thank you :)
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: sanskrit44 on 2018-11-16 12:01:27
They've now been updated. :)
thanks a lot @john33.

do you mind updating the flac compiles with fastcrc patch as well? https://freac.org/developer-blog-mainmenu-9/14-freac/277-fastcrc
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: john33 on 2018-11-16 19:18:18
They've now been updated. :)
thanks a lot @john33.

do you mind updating the flac compiles with fastcrc patch as well? https://freac.org/developer-blog-mainmenu-9/14-freac/277-fastcrc
I assume from the site that it's merged into the current git. If so, updated compiles are available. :) If not, let me know, please! ;)
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: eahm on 2018-11-17 02:09:20
@NetRanger always updates to the latest git too https://hydrogenaud.io/index.php/topic,113391.msg962516.html#msg962516
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: enzo on 2018-11-17 09:21:02
I assume from the site that it's merged into the current git.
Yes, I can confirm that. The fast CRC patches have been merged into the official Ogg and FLAC Git repositories in April/May.
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: john33 on 2018-11-17 09:34:07
Thanks for the confirmation.
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: sanskrit44 on 2018-11-17 09:42:56
great job, thank you john33   :)
Title: Re: Vorbis 1.3.6 aoTuV and Lancer patches
Post by: q3cpma on 2019-01-31 20:45:11
Hello, would it be possible to get the standalone Lancer patch?
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: enzo on 2020-07-05 17:09:53
Updated top post (https://hydrogenaud.io/index.php?topic=115774.0) for the Vorbis 1.3.7 release.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: morbit on 2020-07-05 21:03:34
Updated top post (https://hydrogenaud.io/index.php?topic=115774.0) for the Vorbis 1.3.7 release.

Thank you for your kindness, that is very much appreciated.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Jebus on 2020-07-07 17:01:32
Updated top post (https://hydrogenaud.io/index.php?topic=115774.0) for the Vorbis 1.3.7 release.

I might just be doing something wrong, but it seems to be missing xmmlib.h/xmmlib.c in the lib directory vs the previous release.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: john33 on 2020-07-07 17:58:29
Updated top post (https://hydrogenaud.io/index.php?topic=115774.0) for the Vorbis 1.3.7 release.

I might just be doing something wrong, but it seems to be missing xmmlib.h/xmmlib.c in the lib directory vs the previous release.
They are contained in the lancer patch file, towards the end.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Jebus on 2020-07-07 23:37:29
Two issues with Enzo's repo merging these

1) Missing xmmlib.h, xmmlib.c and cpu.c in the lib directory.
2) I compiled the Windows build using cmake, and on Ubuntu using ./autogen.h, ./configure and make. The output files have different vendor strings:

On Windows (cmake built):
AO; aoTuV 6.03 (2020) (based on libVorbis 1.3.7)

On Ubuntu (autogen, configure, make)
BS; LancerMod(SSE2) (based on aoTuV 6.03 (2018))

I think these should probably match, no? Is the Windows build missing the lancer patch? Sorry i'm pretty bad at this C toolchain stuff.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: enzo on 2020-07-08 00:11:37
Indeed, the cpu.c and xmmlib.c/.h files were part of the patch, but missing in the repository. Fixed now.

As for the vendor strings, you'll have to build with SSE2 enabled on Windows. Otherwise the Lancer code will not be enabled. Not sure how to do that with cmake, though. I use MinGW/autotools on Windows too.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: kode54 on 2020-07-08 02:22:01
Visual Studio 2017 and newer default to SSE2 if you don't change any of the settings.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Jebus on 2020-07-09 17:07:26
I got the included Visual Studio 2010 solution to build with some jiggering... might be worth including a disclaimer in there that the cmake system doesn't include the Lancer bits. Or just remove the cmakefiles.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: enzo on 2020-07-09 21:19:06
The Lancer code will work with cmake just fine. You just need to make sure to tell cmake to create project files with SSE2 optimizations enabled. I don't know how to do that. Not a big fan of cmake.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: john33 on 2020-07-10 16:58:50
Thanks enzo for the updates. All 1.3.7 and derivative builds are now on Rarewares. :)
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: fabiorug on 2020-07-10 18:40:26
Is it on freac?
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: enzo on 2020-07-10 19:34:28
Is it on freac?
Only in the continuous builds for Linux as of now. It will be included with fre:ac 1.1.3.

You can use the Rarewares builds with fre:ac 1.1.2b, though. To do that, replace both, Vorbis.dll and VorbisEnc.dll in fre:ac's codecs folder with the DLL from Rarewares (i.e. copy the libvorbis.dll to the codecs folder, then change its name to Vorbis.dll, then do the same again changing the name to VorbisEnc.dll, so you'll have two copies of the new DLL as Vorbis.dll and VorbisEnc.dll).
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: gorman on 2020-08-05 21:01:05
Thanks enzo for the updates. All 1.3.7 and derivative builds are now on Rarewares. :)
I don't see any reference to Lancer at Rarewares. Is it normal?
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: john33 on 2020-08-05 21:12:10
Oggenc2.88 using libVorbis v1.3.7 - aoTuVb6.03 (Lancer Builds)

oggdropXPd V.1.9.2 using libVorbis v1.3.7 - aoTuVb6.03 - Lancer

libvorbis.dll using libvorbis v1.3.7 - aoTuVb6.03 (Lancer Builds)

ogg vorbis dlls using libvorbis v1.3.7 + aoTuVb6.03 (Lancer Builds)

vorbis.dll - for HeadAC3he using libvorbis v1.3.7 - aoTuVb6.03 (Lancer Builds)

They're all there. ;)
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Lii on 2020-08-14 12:38:25
I'd like to report something minor (cosmetic) about oggenc2.88-1.3.7-aoTuVb6.03-P4.zip on RareWares. With my previous version, oggenc2 --version gives me "OggEnc v2.88 (libvorbis 1.3.6-aoTuV-b6.03)". It's now "OggEnc v2.88 (libvorbis 1.3.6)", still 1.3.6 and not saying aoTuV.

A vorbis file encoded with it does says "Tool : AO; aoTuV 6.03 (2020) (based on libVorbis 1.3.7)" so the above is not a real problem. Just potentially confusing. Thanks!
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: john33 on 2020-08-17 15:59:24
I'd like to report something minor (cosmetic) about oggenc2.88-1.3.7-aoTuVb6.03-P4.zip on RareWares. With my previous version, oggenc2 --version gives me "OggEnc v2.88 (libvorbis 1.3.6-aoTuV-b6.03)". It's now "OggEnc v2.88 (libvorbis 1.3.6)", still 1.3.6 and not saying aoTuV.

A vorbis file encoded with it does says "Tool : AO; aoTuV 6.03 (2020) (based on libVorbis 1.3.7)" so the above is not a real problem. Just potentially confusing. Thanks!
Thanks for the notification. I'll correct and re-upload shortly. (Actually, I notice it applies to all the oggenc2 compiles!!)

Edit: Corrected compiles now at Rarewares. :)
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Lii on 2020-08-17 23:30:09
Thanks! :D
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: eightstar on 2020-09-17 00:49:44
Thank you. One question, aoTuVb6.03 has not been updated for many years, is it currently better than Xiph 1.3.4 at all bitrates? For example at 160 kbps.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: madmax on 2020-12-20 12:59:42
another question: is

vorbis-aotuv-lancer-master.zip

the same as

libvorbis-1.3.7.zip + libvorbis-1.3.7-aotuv-b6.03.patch + libvorbis-1.3.7-aotuv-b6.03-lancer.patch  ?
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Julien on 2021-01-21 21:50:14
Oggenc2.88 using libVorbis v1.3.7 - aoTuVb6.03 (Lancer Builds)

oggdropXPd V.1.9.2 using libVorbis v1.3.7 - aoTuVb6.03 - Lancer

libvorbis.dll using libvorbis v1.3.7 - aoTuVb6.03 (Lancer Builds)

ogg vorbis dlls using libvorbis v1.3.7 + aoTuVb6.03 (Lancer Builds)

vorbis.dll - for HeadAC3he using libvorbis v1.3.7 - aoTuVb6.03 (Lancer Builds)

They're all there. ;)

Hi John,

When using the oggdropXPd V.1.9.2 builds avalaible on your website , I have noticed that encodings  made with the Lancer version of the program are about 35% larger than the ones encoded with the Libvorbis version (at q4).

My understanding is that aotuv b6.03 tunings were merged with Libvorbis a while ago and that Lancer is only optimizing the encoding speed. I assume from that the output should be in the same ballpark in terms of filesize at a given q setting.

Could you please shed some light on why the aotuv Lancer version produces larger files than the libvorbis version at the same q setting?

Thank you for your help.

Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: john33 on 2021-01-22 14:32:48
IIRC, the aoTuV tunings were merged into libvorbis at a much earlier level than 6.03 and, yes, the Lancer builds are about speed but they do have a small effect on the output bitrate, although I don't believe anyone has been able to discern an audible difference. I can't reproduce the large file size difference that you mention, my testing produces files that are "in the same ballpark in terms of filesize at a given q setting", as expected. If you have something that you can share that illustrates this, I'll gladly look at it.

Just to be clear, I am only the person who provides the compiles for general use. I have no input to the detail of the encoding libraries and I lack the technical knowledge so to do!! ;)
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Julien on 2021-01-22 22:17:00
IIRC, the aoTuV tunings were merged into libvorbis at a much earlier level than 6.03 and, yes, the Lancer builds are about speed but they do have a small effect on the output bitrate, although I don't believe anyone has been able to discern an audible difference. I can't reproduce the large file size difference that you mention, my testing produces files that are "in the same ballpark in terms of filesize at a given q setting", as expected. If you have something that you can share that illustrates this, I'll gladly look at it.

Just to be clear, I am only the person who provides the compiles for general use. I have no input to the detail of the encoding libraries and I lack the technical knowledge so to do!! ;)

Hi John, thank you for your reply.

I'm PMing you a 40' flac sample with which the behavior I described can be reproduced.

Using OggdropXP v1.92 at q4, I get:
- BS; LancerMod(SSE3) (based on aoTuV 6.03 (2020)) -->229 kbps
- Xiph.Org libVorbis I 20200704 (Reducing Environment) -->170 kbps

Thanks a lot.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: john33 on 2021-01-23 11:43:17
Hmm, interesting sample! I can confirm that I get the same results as you with that sample. The Lancer build and the standard aoTuV non-Lancer builds provide very similar results. I can only assume that with this and, no doubt, many other 'difficult' samples the aoTuV tunings provide a more generous bitrate allocation.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Julien on 2021-01-23 13:43:52
Thank you John.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Isayama on 2021-02-20 02:38:23
Hi @enzo! In updating the AUR package (https://aur.archlinux.org/packages/libvorbis-aotuv-lancer/) to v1.3.7, I am getting a segfault during `make check` for test 4:

Code: [Select]
Making check in m4
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/m4'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/m4'
Making check in include
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include'
Making check in vorbis
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include/vorbis'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include/vorbis'
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include'
make[2]: Nothing to be done for 'check-am'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include'
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include'
Making check in vq
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/vq'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/vq'
Making check in lib
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib'
Making check in modes
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/modes'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/modes'
Making check in books
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books'
Making check in coupled
make[3]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/coupled'
make[3]: Nothing to be done for 'check'.
make[3]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/coupled'
Making check in uncoupled
make[3]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/uncoupled'
make[3]: Nothing to be done for 'check'.
make[3]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/uncoupled'
Making check in floor
make[3]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/floor'
make[3]: Nothing to be done for 'check'.
make[3]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/floor'
make[3]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books'
make[3]: Nothing to be done for 'check-am'.
make[3]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books'
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books'
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib'
make[2]: Nothing to be done for 'check-am'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib'
./test_sharedbook
Dequant test 1... OK
Dequant test 2... OK
Dequant test 3... OK
Dequant test 4... make[1]: *** [Makefile:1033: check] Segmentation fault (core dumped)
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib'
make: *** [Makefile:530: check-recursive] Error 1
==> ERROR:(B A failure occurred in check().(B
    Aborting...(B

I am using the following PKGBUILD:

Code: [Select]
pkgname=libvorbis-aotuv-lancer
pkgver=1.3.7
_srcname="libvorbis-${pkgver}"
pkgrel=1
_aotuv_ver=b6.03
pkgdesc='A fork of libvorbis intended to provide better quality sound at low to medium bitrates, with lancer patches to improve performance'
arch=('i686' 'x86_64')
url='https://hydrogenaud.io/index.php?topic=115774.0'
license=('BSD')
depends=('libogg.so')
conflicts=('libvorbis' 'libvorbis-aotuv')
provides=(
  'libvorbis.so'
  'libvorbisenc.so'
  'libvorbisfile.so'
)
source=("http://downloads.xiph.org/releases/vorbis/${_srcname}.tar.gz"
        "https://freac.org/patches/${_srcname}-aotuv-${_aotuv_ver}.patch"
        "https://freac.org/patches/${_srcname}-aotuv-${_aotuv_ver}-lancer.patch")
sha256sums=('0e982409a9c3fc82ee06e08205b1355e5c6aa4c36bca58146ef399621b0ce5ab'
            '21c9801f70fa254bb2019266ae51cdabf9b9bbf089fe91275db8722a0cfc46b6'
            'db4a6698913c4e05d43cfbbd174b1deb3747f7283a8618d8e009425d93a23769')
prepare() {
cd "${_srcname}"

# apply aotuv patches
patch -p1 -i "${srcdir}/${_srcname}-aotuv-${_aotuv_ver}.patch"

# apply lancer patches
patch -p1 -i "${srcdir}/${_srcname}-aotuv-${_aotuv_ver}-lancer.patch"
}

build() {
cd "${_srcname}"
./configure \
    --prefix=/usr \
    --disable-static \
    --enable-shared
    make
}

check() {
cd "${_srcname}"
make -k check
}

package() {
cd "${_srcname}"
make DESTDIR="${pkgdir}/" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

The build log (http://ix.io/2Q1N) looks normal (external link because otherwise post exceeds character limit).

There are no issues with building the current 1.3.6 version or standard libvorbis 1.3.7 (without patches) using the same method (building in a clean chroot), however the exact same issue happens when I do a standard build from your repo's master branch.

Any idea of what might be at play here?

Thanks!

edit: I got something slightly better using the previously used `make -j1 check` (as it is in the current 1.3.6 PKBGUILD):

Code: [Select]
Making check in m4
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/m4'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/m4'
Making check in include
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include'
Making check in vorbis
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include/vorbis'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include/vorbis'
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include'
make[2]: Nothing to be done for 'check-am'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include'
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include'
Making check in vq
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/vq'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/vq'
Making check in lib
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib'
Making check in modes
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/modes'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/modes'
Making check in books
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books'
Making check in coupled
make[3]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/coupled'
make[3]: Nothing to be done for 'check'.
make[3]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/coupled'
Making check in uncoupled
make[3]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/uncoupled'
make[3]: Nothing to be done for 'check'.
make[3]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/uncoupled'
Making check in floor
make[3]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/floor'
make[3]: Nothing to be done for 'check'.
make[3]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/floor'
make[3]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books'
make[3]: Nothing to be done for 'check-am'.
make[3]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books'
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books'
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib'
make[2]: Nothing to be done for 'check-am'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib'
./test_sharedbook
Dequant test 1... OK
Dequant test 2... OK
Dequant test 3... OK
Dequant test 4... make[1]: *** [Makefile:1033: check] Segmentation fault (core dumped)
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib'
Making check in test
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/test'
make  test
  CC       util.o
  CC       write_read.o
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/test'
  CC       test.o
  CC       util.o
  CC       write_read.o
  CC       test.o
mv: cannot move '.deps/write_read.Tpo' to '.deps/write_read.Po': No such file or directory
make[1]: *** [Makefile:385: write_read.o] Error 1
  CCLD     test
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/test'
make[1]: Target 'check' not remade because of errors.
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/test'
Making check in doc
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc'
Making check in libvorbis
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc/libvorbis'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc/libvorbis'
Making check in vorbisfile
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc/vorbisfile'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc/vorbisfile'
Making check in vorbisenc
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc/vorbisenc'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc/vorbisenc'
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc'
make[2]: Nothing to be done for 'check-am'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc'
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc'
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7'
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7'
make: *** [Makefile:530: check-recursive] Error 1
make: Target 'check' not remade because of errors.
==> ERROR:(B A failure occurred in check().(B
    Aborting...(B
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Isayama on 2021-02-20 02:56:41
I got slightly further by adding an `./autogen.sh` step in the `prepare()` stage, although that should not (and was not) needed while building from a tarball?

Code: [Select]
Making check in m4
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/m4'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/m4'
Making check in include
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include'
Making check in vorbis
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include/vorbis'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include/vorbis'
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include'
make[2]: Nothing to be done for 'check-am'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include'
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/include'
Making check in vq
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/vq'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/vq'
Making check in lib
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib'
Making check in modes
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/modes'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/modes'
Making check in books
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books'
Making check in coupled
make[3]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/coupled'
make[3]: Nothing to be done for 'check'.
make[3]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/coupled'
Making check in uncoupled
make[3]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/uncoupled'
make[3]: Nothing to be done for 'check'.
make[3]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/uncoupled'
Making check in floor
make[3]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/floor'
make[3]: Nothing to be done for 'check'.
make[3]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books/floor'
make[3]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books'
make[3]: Nothing to be done for 'check-am'.
make[3]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books'
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/books'
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib'
make[2]: Nothing to be done for 'check-am'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib'
./test_sharedbook
Dequant test 1... OK
Dequant test 2... OK
Dequant test 3... OK
Dequant test 4... make[1]: *** [Makefile:1033: check] Segmentation fault (core dumped)
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib'
Making check in test
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/test'
make  test
  CC       write_read.o
  CC       test.o
  CC       util.o
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/test'
  CC       write_read.o
  CC       util.o
  CC       test.o
  CCLD     test
  CCLD     test
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/test'
./test

Testing 1 channel

<all channel tests ok up to...>

    vorbis_8ch_q9.5_96000.ogg : ok
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/test'
Making check in doc
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc'
Making check in libvorbis
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc/libvorbis'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc/libvorbis'
Making check in vorbisfile
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc/vorbisfile'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc/vorbisfile'
Making check in vorbisenc
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc/vorbisenc'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc/vorbisenc'
make[2]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc'
make[2]: Nothing to be done for 'check-am'.
make[2]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc'
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/doc'
make[1]: Entering directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7'
make[1]: Leaving directory '/build/libvorbis-aotuv-lancer/src/libvorbis-1.3.7'
make: *** [Makefile:532: check-recursive] Error 1
make: Target 'check' not remade because of errors.
==> ERROR:(B A failure occurred in check().(B
    Aborting...(B

The current PKGBUILD as it stands:

Code: [Select]
pkgname=libvorbis-aotuv-lancer
pkgver=1.3.7
_srcname="libvorbis-${pkgver}"
pkgrel=1
_aotuv_ver=b6.03
pkgdesc='A fork of libvorbis intended to provide better quality sound at low to medium bitrates, with lancer patches to improve performance'
arch=('i686' 'x86_64')
url='https://hydrogenaud.io/index.php?topic=115774.0'
license=('BSD')
depends=('libogg.so')
conflicts=('libvorbis' 'libvorbis-aotuv')
provides=(
  'libvorbis.so'
  'libvorbisenc.so'
  'libvorbisfile.so'
)
source=("http://downloads.xiph.org/releases/vorbis/${_srcname}.tar.gz"
        "https://freac.org/patches/${_srcname}-aotuv-${_aotuv_ver}.patch"
        "https://freac.org/patches/${_srcname}-aotuv-${_aotuv_ver}-lancer.patch")
sha256sums=('0e982409a9c3fc82ee06e08205b1355e5c6aa4c36bca58146ef399621b0ce5ab'
            '21c9801f70fa254bb2019266ae51cdabf9b9bbf089fe91275db8722a0cfc46b6'
            'db4a6698913c4e05d43cfbbd174b1deb3747f7283a8618d8e009425d93a23769')
prepare() {
cd "${_srcname}"

./autogen.sh

# apply aotuv patches
patch -p1 -i "${srcdir}/${_srcname}-aotuv-${_aotuv_ver}.patch"

# apply lancer patches
patch -p1 -i "${srcdir}/${_srcname}-aotuv-${_aotuv_ver}-lancer.patch"
}

build() {
cd "${_srcname}"
./configure \
    --prefix=/usr \
    --disable-static \
    --enable-shared
    make
}

check() {
cd "${_srcname}"
make -k check
}

package() {
cd "${_srcname}"
make DESTDIR="${pkgdir}/" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

PS: I noticed there was no 1.3.7 release/tag on your Github repo, was it intentional?
Thanks

edit: extract from systemd journal if that may help:

Code: [Select]
févr. 20 03:48:23 kernel: test_sharedbook[68595]: segfault at 556bb0000000 ip 00007ff21fb84c9e sp 00007ffea83e76b0 error 4 in libc-2.33.so[7ff21fb1f000+14c000]
févr. 20 03:48:23 kernel: Code: a8 02 75 40 48 8b 15 d1 50 13 00 64 48 83 3a 00 0f 84 9e 00 00 00 48 8d 3d 6f 5d 13 00 a8 04 74 0c 48 89 f0 48 25 00 00 00 fc <48> 8b 38 31 d2 e8 08 c0 ff ff 64 89 2b 48 83 c4 18 5b 5d c3 66 0f
févr. 20 03:48:23 systemd[1]: Started Process Core Dump (PID 68596/UID 0).
févr. 20 03:48:23 systemd-coredump[68597]: Resource limits disable core dumping for process 68595 (test_sharedbook).
févr. 20 03:48:23 systemd-coredump[68597]: [🡕] Process 68595 (test_sharedbook) of user 1000 dumped core.

Some more lines appeared when building outside of the chroot:
Code: [Select]
Stack trace of thread 91257:
#0  0x00007f6b478c5cde __libc_free (libc.so.6 + 0x8bcde)
#1  0x0000559ea490a0e3 n/a (<buildpath>/libvorbis-aotuv-lancer/src/libvorbis-1.3.7/lib/test_sharedbook + 0x10e3)
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: enzo on 2021-02-20 15:38:56
Thank you for bringing this up, @Isayama!

Just investigated this and found that it's a bug in the test itself, i.e. not in the library / the patches. In the test code in sharedbook.c there's a mismatched alloc and free which causes the error. The call to free in line 584 of sharedbook.c needs to be changed to _ogg_free to fix this.

I applied the fix in the enzo1982/vorbis-aotuv-lancer (https://github.com/enzo1982/vorbis-aotuv-lancer) repository and also opened a pull request (https://github.com/xiph/vorbis/pull/81) for the official xiph/libvorbis code.

I won't update the patch for this. You can either apply a custom patch or sed call in the prepare section of the packaging script or directly refer to the 6df96d98 commit (https://github.com/enzo1982/vorbis-aotuv-lancer/commit/6df96d98bbe66ab9732a7b509d1f0169a87bbbb5) from enzo1982/vorbis-aotuv-lancer instead of the original package and patch files.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: kode54 on 2021-02-21 02:53:08
Custom patch is probably the best way to apply a post-release fix to an AUR or even non-AUR package, and bump the pkgrel.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Isayama on 2021-02-22 15:23:38
Thank you very much @enzo for looking into this so quickly and upstreaming it. I can confirm the build completes successfully after applying your patch.

Regarding this specific AUR package, I would be in favor of directly using your repo as its source since this package pertains to "A fork of libvorbis intended to provide better quality sound at low to medium bitrates, with lancer patches to improve performance", however as a non-development package it would require a 1.3.7 release to be made/tagged (no need to differ from upstream) to use it as a base and then apply the patch on top.
(Arch also has VCS packages (https://wiki.archlinux.org/index.php/VCS_package_guidelines), but to make proper use of it I'd need to request a package name change to *-git, although in the long run that might be a better idea...)

That's definitely nitpicking, but can you tag/make a release for 1.3.7 in enzo1982/vorbis-aotuv-lancer?

In any case thanks a lot for responding quickly to this.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: enzo on 2021-02-22 23:22:41
Just pushed the v1.3.7 tag. Simply forgot to do that when I updated the repository for that version.

However, thinking about it, it might not be such a good idea to base the package on my repository after all. I'll likely do a force push when integrating a future libvorbis 1.3.8. This means the three commits after the 1.3.7 tag will go away and be replaced with new commits. Using patch files on top of the 1.3.7 tag will be fine, but don't reference the commit hashes directly.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Isayama on 2021-02-23 20:21:35
Thanks! Well, if it gives you more leeway like that, I've used the upstream tarball and applied your patches on top. As an added bonus it allows to verify the integrity of the sources with the provided signature. We'll see down the road with 1.3.8 how we change it :)

Cheers
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: enzo on 2021-05-10 19:17:08
A fre:ac user sent me a sample file today that exhibits severe glitches when decoded with fre:ac, but not with other converters. The first few seconds of the sample are attached and demonstrate the issue.

Investigation revealed that this is caused by a bug (or rather two separate bugs) in the Lancer decoder optimizations. For block->dim == 4 or 8, the mid cut-off points for the iteration are calculated wrongly (with step size 4 instead of 8 ) which causes severe glitches when decoding the sample file.

There also is a bug in the code for block->dim == 2 where the wrong index is used for t in the head and tail loops. This also causes audible glitches, though not nearly as bad as the first issue.

Both issues are fixed in this commit (https://github.com/enzo1982/vorbis-aotuv-lancer/commit/797dc4) and the patches in the first post of this thread have been updated.

As the issues are already present in the original Lancer patches from 2006, everyone using a Lancer based decoder to convert or play Vorbis files should probably upgrade to a fixed version.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: john33 on 2021-05-10 21:19:03
If anyone is concerned by this I'll look at it and recompile as necessary tomorrow.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: john33 on 2021-05-11 16:17:25
Updated compiles now at Rarewares. :)
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: deus-ex on 2021-05-11 18:18:46
Thank you both enzo and john33 for your ongoing great services.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: gorman on 2023-04-18 01:44:47
First of all I wish to thank the OP for keeping aotuv and lancer alive. I've stumbled here after a quite long search.

How hard would it be to "create" a static build of ffmpeg with this version of libvorbis? Sorry for the probably naive question.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: gorman on 2023-04-19 17:15:45
Alternatively, does anyone have a oggenc optimized build for Linux? I mean the binary itself. I don't have any idea about how to build something and the binary linked to in the wiki gives an error (something to do about locale).

(The only one that doesn't lead to a dead link from the wiki, btw...)
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: darkalex on 2023-04-19 19:22:05
Alternatively, does anyone have a oggenc optimized build for Linux? I mean the binary itself. I don't have any idea about how to build something and the binary linked to in the wiki gives an error (something to do about locale).

(The only one that doesn't lead to a dead link from the wiki, btw...)

https://formulae.brew.sh/formula/vorbis-tools

two single-line commands and you shall get what you want, the latest version for your installed distro, within a minute.

hope this helps.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: darkalex on 2023-04-19 19:30:07
alternatively:
http://archive.ubuntu.com/ubuntu/pool/universe/v/vorbis-tools/?C=M;O=D
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: gorman on 2023-04-19 21:03:21
alternatively:
http://archive.ubuntu.com/ubuntu/pool/universe/v/vorbis-tools/?C=M;O=D
Unless I'm missing something, both of your links point to regular builds, not Aotuv/Lancer ones.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: darkalex on 2023-04-20 06:19:58
alternatively:
http://archive.ubuntu.com/ubuntu/pool/universe/v/vorbis-tools/?C=M;O=D
Unless I'm missing something, both of your links point to regular builds, not Aotuv/Lancer ones.

Yes they're the normal ones. Want the Linux AoTuv build? Not the latest v5 but v4.51 aoTuV.

Here it is: https://file.io/iUsab9GxBmNi

hydrogenaud.io blurb about this one:
oggenc aoTuV beta 4.51 and libogg 1.1.3 (Static GCC 4 compile) with impulse_trigger_profile
This static GCC 4 binary was compiled by QuantumKnot.

Hope this helps!
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: gorman on 2023-04-20 13:46:40
oggenc aoTuV beta 4.51 and libogg 1.1.3 (Static GCC 4 compile) with impulse_trigger_profile
This static GCC 4 binary was compiled by QuantumKnot.

Hope this helps!
It's better than nothing and I thank you for that. Let's hope some kind soul that knows how to do it can bring an updated build with latest tunings+lancer. At least it would be useful to have it working in the wiki too.

It actually states that the file at that link has been deleted. Which underlines the sad state of Linux binaries for aotuv tunings. :-(
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: gorman on 2023-04-20 15:45:20
Is it on freac?
Only in the continuous builds for Linux as of now. It will be included with fre:ac 1.1.3.

You can use the Rarewares builds with fre:ac 1.1.2b, though. To do that, replace both, Vorbis.dll and VorbisEnc.dll in fre:ac's codecs folder with the DLL from Rarewares (i.e. copy the libvorbis.dll to the codecs folder, then change its name to Vorbis.dll, then do the same again changing the name to VorbisEnc.dll, so you'll have two copies of the new DLL as Vorbis.dll and VorbisEnc.dll).
Oh, maybe I've found a solution to my problem. Are you saying that the AppImage for fre:ac includes by default aotuv+lancer when selecting the ogg encoder?
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: ktf on 2023-04-20 16:03:51
It says here that it applies patches: https://github.com/enzo1982/freac/blob/258e97ed6ed41c39fa9ddb8baa52b291f58f0676/tools/build-codecs#L221

So yes, it seems those patches are included in the fre:ac builds.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: gorman on 2023-04-20 16:05:21
It says here that it applies patches: https://github.com/enzo1982/freac/blob/258e97ed6ed41c39fa9ddb8baa52b291f58f0676/tools/build-codecs#L221

So yes, it seems those patches are included in the fre:ac builds.
Ok, that's great. Changelog confirms it too.

I still think it would be good to have some updated binaries to link from the Wiki but, for now, I'm set. Thanks!
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: morbit on 2023-05-01 23:25:45
FWIW, clang 15 change impacts patches -

"The -Wint-conversion warning diagnostic for implicit int <-> pointer conversions now defaults to an error in all C language modes. It may be downgraded to a warning with -Wno-error=int-conversion, or disabled entirely with -Wno-int-conversion."

https://releases.llvm.org/15.0.0/tools/clang/docs/ReleaseNotes.html

Code: [Select]
xmmlib.c:127:9: error: incompatible integer to pointer conversion assigning to 'void *' from 'size_t' (aka 'unsigned long') [-Wint-conversion]
        p2[-1] = size;
               ^ ~~~~
2 warnings and 1 error generated.
*** [xmmlib.lo] Error code 1
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: darkalex on 2023-05-02 16:43:46
oggenc aoTuV beta 4.51 and libogg 1.1.3 (Static GCC 4 compile) with impulse_trigger_profile
This static GCC 4 binary was compiled by QuantumKnot.

Hope this helps!
It actually states that the file at that link has been deleted. Which underlines the sad state of Linux binaries for aotuv tunings. :-(

Uh oh, pretty late to the party, but I just noticed your edit. That delete wasn't actually from the source, but from that transfer I shared which expires after a certain amount of downloads ;-;

I have pm'ed you a link which should help you download that file.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Kraeved on 2024-03-02 08:31:55
Quote
Oggenc2.88 using libVorbis v1.3.7 - aoTuVb6.03 (Lancer Builds)
2021-05-11

Dear @john33, do you think it's time to update this build on Rarewares, given the posts in this thread?
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: john33 on 2024-03-02 11:51:44
Why?
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Kraeved on 2024-04-16 20:35:39
There is something wrong about Lancer mod 2021-05-11 hosted on RareWares. It is unable to correctly encode WAV when its sampling rate is less or equal to 11025 Hz: SSE2 version outputs silence, SSE3 outputs heavily distorted sound. All other Vorbis encoders (original, Aotuv, Venc (https://ao-yumi.github.io/aotuv_web/) aka Aotuv 2021-03-20, FFMPEG's libvorbis) do the job as expected.

P.S. Also, Lancer mod section on the website is missing its own anchor, <a name="oggenc-aotuv"> is used instead.

Code: [Select]
$ mediainfo in.wav

General
Complete name                            : in.wav
Format                                   : Wave
Format settings                          : PcmWaveformat
File size                                : 361 KiB
Duration                                 : 16 s 780 ms
Overall bit rate mode                    : Constant
Overall bit rate                         : 176 kb/s

Audio
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : 1
Duration                                 : 16 s 780 ms
Bit rate mode                            : Constant
Bit rate                                 : 176.4 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 11.025 kHz
Bit depth                                : 16 bits
Stream size                              : 361 KiB (100%)


$ oggenc2 in.wav -q 1 out.ogg


  Bytes    Filename                 
 -------- --------------------------
  46 825   out.original.generic.ogg 
  51 187   out.original.x64.ogg     
  51 301   out.ffmpeg7.x64.ogg      
  51 301   out.ffmpeg7.x86.ogg      
  52 409   out.aotuv.generic.ogg    
  55 291   out.lancer.sse3.ogg      
  56 562   out.aotuv.x64.ogg        
  56 655   out.lancer.sse2.ogg      
  56 670   out.venc.x64.ogg         
  56 674   out.venc.x86.ogg
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: john33 on 2024-04-17 15:13:31
I'm having trouble making any progress with this. 'in.flac' does not play in foobar with the following error message:
Code: [Select]
Unrecoverable playback error: Unsupported stream format: 11025 Hz / 24-bit / 1 channels (0x4)
Yet, if I look at the Properties in foobar, it specifies 16 bit! I can encode the flac file with any of the oggenc2 variants (Windows 10 Pro x64) and the same situation exists - same error message, but properties appear correct. Decoding the flac to wav doesn't help either. Any ideas, anyone?
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: Case on 2024-04-17 16:19:20
Sounds like you are using an exclusive mode output in foobar2000. The output bitdepth is user configurable, yours is set to 24 bps. And the error is caused by the audio interface not supporting 11 kHz playback natively.
If you wish to keep using exclusive mode, you'll need to add a resampler DSP to the playback chain. Another solution would be to switch to non-exclusive output.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: john33 on 2024-04-17 17:02:12
Thanks, Case, you're right, of course! I'm off to Spain for 2 weeks tomorrow so my mind is elsewhere!! I don't think I will get to look at this until I return so please feel free to remind me if I should appear to have forgotten about it.
Title: Re: Vorbis 1.3.7 aoTuV and Lancer patches
Post by: john33 on 2024-04-18 11:11:20
Quick update. I believe the RareWares builds are slightly out-of-date. I found more recent source that appears to fix a bug relating to low samplerates. I'll look at this in more depth when I am able. The broadband connection where I am visiting in Spain is slow and intermittent!