Hydrogenaudio Forums

Lossy Audio Compression => AAC => Topic started by: MetaPixel on 2018-04-25 22:33:37

Title: Where to download FDK AAC for foobar2k/windows?
Post by: MetaPixel on 2018-04-25 22:33:37
I'm trying to fit music into an old phone with low space, and it seems that HE-AACv2 and Opus are the best candidates.
I'm new to encoding aac, so I searched a lot and didn't find the fdk aac encoder for windows, just a lot of source code for android.
Also, I know there are other aac encoders like nero and apple but I want to stick to something free/open source.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: polemon on 2018-04-26 00:32:06
http://wlc.io/2015/06/20/fdk-aac/ <--- here's one.

Just google for "fdk aac windows build" or something.

I notice the lack of compiled tools, though. However this might be some sort of licensing issue.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: kode54 on 2018-04-26 01:41:21
I believe the licensing issue is that the license on the source code does not protect anyone from patent licensing issues on the codec.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: polemon on 2018-04-26 01:56:16
Couldn't you make a "totally not an AAC encoder" type thing similar to LAME?
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: magicgoose on 2018-04-26 04:26:39
LAME developers do not distribute binaries either. For approximately the same reasons.
But I've heard it's not too hard to build.
Quote
it seems that HE-AACv2 and Opus are the best candidates
If I were you, I'd just use Opus.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: polemon on 2018-04-26 04:39:47
LAME developers do not distribute binaries either. For approximately the same reasons.
No, but there were plenty of builds around and they were relatively easy to get. Also, since MP3 patents have expired, the binaries are now considered free. Fedora has them in their main repos now, etc.

That aside: AAC (with the HE-AACv2 profile) encoding should be possible with Winamp. According to http://wiki.hydrogenaud.io/index.php?title=Fraunhofer FhG AAC is included in Winamp.

Believe it or not, you can still download Winamp from winamp.com, even though the page says "there's more coming soon", that page has been in that state for at least four years.

Since the FDK AAC is released as source from Fraunhofer, is it nonetheless prohibited to release builds? Technically all FDK AAC encoders that you download on your Android phone are compiled binaries. As I understand it, having FDK AAC builds for Windows etc, shouldn't be a problem. Or is Android paying some sort of license fee to Fraunhofer, so they can put FDK AAC encoder binaries onto people's phones?
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: arch21 on 2018-04-26 16:52:51
https://github.com/nu774/fdkaac_autobuild/
simply follow the guides with internet connection on.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: nu774 on 2018-04-27 09:41:19
https://github.com/nu774/fdkaac_autobuild/
simply follow the guides with internet connection on.

As is written in the README, it doesn't work until MSYS updates it's OpenSSL library.
Maybe it should be rewritten to use MSYS2, but honestly I'm not interested in maintaining fdkaac_autobuild.

You can still build fdkaac yourself:
https://github.com/nu774/fdkaac/blob/master/INSTALL
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: kode54 on 2018-04-28 01:23:05
MSYS2 has an even better issue, last time I checked. It apparently uses the wrong subsystem type, or at least has some other issue, causing its console binaries to only emit output under MSYS2 shells.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: LigH on 2018-09-03 10:51:12
The fdkaac_autobuild suite will need an overhaul as the fdk-aac library now updated its API and renamed several struct fields (e.g. encoderDelay is now nDelay).

The discussion about the merge patch contains a link to a patch for libav which you might find useful.

