Hi everyone
As mentioned earlier in this forum, I started hacking on an AV library that aims at using the native media frameworks on each OS. Now, a first prototype with OS X / AV Foundation support is working, and I would be thankful for input re API, Features, etc.
The code is available at:
https://github.com/arisona/avionThere is a simple player using lwjgl3/OpenGL for video playback.
From the README.mdAvion is an audio/video decoding and encoding framework for Java and C++. In contrast to other frameworks, it uses of the native media frameworks on individual platforms (AVFoundation on Mac OS, Microsoft Media Foundation on Windows, ffmpeg on Linux).
The main goal is to provide a simple, intuitive API for accessing raw audio and video data, or for encoding media files from raw data. It does not include higher level functionality such as GUI elements for media players. Further, focus is on standard audio/video formats, and we do not aim at supporting legacy and rarely used format. Finally, by using the native frameworks, one does not have to deal with decoder / encoder licensing issues.
A typical application example is to decode video files, and use the video frames as OpenGL textures, e.g. for VJing tools or game engines.
Features- Simple, immediate API for the major desktop platforms
- Multi-threaded decoding of Audio and Video streams
- Support for standard formats and containers (e.g. H.264; .mov, .mp4)
- Support for video capture devices (web cams, etc.)
TODO- API finalization
- Windows and Linux support (Microsoft Media Foundation, ffmpeg)
- Video capture support
- Encoding support
RFCIn order to finalize the API, requests for changes, features, etc. are welcome. Also, if someone is experienced with Microsoft Media Foundation and would like to start hacking, please be in touch, or fork and I'll be happy to pull.