decord

(β˜… 2,511)

An efficient video loader for deep learning with smart shuffling that's super easy to digest

  • .gitignore
  • .gitmodules
  • CMakeLists.txt
  • gpu.Dockerfile
  • LICENSE
  • README.md

# Installation Guide

1. Get the code
git clone https://github.com/dmlc/decord

Downloads the entire project code from GitHub to your computer.

cd decord

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
Prerequisites
  • Python 3 Python is required to use pip.
  • APT (Debian/Ubuntu 계열) Built into Debian/Ubuntu-based Linux distributions.
  • Homebrew A package manager for macOS/Linux.
pip install decord

Installs the package published on PyPI directly β€” no need to clone the source.

sudo apt-get install -y build-essential python3-dev python3-setuptools make cmake

Installs directly from the APT package repository (Debian/Ubuntu-based).

sudo apt-get install -y ffmpeg libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev

Installs directly from the APT package repository (Debian/Ubuntu-based).

brew install cmake ffmpeg

Installs the pre-built package via Homebrew β€” no source build required.

βœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. CMake

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • CMake The tool used to generate build configuration.
  • C/C++ 컴파일러 Windows needs Visual Studio (Community edition, free), macOS needs Xcode Command Line Tools, Linux needs the gcc/g++ package.
sudo apt-get install -y build-essential python3-dev python3-setuptools make cmake

Installs directly from the APT package repository (Debian/Ubuntu-based).

cmake .. -DUSE_CUDA=0 -DCMAKE_BUILD_TYPE=Release

Analyzes the source code and generates build configuration files (must be run inside the build folder).

cmake .. -DUSE_CUDA=ON -DCMAKE_BUILD_TYPE=Release

Analyzes the source code and generates build configuration files (must be run inside the build folder).

brew install cmake ffmpeg

Installs the pre-built package via Homebrew β€” no source build required.

cmake .. -DCMAKE_BUILD_TYPE=Release

Analyzes the source code and generates build configuration files (must be run inside the build folder).

βœ… Check that an executable was created inside the build folder, then run it directly (e.g. ./build/app_name).

Pulled directly from this repo's README.

4. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
pip install decord

Installs the package published on PyPI directly β€” no need to clone the source.

βœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

// repository documentation