Portmedia includes various libraries for low-level (but portable and sane!) access to media, including audio, midi, and video. Although there are a few useful utility applications included for testing, !PortMedia libraries are mostly there to make life easier for programmers.
Portmedia libraries are in varying states of completion. The following is a road map:
Audio
MIDI
Video
Sensing
Score Alignment
All available code at this site can be downloaded using SVN. (Using SVN)
Notes on Using SourceForge
I had to make the following change to the code to have it compile on OS X 10.9.5 with Xcode 6.2.
I suggest to integrate this with FFMPeg