31c7c7c104
* Fix a segmentation fault on some samples when the memory type is 3 (OUT_SURFACE_MEM_NOT_MAPPED) and attempting to save the output (which is not supported) * update the videoDecodeMultiFiles sample * update the readme for videoDecodeMultiFiles * add comments * use OUT_SURFACE_MEM_NOT_MAPPED instead of integer number 3
1.0 KiB
1.0 KiB
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
-
- On
Ubuntu
sudo apt install ffmpeg libavcodec-dev libavformat-dev libavutil-dev- On
RHEL/SLES- install ffmpeg development packages manually or use rocDecode-setup.py script
- On
Build
mkdir video_decode_perf_sample && cd video_decode_perf_sample
cmake ../
make -j
Run
./videodecodeperf -i <input video file [required]>
-t <number of threads [optional - default:4]>
-d <Device ID (>= 0) [optional - default:0]>
-z <force_zero_latency - Decoded frames will be flushed out for display immediately [optional]>