Skip to content

steinwurf/petro

Repository files navigation

petro

Linux make-specs Windows make-specs MacOS make-specs Linux CMake Windows CMake MacOS CMake Valgrind No Assertions Clang Format Cppcheck

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

Usage

./petro.gif

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

Use as Dependency in CMake

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.