The purpose of this encoder is to acheive a target file size of 10 MB with two-pass encoding. Renders in 60 fps.
-
Install FFmpeg
brew install ffmpeg
If you don't have Homebrew installed, view this page for setup instructions.
-
Create your build directory (assuming your project is named
video-encoder)mkdir -p video-encoder/build cd video-encoder/build -
Run CMakeLists.txt
cmake .. make
From then on, you can just run
maketo compile the encoder. -
Run
main.cpp./VideoEncoder your-video-file.mov
Please specify the directory of your
.movfile, it should look something like this:\Users\your-username\directory\your-video-file.mov.