Page 1 of 1

vlc + ffmpeg + libaacplus?

Posted: 10 Mar 2011 07:30
by burek
Hi,

I've succedeed to compile ffmpeg with libaacplus patch and it's working very well.
Is it possible to run VLC, with some command line parameters, telling it to use ffmpeg{acodec=libaacplus}, meaning can VLC use ffmpeg's ability to encode aacplus? If yes, can anyone please provide just a simple example of the command line?

Thanks in advance.

Re: vlc + ffmpeg + libaacplus?

Posted: 11 Mar 2011 20:56
by burek
sorry, typo.. what I meant was: acodec=ffmpeg{libaacplus}
is something like this possible?

Re: vlc + ffmpeg + libaacplus?

Posted: 13 Mar 2011 16:22
by Jean-Baptiste Kempf
if you use acodec=mp4a, it will use FFmpeg. If you ffmpeg defaults the encoding to libaacplus, it will work by itself.

Re: vlc + ffmpeg + libaacplus?

Posted: 13 Mar 2011 20:03
by burek
cool.. thank you :)
btw, how did you know that? i mean is it in the documentation or its a "tips/tricks" kind of a thing? :)
also, do you know, by any chance, how to make ffmpeg's default encoding to libaacplus?

Re: vlc + ffmpeg + libaacplus?

Posted: 14 Mar 2011 07:13
by Jean-Baptiste Kempf
I know the code, that's all.
No idea about ffmpeg/libaacplus, because I wasn't sure this was legal.

Re: vlc + ffmpeg + libaacplus?

Posted: 14 Mar 2011 23:18
by burek
Well, it is legal, since that guy, who wrote the patch for ffmpeg, to enable libaacplus support, made it that way the patch downloads the publicly available source code from 3gpp website, and he did mention that its publicly available, and he used that information to write his code.. During the ./configure or make (im not sure), the scripts download the code from 3gpp website automatically and compile it into that library.. So, I guess the guy didnt just take the code and embedded it into his library.

Quote from http://tipok.org.ua/ru/node/17 :
"3GPP released reference implementations 3GPP High Efficiency Advanced Audio Codec (HE-AAC) Codec (3GPP TS 26.410 V 8.0.0).
Reference implementations are available as a source code, but the code uses #define to choose code options. There is a common practice to compile reusable code as a shared library. Packages released here make required changes and provide AAC+ libraries as a shareable code."

Anyway, thanks for your help, I really appreciate it :)

Re: vlc + ffmpeg + libaacplus?

Posted: 15 Mar 2011 12:14
by Jean-Baptiste Kempf
Well, his code is not distributable, I think, since it is a derivate of 3GPP.

Re: vlc + ffmpeg + libaacplus?

Posted: 15 Mar 2011 14:40
by burek
Well, I'm not so much into legal things, so I may be obviously wrong, but I just think it's a shame that VLC doesn't have an option, like --non-free (like ffmpeg does have), so if someone wants to include the non-free parts/libraries, during the compile time, he can do it without any problems.
I'm not being selfish here, because right now I need that for myself, but we have to accept the fact that h264 with AAC+ is a defacto standard for av streaming today and it's too bad that the most popular video tool (VLC) doesn't have out-of-the-box support for such popular things.

Re: vlc + ffmpeg + libaacplus?

Posted: 15 Mar 2011 17:27
by Rémi Denis-Courmont
As far as we know, the 3GPP copyright license on that code is not compatible with the (L)GPL. So the VideoLAN projet and Linux distributions are not allowed to distribute it in their VLC builds. You have to compile everything yourself (and keep the result for you).

Re: vlc + ffmpeg + libaacplus?

Posted: 16 Mar 2011 01:55
by burek
Well, isn't that what ffmpeg's option --non-free (when doing ./configure) does? :)
When you compile ffmpeg with that option, you get the message that your binaries will not be redistributable. And if we are fine with that, why not have such an option.
I'm just trying to point out that we are missing the support for the most popular audio codec, right now. But, I won't be trying to pursuade you to do anything, I was just asking how does ffmpeg team deal with that? Can you somehow use the same practice for VLC too? :)

Re: vlc + ffmpeg + libaacplus?

Posted: 16 Mar 2011 16:59
by Rémi Denis-Courmont
There's nothing to change in VLC. This is non-redistributable, so nobody can compile it for you. The point is, you need to compile it yourself.

Re: vlc + ffmpeg + libaacplus?

Posted: 16 Mar 2011 23:19
by burek
I would be more than glad to do it if I could know what exactly I need to do.. Is there any way I could find any tutorial/docs explaining how to do that?
Thanks in advance :)

Re: vlc + ffmpeg + libaacplus?

Posted: 24 Mar 2011 05:52
by RobertLuo
how to do it? i mean can you say clear?

Re: vlc + ffmpeg + libaacplus?

Posted: 02 Jun 2011 15:28
by burek

Re: vlc + ffmpeg + libaacplus?

Posted: 21 Oct 2011 06:04
by bat999
if you use acodec=mp4a, it will use FFmpeg. If you ffmpeg defaults the encoding to libaacplus, it will work by itself.
Hi
When we use FFmpeg there are four aac encoders available:-
1 -acodec aac -strict experimental
2 -acodec libfaac
3 -acodec libvo_aacenc
4 -acodec libaacplus

burek above was trying to find out how to make VLC choose when using "acodec=mp4a".
I would like to know how to do this too, if it's possible.

Re: vlc + ffmpeg + libaacplus?

Posted: 27 Apr 2012 16:22
by burek
yes, and you can, supposedly, do it using:

Code: Select all

aenc=ffmpeg{acodec=libaacplus,ab=32k,ac=2,ar=44100}
but, it appears that vlc ignores this (it's a bug), so you'll have to wait for the bug fix, I guess..