rocDecode is a high-performance video decode SDK for AMD GPUs. Using the rocDecode API, you can access the video decoding features available on your GPU.
Note
The published documentation, including installation steps, is available at rocDecode in an organized, easy-to-read format, with search and a table of contents. The documentation source files reside in the
rocDecode/docsfolder of this repository. As with all ROCm projects, the documentation is open source. For more information on contributing to the documentation, see Contribute to ROCm documentation.
After installation, the rocDecode files are found in the following locations:
- Libraries:
/opt/rocm/lib - Header files:
/opt/rocm/include/rocdecode - Samples folder:
/opt/rocm/share/rocdecode - Documents folder:
/opt/rocm/share/doc/rocdecode
You can verify your installation using either the rocdecode-test package or by running a sample.
mkdir rocdecode-test && cd rocdecode-test
cmake /opt/rocm/share/rocdecode/test/
ctest -VV
mkdir rocdecode-sample && cd rocdecode-sample
cmake /opt/rocm/share/rocdecode/samples/videoDecode/
make -j8
./videodecode -i /opt/rocm/share/rocdecode/video/AMD_driving_virtual_20-H265.mp4
Samples are available in the samples directory of this GitHub repository. Refer to the individual folders to build and run the samples.
You can run unit tests using make test. To run unit tests with the verbose option, use make test ARGS="-VV"
make test ARGS-"-VV"
You can find rocDecode Docker containers in the docker directory of this GitHub repository.
