Skip to main content


Please be aware that much of the software linked to or mentioned on this forum is niche and therefore infrequently downloaded. Lots of anti-virus scanners and so-called malware detectors like to flag infrequently downloaded software as bad until it is either downloaded enough times, or its developer actually bothers with getting each individual release allow listed by every single AV vendor. You can do many people a great favor when encountering such a "problem" example by submitting them to your AV vendor for examination. For almost everything on this forum, it is a false positive.
Topic: twolame 0.4.0: full static Windows build possible? (Read 371 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

twolame 0.4.0: full static Windows build possible?

I found two source archives for twolame 0.4.0: SourceForge and GitHub. Both provide different binaries, but not for Windows. So I tried to compile the sources in an MSYS2/MinGW environment (provided by the media-autobuild suite).

As documented, the basic automake process worked, a small binary was built with GCC 10.2, and it ran. So I copied the frontend/twolame.exe elsewhere ... and it did not work anymore. Nothing happened.

A closer analysis revealed that this was just a wrapper for the real binaries: frontend/.libs/twolame.exe and libtwolame/.libs/libtwolame-0.dll (it seems to locate these to run them from their installation location when called).

As long as both are copied to the same directory, they seem to work well. But I wonder if it is possible to create a really static build, everything in one EXE. I tried to configure --enable-static but that was not sufficient.

Re: twolame 0.4.0: full static Windows build possible?

Reply #1
 * By default, when you use this header file, it is configured to use
 * symbols from the "twolame.dll" file. If you use the static version of
 * the library, define LIBTWOLAME_STATIC prior to including this header.

Try that and see if it does what you want.

Re: twolame 0.4.0: full static Windows build possible?

Reply #2
I've posted a win32 binary at Rarewares. It uses the libsndfile dll which is included.

Re: twolame 0.4.0: full static Windows build possible?

Reply #3
how can i create a free format encoding with "450kbts"?

Re: twolame 0.4.0: full static Windows build possible?

Reply #4
Thank you both. Food for experiments.

"Free format" encoding means that the header does not tell a target bitrate of each audio block, they will be as big as they are, and audio players won't rely on a bitrate per block. It's not meant to enforce a constant specific bitrate here. The blocks will have a size at the accuracy saturation limit, which depends a lot on the encoded audio material.

Re: twolame 0.4.0: full static Windows build possible?

Reply #5
Actually, most encoders only support "free format" at a constant bitrate. The only way to delineate packets in Free Format MP3 is by searching forward indefinitely until you find another sync word.

I do not think that MP2 has a "free format", however.

SimplePortal 1.0.0 RC1 © 2008-2021