petro is an mp4 parser which allows you to extract all kinds of information.
The implementation is based on ISO/IEC 14496-12, link to the 2015 revision
More examples of how to use petro is located in the examples folder.
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
To depend on this project when using the CMake build system, add the following in your CMake build script:
add_subdirectory("/path/to/petro" petro) target_link_libraries(<my_target> steinwurf::petro)
Where <my_target>
is replaced by your target.