petro is an mp4 parser which allows you to extract all kinds of information.
More examples of how to use petro is located in the examples folder.
Building shared library
Configure with -fPIC to enable building a shared lib:
./waf configure ... --cxxflags=-fPIC
The -fPIC flag is needed to build a shared library read more about that here: http://stackoverflow.com/a/19768349