597b29a7c9
* * rocDecode: Core test updates. - Added VP9 test. - Added tests for video decode raw sample. - Changed test video streams to raw elementary or IVF formats. * * rocDecode/CTest: Added back mp4 files. * * rocDecode/CTest: Minor changes based on review comments. * * rocDecode/CTest: Added stream file installation. * * rocDecode/CTest: Changed the file back to mp4. * Add support for VP9 handling in the videoDecodeBatch sample * add linking with threads for videodecode app --------- Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>
Video decode batch sample
This sample decodes multiple files using multiple threads, using the rocDecode library. The input is a directory of files and an input number of threads. The maximum number of threads is capped to 64. If the number of files is higher than the number of threads requested by the user, the files are distributed to the threads in a round robin fashion. If the number of files is lesser than the number of threads requested by the user, the number of threads created will be equal to the number of files.
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_batch && cd video_decode_batch
cmake ../
make -j
Run
./videodecodebatch -i <directory containing input video files [required]>
-t <number of threads [optional - default:4]>
-d <Device ID (>= 0) [optional - default:0]>