[FFmpeg-devel] [PATCH] avcodec/cuviddec: update amount of decoder surfaces from within sequence decode callback
Roman Arzumanyan
r.arzumanyan at visionlabs.ai
Mon Jun 5 10:30:07 EEST 2023
Hello,
This patch reduces vRAM usage by cuvid decoder implementation.
The number of surfaces used for decoding is updated within the parser
sequence decode callback.
Also the "surfaces" AVDictionary option specific to cuvid was removed in
favor of "extra_hw_surfaces".
vRAM consumption was tested on various videos and savings are between 1%
for 360p resolution up to 21% for some 1080p H.264 videos.
Decoding performance was tested on various H.264 and H.265 videos in
different resolutions from 360p and higher, no performance penalty was
found.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavcodec-cuviddec-determine-DPB-size-from-within-c.patch
Type: application/x-patch
Size: 3864 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20230605/80f60fcb/attachment.bin>
More information about the ffmpeg-devel
mailing list