{"id":18711271,"url":"https://github.com/rocm/rocdecode","last_synced_at":"2026-02-28T23:32:22.054Z","repository":{"id":230177788,"uuid":"652823055","full_name":"ROCm/rocDecode","owner":"ROCm","description":"[DEPRECATED] Moved to ROCm/rocm-systems repo","archived":false,"fork":false,"pushed_at":"2026-02-16T19:21:34.000Z","size":67826,"stargazers_count":33,"open_issues_count":0,"forks_count":25,"subscribers_count":12,"default_branch":"develop_deprecated","last_synced_at":"2026-02-17T01:59:29.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/ROCm/rocm-systems","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ROCm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-12T21:45:01.000Z","updated_at":"2026-01-30T22:25:08.000Z","dependencies_parsed_at":"2025-10-04T03:29:11.954Z","dependency_job_id":"2a7425ae-431b-4f17-8806-39e2e9f123cf","html_url":"https://github.com/ROCm/rocDecode","commit_stats":null,"previous_names":["rocm/rocdecode"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/ROCm/rocDecode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2FrocDecode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2FrocDecode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2FrocDecode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2FrocDecode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ROCm","download_url":"https://codeload.github.com/ROCm/rocDecode/tar.gz/refs/heads/develop_deprecated","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2FrocDecode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29954970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T22:53:01.873Z","status":"ssl_error","status_checked_at":"2026-02-28T22:52:50.699Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T12:38:21.007Z","updated_at":"2026-02-28T23:32:22.034Z","avatar_url":"https://github.com/ROCm.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n\u003cp align=\"center\"\u003e\u003cimg width=\"70%\" src=\"docs/data/AMD_rocDecode_Logo.png\" /\u003e\u003c/p\u003e\n\nrocDecode is a high-performance video decode SDK for AMD GPUs. Using the rocDecode API, you can\naccess the video decoding features available on your GPU.\n\n\u003e [!NOTE]\n\u003e The published documentation is available at [rocDecode](https://rocm.docs.amd.com/projects/rocDecode/en/latest/index.html) in an organized, easy-to-read format, with search and a table of contents. The documentation source files reside in the `rocDecode/docs` folder 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](https://rocm.docs.amd.com/en/latest/contribute/contributing.html).\n\n## Supported codecs\n* H.265 (HEVC) - 8 bit, and 10 bit\n* H.264 (AVC) - 8 bit\n* AV1 - 8 bit, and 10 bit\n* VP9 - 8 bit, and 10 bit\n\n## Prerequisites\n\n### Operating Systems\n* Linux\n  * Ubuntu - `22.04` / `24.04`\n  * RedHat - `8` / `9`\n  * SLES - `15-SP5`\n\n### Hardware\n* **GPU**: [AMD Radeon\u0026trade; Graphics](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/reference/system-requirements.html) / [AMD Instinct\u0026trade; Accelerators](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/reference/system-requirements.html)\n\n\u003e [!IMPORTANT] \n\u003e * `gfx908` or higher GPU required\n\n* Install ROCm `6.3.0` or later with [amdgpu-install](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/amdgpu-install.html): **Required** usecase:`rocm`\n\u003e [!IMPORTANT]\n\u003e `sudo amdgpu-install --usecase=rocm`\n\n### Compiler\n* AMD Clang++ Version 18.0.0 or later - installed with ROCm\n\n### Libraries\n* CMake Version `3.10` or later\n  ```shell\n  sudo apt install cmake\n  ```\n\n* [Video Acceleration API](https://en.wikipedia.org/wiki/Video_Acceleration_API) - `libva-amdgpu-dev` is an AMD implementation for VA-API\n  ```shell\n  sudo apt install libva-amdgpu-dev\n  ```\n\u003e [!NOTE]\n\u003e * RPM Packages for `RHEL`/`SLES` - `libva-amdgpu-devel`\n\u003e * `libva-amdgpu` is strongly recommended over system `libva` as it is used for building mesa-amdgpu-va-driver\n\n* AMD VA Drivers\n  ```shell\n  sudo apt install libva2-amdgpu libva-amdgpu-drm2 libva-amdgpu-wayland2 libva-amdgpu-x11-2 mesa-amdgpu-va-drivers\n  ```\n\u003e [!NOTE]\n\u003e RPM Packages for `RHEL`/`SLES` - `libva-amdgpu mesa-amdgpu-va-drivers`\n\n* [pkg-config](https://en.wikipedia.org/wiki/Pkg-config)\n  ```shell\n  sudo apt install pkg-config\n  ```\n\n* [FFmpeg](https://github.com/FFmpeg/FFmpeg) libraries and headers:\n  * `libavcodec` - provides implementation of a wider range of codecs.\n  * `libavformat` - implements streaming protocols, container formats and basic I/O access.\n  * `libavutil` - includes hashers, decompressors and miscellaneous utility functions.\n\n\u003e [!NOTE]\n\u003e FFmpeg libraries are used in samples and tests\n\n  ```shell\n  sudo apt install libavcodec-dev libavformat-dev libavutil-dev\n  ```\n\n\u003e [!IMPORTANT]\n\u003e * Required compiler support\n\u003e   * C++17\n\u003e   * Threads\n\u003e * On Ubuntu 22.04 - Additional package required: libstdc++-12-dev\n\u003e  ```shell\n\u003e  sudo apt install libstdc++-12-dev\n\u003e  ```\n\n\u003e[!NOTE]\n\u003e * All package installs are shown with the `apt` package manager. Use the appropriate package manager for your operating system.\n\n### Prerequisites setup script\n\nFor your convenience, we provide the setup script, [rocDecode-setup.py](https://github.com/ROCm/rocDecode/blob/develop/rocDecode-setup.py), which installs all required dependencies. Run this script only once.\n\n```shell\npython3 rocDecode-setup.py  --rocm_path [ ROCm Installation Path  - optional (default:/opt/rocm)]\n                            --runtime   [ Setup runtime requirements - optional (default:ON) [options:ON/OFF]]\n                            --developer [ Setup Developer Options - optional (default:OFF) [options:ON/OFF]]\n```\n\n## Installation instructions\n\nThe installation process uses the following steps:\n\n* [ROCm-supported hardware](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/reference/system-requirements.html) install verification\n\n* Install ROCm `6.3.0` or later with [amdgpu-install](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/amdgpu-install.html) with `--usecase=rocm`\n\n\u003e[!IMPORTANT]\n\u003e Use **either** [package install](#package-install) **or** [source install](#source-install) as described below.\n\n### Package install\n\nTo install rocDecode runtime, development, and test packages, run the line of code for your operating\nsystem.\n\n* Runtime package - `rocdecode` only provides the rocdecode library `librocdecode.so`\n* Development package - `rocdecode-dev`/`rocdecode-devel` provides the library, header files, and samples\n* Test package - `rocdecode-test` provides CTest to verify installation\n\n#### Ubuntu\n\n  ```shell\n  sudo apt install rocdecode rocdecode-dev rocdecode-test\n  ```\n\n#### RHEL\n\n  ```shell\n  sudo yum install rocdecode rocdecode-devel rocdecode-test\n  ```\n\n#### SLES\n\n  ```shell\n  sudo zypper install rocdecode rocdecode-devel rocdecode-test\n  ```\n\n\u003e[!NOTE]\n\u003e Package install auto installs all dependencies.\n\n\u003e [!IMPORTANT] \n\u003e `RHEL`/`SLES` package install requires manual `FFMPEG` dev install\n\n### Source install\n\nTo build rocDecode from source and install, run:\n\n```shell\ngit clone https://github.com/ROCm/rocDecode.git\ncd rocDecode\npython3 rocDecode-setup.py\nmkdir build \u0026\u0026 cd build\ncmake ../\nmake -j8\nsudo make install\n```\n\n#### Run tests\n\n  ```shell\n  make test\n  ```\n  \u003e [!IMPORTANT] \n  \u003e make test requires `FFMPEG` dev install\n\n  \u003e[!NOTE]\n  \u003e To run tests with verbose option, use `make test ARGS=\"-VV\"`.\n\n#### Make package\n\n  ```shell\n  sudo make package\n  ```\n\n## Verify installation\n\nThe installer copies:\n\n* Libraries into `/opt/rocm/lib`\n* Header files into `/opt/rocm/include/rocdecode`\n* Samples folder into `/opt/rocm/share/rocdecode`\n* Documents folder into `/opt/rocm/share/doc/rocdecode`\n\n### Using sample application\n\nTo verify your installation using a sample application, run:\n\n  ```shell\n  mkdir rocdecode-sample \u0026\u0026 cd rocdecode-sample\n  cmake /opt/rocm/share/rocdecode/samples/videoDecode/\n  make -j8\n  ./videodecode -i /opt/rocm/share/rocdecode/video/AMD_driving_virtual_20-H265.mp4\n  ```\n\n### Using test package\n\nTo verify your installation using the `rocdecode-test` package, run:\n\n  ```shell\n  mkdir rocdecode-test \u0026\u0026 cd rocdecode-test\n  cmake /opt/rocm/share/rocdecode/test/\n  ctest -VV\n  ```\n\n## Samples\n\nYou can access samples to decode your videos in our\n[GitHub repository](https://github.com/ROCm/rocDecode/tree/develop/samples). Refer to the\nindividual folders to build and run the samples.\n\n[FFmpeg](https://ffmpeg.org/about.html) is required for sample applications and `make test`. To install\nFFmpeg, refer to the instructions listed for your operating system:\n\n* Ubuntu:\n\n  ```shell\n  sudo apt install libavcodec-dev libavformat-dev libavutil-dev\n  ```\n\n* RHEL/SLES:\n\n  Install ffmpeg development packages manually or use `rocDecode-setup.py` script\n\n## Docker\n\nYou can find rocDecode Docker containers in our\n[GitHub repository](https://github.com/ROCm/rocDecode/tree/develop/docker).\n\n## Tested configurations\n\n* Linux\n  * Ubuntu - `22.04` / `24.04`\n  * RHEL - `8` / `9`\n  * SLES - `15 SP5`\n* ROCm: `6.3.0`\n* libva-amdgpu-dev - `2.16.0`\n* mesa-amdgpu-va-drivers - `1:24.3.0`\n* FFmpeg - `4.4.2` / `6.1.1`\n* rocDecode Setup Script - `V2.5.0`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocm%2Frocdecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocm%2Frocdecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocm%2Frocdecode/lists"}