Video Decoder is a tool for decoding video stored in memory.
It depends on FFMPEG. To build this tool, you should have libavcodec-dev, libavformat-dev, libavutil-dev and libswscale-dev installed on your machine:
sudo apt-get install libavcodec-dev libavformat-dev libavutil-dev libswscale-devAlso to test this tool, you should have libopencv-dev:
sudo apt-get install libopencv-devThe video decoder is a header-only tool. To use it in your code, including the video_decoder.hpp is enough.
To use it in Java, JNI wrapper building is supported with CMake. To build the JNI shared library, run in your console under the project directory:
cmake .
make -j 4
sudo make installIf you want to enable test, run:
cmake [-DTEST_VIDEO_PATH=/path/to/your/test/video] .
make -j 4 test
cd bin
ctest