Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 886 Bytes

File metadata and controls

32 lines (26 loc) · 886 Bytes

x264-encoder

The purpose of this encoder is to acheive a target file size of 10 MB with two-pass encoding. Renders in 60 fps.

Instructions

  1. Install FFmpeg

    brew install ffmpeg

    If you don't have Homebrew installed, view this page for setup instructions.

  2. Create your build directory (assuming your project is named video-encoder)

    mkdir -p video-encoder/build
    cd video-encoder/build
  3. Run CMakeLists.txt

    cmake ..
    make

    From then on, you can just run make to compile the encoder.

  4. Run main.cpp

    ./VideoEncoder your-video-file.mov

    Please specify the directory of your .mov file, it should look something like this: \Users\your-username\directory\your-video-file.mov.

Resources

https://trac.ffmpeg.org/wiki/Encode/H.264