c486a7f6b4
* * rocDecode/Perf sample: Added decoded frame number and display delay options to video decode performance sample. Also changed default thread number from 4 to 1. * * rocDecode: Added max number of decoded frames option to decode sample script. This is useful to do partial decoding test on long streams. * * rocDecode: Updated README.md. * * rocDecode: Minor correction.
38 lines
1.2 KiB
Markdown
38 lines
1.2 KiB
Markdown
# Video decode performance sample
|
|
|
|
This sample illustrates the FFMPEG demuxer to get the individual frames which are then decoded on AMD hardware using rocDecode library.
|
|
|
|
This sample uses multiple threads to decode the same input video parallelly.
|
|
|
|
## Prerequisites:
|
|
|
|
* Install [rocDecode](../../README.md#build-and-install-instructions)
|
|
|
|
* [FFMPEG](https://ffmpeg.org/about.html)
|
|
|
|
* On `Ubuntu`
|
|
|
|
```shell
|
|
sudo apt install ffmpeg libavcodec-dev libavformat-dev libavutil-dev
|
|
```
|
|
|
|
* On `RHEL`/`SLES` - install ffmpeg development packages manually or use [rocDecode-setup.py](../../rocDecode-setup.py) script
|
|
|
|
## Build
|
|
|
|
```shell
|
|
mkdir video_decode_perf_sample && cd video_decode_perf_sample
|
|
cmake ../
|
|
make -j
|
|
```
|
|
|
|
## Run
|
|
|
|
```shell
|
|
./videodecodeperf -i <input video file [required]>
|
|
-t <number of threads [optional - default:1]>
|
|
-f <Number of decoded frames - specify the number of pictures to be decoded [optional]>
|
|
-disp_delay <display delay - specify the number of frames to be delayed for display [optional]>
|
|
-d <Device ID (>= 0) [optional - default:0]>
|
|
-z <force_zero_latency - Decoded frames will be flushed out for display immediately [optional]>
|
|
``` |