Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

FFmpeg based service provider for javax.sound.sampled.

branch: master

FFSampledSP is an implementation of the javax.sound.sampled service provider interfaces
based on FFmpeg (, a complete, cross-platform solution to record,
convert and stream audio and video.

Its main purpose is to decode audio files or streams to signed linear pcm.

FFSampledSP makes use of the "tagtraum FFmpeg package",


This library comes with absolutely no support, warranty etc. you name it.
Please see LICENSE.txt for licensing details.


Currently you can only build this library on OS X.

To do so, you also need:
- Maven 3.0.5,
- a MinGW-w64 crosscompiler,
- Apple Command Line Tools, available via,
  or XCode,
- the Windows JNI header files
- a JDK (to run Maven and get the OSX JNI headers)
- Doxygen, available via MacPorts

Once you have all this, you need to adjust some properties in the parent pom.xml.
Or.. simply override them using -Dname=value notation. E.g. to point to your
Windows JNI headers, add


to your mvn call. If you didn't add the bin folder of your crosscompiler to the
PATH, you might also want to set -Dmingw.i386.path=... and -Dmingw.x86_64.path=...
You might also need to change "mmacosx-version-min" and "isysroot", if you
don't have an OS X 10.6 SDK installed.

So all in all, something like the following might work for you, depending on where
you installed the Windows JNI headers, MinGW-w64, and the OS X JDK:

mvn -Ddarwin.headers.jni=/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/include/ \
    -Dmingw.headers.jni=/Users/YOUR_ID/mywindowsjdk/include \
    -Dmingw.i386.path=/Users/YOUR_ID/mingw/mingw-w32-i686/bin \
    -Dmingw.x86_64.path=/Users/YOUR_ID/mingw/mingw-w32-i686/bin \
    -Dmmacosx-version-min=10.7 \
    -Disysroot=/Applications/ \
    clean install

Note, that the C sources in the ffsampledsp-x86_64-darwin module are expected to compile
on all supported platforms. In fact, the very same sources *are* compiled in the modules
for other platforms.


Something went wrong with that request. Please try again.