-
cd buildcmake ..
make -
./video_compressor <input_video> <output_video> -a <algorithm> --keep-tempwhere
<input_video>is the path to the video file to be compressed,<output_video>is the path to the compressed video file,<algorithm>is the algorithm to be used for compression, and--keep-tempis an optional flag to keep the temporary files generated during the compression process. -
./video_compressor --help -
./tests/test_video_compressor ../input_videos/SABRINA.mp4 ../output_videos/output_test.mp4
Before running the program, make sure you have the following libraries installed:
-
OpenCV
sudo apt install libopencv-dev
pkg-config --modversion opencv4 -
FFmpeg
sudo apt update && sudo apt install ffmpeg -y
ffmpeg -version -
CMake
-
GTest
-
(Optional) CUDA
nvcc --version