851c537904
* code cleanup - use google style for videodecode sample and RocVideoDecoder class - no functional change * rename SaveSurfToFile to SaveFrameToFile
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
- Ubuntu -
-
Install ROCm 5.5 or later with
--usecase=graphics,rocm --no-32 -
rocDecode
-
CMake
3.5or later -
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]>