I noticed that while running the media-autobuild suite (https://github.com/jb-alvarado/media-autobuild_suite/), which took some inspiration from the fdkaac_autobuild batch.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: nu774 on 2018-09-03 18:08:55
Updated fdkaac repo.
As for fdkaac_autobuild, just let it die.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: LigH on 2018-09-03 18:28:35
It feels home in MABS now.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: ThaCrip on 2018-09-08 00:04:58
Quote
Also, I know there are other aac encoders like nero and apple but I want to stick to something free/open source.

In that case, I would use Opus since it's the best lossy encoder right now especially at lower bit rates.

I suggest no lower than 64kbps for your old phone if you don't want to gamble on sound quality too much or you got plenty of music you want to fit on it and don't mind sacrificing some sound quality to do it you can go lower to say 32kbps or 48kbps. you can stick with v1.2.1 (currently included in the Foobar2000's Encoders Pack) or use the v1.3RC (see Opus section of these forums for download info) as it supposedly has a bit better sound quality than v1.2.1 at low bit rates.

p.s. if you go with AAC it's best to use Apple AAC (or the FhG one from WinAMP as a alternative) with Foobar2000's QAAC which is included in the Foobar2000 Encoders Pack for best sound quality. once the Encoders Pack is installed, to make it easy for you... just extract the following file to your 'Foobar2000\Encoders' folder and then you can create Apple AAC files... http://www.mediafire.com/file/kfq40f76vym2680/Foobar2000_-_Apple_AAC_Encoding_%2528iTunes_v12.7.4_Mar29th2018_-_extract_to_foobar2000-encoders%2529.7z/file
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: eahm on 2018-09-08 20:42:34
@ThaCrip, can't share that file/files here, why do you think no one ever linked it?

@nu774, the autobuild doesn't work for me. I had to manually download mingw then run and that's all good but when I run the other two .bats it doesn't create anything. When you have 5 mins if you could double check. Thank you.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: ThaCrip on 2018-09-08 21:19:45
@eahm

I would remove the link myself, but I can no longer edit my post.

but I am surprised it's a big deal as no one is making any $ off of it or doing anything shady with it. would Apple care that much to pursue legal action on this site over it?
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: eahm on 2018-09-08 21:51:22
We just don't link proprietary libraries etc., Apple would like you to download and install iTunes to have that.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: arch21 on 2018-09-11 02:09:15
I can compile current master with MinGW but not with MSVC 2015. Can anyone help or assist me for that? Thanks
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: arch21 on 2018-09-11 04:53:57
The problem was from my Visual Studio installation actually. Sorry. :)
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: eahm on 2018-10-24 07:56:54
Please delete wtf forum, redirect to another thread after logging in.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: szabi on 2019-04-22 14:08:35
Hi

A have the similar issue.
Based on wiki by hydrogenaudio: What's the best AAC encoder? (https://wiki.hydrogenaud.io/index.php?title=AAC_FAQ#What.27s_the_best_AAC_encoder.3F) information I wanted to use the 2nd most recommended AAC(FDK) encoder.
I use foobar2000 (v1.4.3) with Free_Encoder_Pack_2018-10-19.
(https://abload.de/img/foobar_encodercjjvk.png)
The foobar2000's link directs me to Cabinet site (https://sites.google.com/site/qaacpage/cabinet).
I downloaded the "fdkaac_autobuild.zip" file to create "fdkaac.exe".
However executing install-mingw.bat does not create it.
What am I doing wrong?
How can I get a most recent "fdkaac.exe"?

Regards
szabi
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: LigH on 2019-04-22 14:15:27
Surprise ... install-mingw.bat installs MinGW. Only. If you want to build fdkaac, why not run build_fdkaac.bat after installing MinGW?

P.S.: This script is not updated anymore; but the media-autobuild_suite (https://github.com/jb-alvarado/media-autobuild_suite) can do it as well (besides building a lot more codecs, and finally ffmpeg using them all).
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: szabi on 2019-04-22 15:08:31
There are 3 steps instruction to get fdkaac.exe
Quote
1) Execute install-mingw.bat.
   MinGW and MSYS are installed under current directory.
   Sub directories such as bin, include, lib,... are created.
2) Execute build_libfdk_aac.bat.
3) Execute build_fdkaac.bat.
When the 1st step fails the other steps does not do anything.

Now this media-autobuild_suite runs.
I just wanted fdkaac.exe however there were near 50 another question which most of them I did not know what it is.
It was written ffmpeg is more recommended to create aac audio than fdkaac.
Does it mean wiki by hydrogenaudio: What's the best AAC encoder (https://wiki.hydrogenaud.io/index.php?title=AAC_FAQ#What.27s_the_best_AAC_encoder.3F) is not correct?
It says ffmpeg is the last in quality.

