Files
rocm-systems/projects/rocdecode/samples/videoDecodeFork
Lakshmi Kumar 548c562d6e README - updates for samples (#98)
* update readme for samples

* readme clean up

* readme clean up

[ROCm/rocdecode commit: ad54bd5258]
2023-11-29 11:21:22 -05:00
..
2023-11-29 11:21:22 -05:00

Video Decode 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 fork() to create multiple processes to decode the same input video parallely.

Prerequisites:

Build

mkdir build
cd build
cmake ../
make -j

Run

./videodecodefork -i <input video file [required]> 
                  -f <Number of forks ( >= 1) [optional; default:4]>
                  -d <Device ID (>= 0) [optional - default:0]>
                  -z <force_zero_latency - Decoded frames will be flushed out for display immediately [optional]>