Files
rocm-systems/samples/videoDecode
Lakshmi Kumar ad54bd5258 README - updates for samples (#98)
* update readme for samples

* readme clean up

* readme clean up
2023-11-29 11:21:22 -05:00
..
2023-11-29 11:21:22 -05:00
2023-11-27 13:03:26 -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.

Prerequisites:

Build

mkdir build
cd build
cmake ../
make -j

Run

./videodecode -i <input video file [required]> 
              -o <output path to save decoded YUV frames [optional]> 
              -d <GPU device ID - 0:device 0 / 1:device 1/ ... [optional - default:0]>
              -z <force_zero_latency - Decoded frames will be flushed out for display immediately [optional]>
              -sei <extract SEI messages [optional]>
              -crop <crop rectangle for output (not used when using interopped decoded frame) [optional - default: 0,0,0,0]>