Files
rocm-systems/samples/videoDecodeMultiFiles/README.md
T
Lakshmi Kumar 2cb3bd143c Sample - add a new sample for processing multiple input files (#97)
* adding a sample for decoding multiple files

* readme correction

* spacing

* review comments
2023-11-29 11:13:24 -05:00

1.1 KiB

Video Decode Multi Files Sample

This sample illustrates the FFMPEG demuxer to get the individual frames which are then decoded on AMD hardware using rocDecode library.

This sample takes multiple files as a list and decodes each of them one after the other.

Prerequisites:

Build

mkdir build
cd build
cmake ../
make -j

Run

  • Example input file list - example.txt
infile input1.[mp4/mov...] [required]
outfile output1.yuv [optional]
z 0 [optional]
sei 0 [optional]
crop l,t,r,b [optional]
infile input2.[mp4/mov...] [optional]
outfile output2.yuv [optional]
...
...
./videodecodemultifiles -i <input file list[required - example.txt]>
              -d <GPU device ID - 0:device 0 / 1:device 1/ ... [optional - default:0]>