Files
rocm-systems/samples/videoDecodePerf
Lakshmi Kumar 5bac02fab3 Add a sample for measuring the video decoding performance using multi-threads (#50)
* introducing perf example

* chnages for google standards

* adding exception handling

* review comments

* change logic to find vcn devices

* adding comments
2023-11-10 11:23:44 -05:00
..

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 multiple threads to decode the same input video parallely.

Prerequisites:

  • Linux distribution

    • Ubuntu - 20.04 / 22.04
  • ROCm supported hardware

  • Install ROCm 5.5 or later with --usecase=graphics,rocm --no-32

  • rocDecode

  • CMake 3.5 or later

  • FFMPEG

    sudo apt install ffmpeg libavcodec-dev libavformat-dev libswscale-dev
    

Build

mkdir build
cd build
cmake ../
make -j

Run

./videodecodeperf -i <input video file [required]> 
                  -t <number of threads [optional - default:4]>