Files
rocm-systems/projects/rocdecode/samples/videoDecodeFork/README.md
T
Lakshmi Kumar def60bd433 Add a sample for measuring the video decoding performance using multi-forks (#51)
* fork example

* review comments

* change logic to find vcn

[ROCm/rocdecode commit: 146d243f69]
2023-11-10 11:28:24 -05:00

37 lines
968 B
Markdown

# Video Decode Sample
This sample illustrates the FFMPEG demuxer to get the individual frames which are then decoded on AMD hardware using VAAPI.
This sample supports both YUV420 8-bit and 10-bit streams.
This sample uses fork() to create multiple processes to decode the same input video parallely.
## Prerequisites:
* Linux distribution
+ Ubuntu - `20.04` / `22.04`
* [ROCm supported hardware](https://rocm.docs.amd.com/en/latest/release/gpu_os_support.html)
* Install [ROCm 5.5 or later](https://rocmdocs.amd.com/en/latest/deploy/linux/installer/install.html) with `--usecase=graphics,rocm --no-32`
* rocDecode
* CMake `3.5` or later
* [FFMPEG](https://ffmpeg.org/about.html)
```
sudo apt install ffmpeg libavcodec-dev libavformat-dev libswscale-dev
```
## Build
```
mkdir build
cd build
cmake ../
make -j
```
# Run
```
./videodecodefork -i <input video file [required]>
-t <Number of forks ( >= 1) [optional; default:4]>
```