Skip to content

Commit

Permalink
update readme for instructions (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhreshold authored Oct 18, 2020
1 parent 7b6c0e9 commit c949d54
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,24 @@ Clone the repo recursively(important)
git clone --recursive https://github.com/dmlc/decord
```

Build the shared library in source root directory, you can specify `-DUSE_CUDA=ON` or `-DUSE_CUDA=/path/to/cuda` to enable NVDEC hardware accelerated decoding:
Build the shared library in source root directory:

```bash
cd decord
mkdir build && cd build
cmake .. -DUSE_CUDA=0
cmake .. -DUSE_CUDA=0 -DCMAKE_BUILD_TYPE=Release
make
```

you can specify `-DUSE_CUDA=ON` or `-DUSE_CUDA=/path/to/cuda` to enable NVDEC hardware accelerated decoding:

```bash
cmake .. -DUSE_CUDA=ON -DCMAKE_BUILD_TYPE=Release
```

Note that if you encountered the issue(e.g., the offical nvidia docker, see #102) with `libnvcuvid.so`, it's probably due to the missing link for
`libnvcuvid.so`, you can manually find(`ldconfig -p | grep libnvcuvid`) and link the library to `CUDA_TOOLKIT_ROOT_DIR\lib64` to allow `decord` smoothly detect and link the correct library.

To specify a customized FFMPEG library path, use `-DFFMPEG_DIR=/path/to/ffmpeg".

Install python bindings:
Expand Down Expand Up @@ -120,7 +129,7 @@ Then go to root directory build shared library:
```bash
cd decord
mkdir build && cd build
cmake ..
cmake .. -DCMAKE_BUILD_TYPE=Release
make
```

Expand Down

0 comments on commit c949d54

Please sign in to comment.