Files
rocm-systems/samples/videoDecodePerf/README.md
T

36 строки
1.0 KiB
Markdown
Исходник Обычный вид История

2024-01-26 05:19:24 -08:00
# Video decode performance sample
2023-11-29 08:21:22 -08:00
This sample illustrates the FFMPEG demuxer to get the individual frames which are then decoded on AMD hardware using rocDecode library.
2024-02-09 10:31:44 -08:00
This sample uses multiple threads to decode the same input video parallelly.
## Prerequisites:
2024-01-26 05:19:24 -08:00
* Install [rocDecode](../../README.md#build-and-install-instructions)
2024-01-26 05:19:24 -08:00
* [FFMPEG](https://ffmpeg.org/about.html)
2024-01-26 05:19:24 -08:00
* On `Ubuntu`
2024-01-26 05:19:24 -08:00
```shell
sudo apt install ffmpeg libavcodec-dev libavformat-dev libavutil-dev
```
2024-01-26 05:19:24 -08:00
* On `RHEL`/`SLES` - install ffmpeg development packages manually or use [rocDecode-setup.py](../../rocDecode-setup.py) script
## Build
2024-01-26 05:19:24 -08:00
```shell
mkdir video_decode_perf_sample && cd video_decode_perf_sample
cmake ../
make -j
```
2024-01-26 05:19:24 -08:00
## Run
```shell
./videodecodeperf -i <input video file [required]>
-t <number of threads [optional - default:4]>
2023-11-29 08:21:22 -08:00
-d <Device ID (>= 0) [optional - default:0]>
-z <force_zero_latency - Decoded frames will be flushed out for display immediately [optional]>
```