2
0
Ficheiros
rocm-systems/samples/videoDecodeMultiFiles
Lakshmi Kumar 4de634cfd0 Multi Files Sample - Add reconfigure option (#118)
* Add support for rocDecReconfigureDecoder API

* adrress reviewer's comemnts

* add reconfigure to multifile

* update readme

* Update videodecodemultifiles.cpp

* Update README.md

---------

Co-authored-by: Aryan <aryan.salmanpour@amd.com>
2023-12-06 10:32:39 -05:00
..

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]
m  0 [optional] [0 : OUT_SURFACE_MEM_DEV_INTERNAL/ 1 : OUT_SURFACE_MEM_DEV_COPIED/ 2 : OUT_SURFACE_MEM_HOST_COPIED]
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]>
              -use_reconfigure <flag (bool - 0/1) [optional - default: 1] set 0 to disable reconfigure api for decoding multiple files. Only resolution changes between files are supported when reconfigure is enabled.
                                The codec, bit_depth, and the chroma_format must be the same between files.>