Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Building from source

Roman Arzumanyan edited this page Dec 13, 2019 · 23 revisions

Build process is same both for Windows & Linux.
VPF relies on FFmpeg for bitstream demuxing, Video Codec SDK for multimedia features and CUDA for processing on GPU.
Make sure you have latest supported video driver & CUDA SDK 10.1 installed on your machine.

Build procedure consists of these steps:

  1. Download Video Codec SDK from https://developer.nvidia.com/nvidia-video-codec-sdk
  2. Download & build FFmpeg from sources at https://github.com/FFmpeg/FFmpeg or get pre-built Zeranoe FFmpeg build from https://ffmpeg.zeranoe.com/builds/ (choose "Dev" linking) if you're Windows user.
  3. Start CMake configuring process, set up FFMPEG_DIR value with path to compiled FFmpeg directory. Also, set up VIDEO_CODEC_SDK_DIR value with path to Video Codec SDK.
  4. Opt-in GENERATE_PYTHON_BINDINGS flag in order to generate Python PyNvCodec module.
  5. Run Configure & Generate, then build project. Result should be VPF C++ libraries + PyNvCodec Python module.
Clone this wiki locally