Help - Search - Members - Calendar
Full Version: Aften and FFmpeg AC-3
Hydrogenaudio Forums > Lossy Audio Compression > Other Lossy Codecs
mltan
Hi everyone!

If I want to create a standalone commandline version of the AC-3 encoder based on the FFmpeg project, how exactly should it be done? (under Windows OS)

FFmpeg has several header and c files, how do i know which of them are needed, place them into proper directories, build and compile them?

FFmpeg sources only provide details on how to build FFmpeg in Windows using MinGW and MSys but no info on 'extracting' a particular encoder and creating a stand alone version.

I hope someone could answer my inquiry. Thank you!

mltan
QUOTE(xmixahlx @ May 31 2007, 02:35) *



I've already seen the thread but there were no details on how Justin was able to exactly get the ac3 encoder from ffmpeg and create a stand alone command line version. of course the ac3 encoder alone is the ac3enc.c of the ffmpeg (am i right?), but how do you know which header and c files are needed and where to place them?

Also, there are instructions on building aften using cmake und linux, but how do you build it under windows? i also tried following the steps: http://forum.doom9.org/showthread.php?t=113074&page=26 (post # 304) but i still don't get it unfortunately.

The reason for asking this is that i am hoping to study the encoder and build/compile it by myself. To be able to do this, interest lies on studying both ffmpeg (since this is the original) and aften (since this is perhaps the most advance).

There are already available builds but no detailed guide on how kurtnoise, wisodev, or justin made the builds.

So to summarize things up:
1. how exactly do i make an ac-3 encoder from ffmpeg?
2. how exactly do i build aften in windows? (using the build systems by kurtnoise, wisodev, justin)

Forgive me for asking basic questions, i hope someone would enlighten me on this. Thank you very much!

Thanks xmixahlx for the quick reply =)
mltan
I got a few hints (thanks to Justin!) on how to get the ac-3 encoder. pretty simple, just get the libavcodec while removing all source and header files leaving ac3enc alone, compiling and adding the .c and .h files as needed. Guess i have to try it. I'm still wondering though if this could be done with any compiler under windows or i still have to build it under the mingw msys system since it is still taken directly from ffmpeg.

Just sharing. If anyone has info, it would be greatly appreciated. =)
wisodev
QUOTE(mltan @ Jun 2 2007, 16:33) *

I got a few hints (thanks to Justin!) on how to get the ac-3 encoder. pretty simple, just get the libavcodec while removing all source and header files leaving ac3enc alone, compiling and adding the .c and .h files as needed. Guess i have to try it. I'm still wondering though if this could be done with any compiler under windows or i still have to build it under the mingw msys system since it is still taken directly from ffmpeg.

Just sharing. If anyone has info, it would be greatly appreciated. =)


I have created Microsoft Visual C++ 2005 project files for Aften. You can use this build system. The only changes that would be required are adding/removing some Source Files *.c and some Header Files *.h in project configuration (maybe adding/removing some defines in project configuration too).
mltan
QUOTE(wisodev @ Jun 3 2007, 02:11) *

I have created Microsoft Visual C++ 2005 project files for Aften. You can use this build system. The only changes that would be required are adding/removing some Source Files *.c and some Header Files *.h in project configuration (maybe adding/removing some defines in project configuration too).


@wisodev,

correct me if im wrong, but are you implying that although you cannot build ffmpeg under ms visual c++, it is possible to build the ac-3 encoder that will be taken out of ffmpeg under ms visual c++ (using your project files)?

Thank you very much for the reply!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.