This media-autobuild runs since15 minutes.
It is the most overcomplicated process ever seen to get one single "fdkaac.exe" file.
Is that ok?
Fraunhofer FDK AAC (https://github.com/mstorsjo/fdk-aac) and CLI QuickTime AAC/ALAC encoder (https://github.com/nu774/qaac) both available just an exe file would be needed.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: majavira on 2019-04-22 15:13:20
for windows:
https://github.com/jb-alvarado/media-autobuild_suite
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: szabi on 2019-04-22 15:47:50
More than one hour running for nothing.
It did not create fdkaac.exe file.
Are there any way to create aac audio by apple or fraunhofer aac?
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: majavira on 2019-04-22 15:52:33
try this
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: majavira on 2019-04-22 15:54:01
this tool works because i use it and you get fdk aac.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: LigH on 2019-04-22 16:22:02
Well, ffmpeg is a "Swiss Army Knife" tool at the command line. But there are several configurations.

Among all the available AAC encoders, Fraunhofer FDK-AAC and Apple CoreAudioToolbox (the encoder used by iTunes) are some of the very best. You can have them separately (either qaac with the extracted DLLs from iTunes, or fdkaac), or you can integrate FDK-AAC into an ffmpeg. But noone is allowed to distribute such an encoder set or ffmpeg completely and ready-to-use.

Alternatively, ffmpeg also has a free AAC encoder in its libavcodec core. You can distribute this kind of ffmpeg. But its quality is not as good as the others.

@szabi: You say it did not create fdkaac.exe? Why not? Where did you look? How did you configure the suite? Are there any erro rmessages to report? ... We don't have crystal balls to guess what happened. But to solve media-autobuild suite related issues, a separate forum thread is preferred, that won't fit in here anymore. I can confirm that it usually works.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: szabi on 2019-04-22 17:09:00
As I start my post I download "fdkaac_autobuild.zip"
I used it few years ago that time it run for few minutes and create fdkaac.exe.
Now I wanted to have newest version of it but fdkaac_autobuild not working anymore.
The linked media-autobuild run more than hour and did not create fdkaac.exe.
I mentioned there were near 50 question before starts doing something however I did not understand most of them.
I do not want to run once more because asking so many question from an end-user is nonsense as well as the running time.

This is the log file:
Code: [Select]
        Starting 64bit compilation of all tools
Imported default FFmpeg options from .bat
License: lgplv3
Imported default mpv options from .bat

        Starting 64bit compilation of global tools
  Running git clone for libtiff...
- libtiff git ....................................... [Recently updated]
+ Running cmake...
+ Running build...
+ Running install...
+ Stripping...
L libtiff-git ................................................ [Updated]

        Starting 64bit compilation of audio tools
Installing libvorbis... done
  Running git clone for fdk-aac...
- fdk-aac git ....................................... [Recently updated]
+ Running autoreconf...
+ Running configure...
+ Running make...
+ Running install...
+ Stripping...
L fdk-aac-git ................................................ [Updated]
Installing faac... done
  Running git clone for opus...
- opus git .......................................... [Recently updated]
+ Running autogen...
+ Running configure...
+ Running make...
+ Running install...
+ Stripping...
L opus-git ................................................... [Updated]

        Starting 64bit compilation of video tools

        Finished 64bit compilation of all tools

        Deleting status files...

        Zipping man files...
        Deleting temporary build dirs...

        Compilation successful.
        This window will close automatically in 5 seconds.
Successfull just the file do not created.

So I have a different approach.
I used the old fdkaac.exe which was created few years ago.
The encoded file has the following tool's information: fdkaac 0.6.3, libfdk-aac 3.4.22, VBR mode 4
Can media-autobuild create newer version of "fdkaac.exe"?
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: LigH on 2019-04-22 17:48:15
If you want to build fdkaac, you must set up ffmpeg to compiling for a "non-free" license. MABS wrote the warning in the configuration text that enabling a GPL compliant license disables OpenSSL and FDK-AAC. Furthermore, if you want a separate fdkaac.exe, you need to enable the compilation of standalone codecs.

Try the attached build/media-autobuild_suite.ini to have MABS compile as little as possible besides fdkaac.exe.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: lvqcl on 2019-04-22 18:17:48
Based on wiki by hydrogenaudio: What's the best AAC encoder? (https://wiki.hydrogenaud.io/index.php?title=AAC_FAQ#What.27s_the_best_AAC_encoder.3F) information I wanted to use the 2nd most recommended AAC(FDK) encoder.
I wonder who put it into the 2nd place and why.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: szabi on 2019-04-22 18:30:40
Since my last post I tried the following:
I used google how to create fdkaac.exe from FDK AAC by mstorsjo (https://github.com/mstorsjo/fdk-aac)
This guide found: How to Compile From Source Code (https://github.com/PKISharp/win-acme/wiki/How-to-Compile-From-Source-Code).
I downloaded visual studio but what to do definetly over my knowledge.
Failure.

However I found something what worked finally not only one but 3 solution.
After install apple itunes foobar2000 was able to encode with apple-aac.
Unfortunately after I need to spend few minutes to clean my PC from apple's garbage.
I found the qaac.exe (https://www.videohelp.com/software/qaac) but I could not use and no guide how to.

Secondly installing winamp 5.66 also provide success for fhg-aac.
Disadvantage of it is quite obsolete.

Third was the most preferred solution. Searching fdkaac.exe (https://www.google.com/search?source=hp&ei=qPa9XNsax62uBJqwutgB&q=fdkaac.exe&btnK=Google-keres%C3%A9s&oq=fdkaac.exe&gs_l=psy-ab.3..0j0i30l5.2043.4952..5899...0.0..0.149.1199.1j9......0....1..gws-wiz.....0..0i131j0i10j0i10i30j0i8i10i30._zCGmkPlOpg) had success.
There are few users who try to help on some like me and after creating it is uploaded.
Still not the newest i think but much newer than my old version.
Find version: fdkaac 1.0.0, libfdk-aac 4.0.0, VBR mode 4

All of these above steps were done less time than suite did run with no result.
They are not the solution I looked for but better than playing with suite hours by hours in hoping of getting the expected result.
It might be a good tool however overcomplicated for an end-user.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: LigH on 2019-04-22 18:46:14
To use qaac, you either have to install iTunes, or unpack its codec core DLLs using the content of makeportable.zip from the qaac download folder (cabinet). That's pretty simple. And the best advantage of the Apple AAC codec it its superior configurability (FDK-AAC has only very distinct bitrate classes; may it have the advantage to be supported by foobar2000, but that is a severe disadvantage to me).
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: szabi on 2019-04-22 18:56:15
Encoding audio was much simple with lame.
Anyway your ini copid to build directory but suit also runs since 30 minutes.
Why it takes so much time to get a sinlge file which size propable will be around 1MB?
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: LigH on 2019-04-22 19:00:44
Ehm, well ... MABS is optimized to build ffmpeg. Disabling ffmpeg, unfortunately, does not reliably exclude all the libraries required for ffmpeg only. The author of MABS did not expect anyone using MABS for building "anything except ffmpeg". You may report this as issue. Or not. It may be "fixed". Or not.

At least ... once it has been built once, MABS will detect libraries being up-to-date and won't compile them unnecessarily.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: szabi on 2019-04-22 19:22:30
I do not understand why so much time need to create ffmpeg.exe if it can be downloaded from official page (http://ffmpeg.org/download.html)?
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: LigH on 2019-04-22 19:27:40
No. Because of its license. The FDK-AAC license is not compatible to the GPL, not even to the LGPL. Hence it cannot be distributed in any ffmpeg build in binary form, even if it can be built.

GPL compatibility would require the license of a linked project to be GPL compliant ... starting with OpenSource code.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: szabi on 2019-04-22 20:15:01
More than one hour but finally fdkaac.exe created.
It has the same version I already found by google (fdkaac 1.0.0, libfdk-aac 4.0.0, VBR mode 4).
However the file I found has size 4.5MB the created one only 0.7MB
The size difference is interesting.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: LigH on 2019-04-23 21:43:50
I wonder about the reason. May it just be that I disabled UPX packing (which isn't very important in these days)...
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: kode54 on 2019-04-26 02:29:27
Media Autobuild Suite doesn't strip anything. Locate strip.exe inside its folders, run it from a command prompt (cmd.exe or powershell, your choice) and pass the paths to the compiled executables or dll files as command line parameters, and it should reduce their size significantly.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: LigH on 2019-04-26 07:35:53
It does not? Well, please search for do_strip() in build/media-suite_helper.sh and tell me what else this does (P.S.: if you selected strip=1 in build/media-suite_helper.ini). 8) OK, it may exclude some tools from being stripped. Probably for reasons.
Title: Re: Where to download FDK AAC for foobar2k/windows?
Post by: kode54 on 2019-04-27 01:47:03
Okay then, then that setting is not the default, and I must have missed it when configuring my build setup.
SimplePortal 1.0.0 RC1 © 2008-2019