[FFmpeg-devel] [PATCH] Added the possibility to pass an externally created CUDA context to libavutil/hwcontext.c/av_hwdevice_ctx_create() for decoding with NVDEC

Timo Rothenpieler timo at rothenpieler.org
Tue May 8 01:10:35 EEST 2018


Am 07.05.2018 um 19:37 schrieb Oscar Amoros Huguet:
> I was looking at the NVIDIA Video codec sdk samples (https://developer.nvidia.com/nvidia-video-codec-sdk#Download), where you can find the header NvDecoder.h next to cuviddec.h where CUVIDPROCPARAMS is defined.
> 
> Anyway, I should have looked at ffmpeg code directly, to see what’s being used, sorry for that.
> 
> Great then! Having the same cuda stream (either default or custom) for everything is the safest and most efficient way to go (in this case).
> 
> Thanks, and let me know if I can help with anything.
> 

You can find the mentioned changes on my personal github:
https://github.com/BtbN/FFmpeg

The cuMemcpy is entirely gone, not just Async. And the CUstream can be 
set and will be passed on to cuvid/nvdec.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3994 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180508/c2dc8dac/attachment.bin>


More information about the ffmpeg-devel mailing list