[FFmpeg-devel] [PATCH] (for discussion): ffmpeg_filter: initialize cuvid for filter_complex

Miroslav Slugeň thunder.m at email.cz
Tue Feb 14 00:24:27 EET 2017


Dne 13.2.2017 v 23:00 Timo Rothenpieler napsal(a):
>> It is problem in NVENC.
>>
>> You create first frame before initialization of NVENC in CUVID, so this
>> first frame is not accesible to NVENC until
>> dl_fn->cuda_dl->cuCtxPushCurrent(ctx->cu_context) is called in NVENC.
>>
>> This trivial patch should fix your problem.
>>
>> M.
> Very interesting. I don't think this patch is the proper fix though.
> There never should be an active cuda context when returning from a
> function, at least that's the premise under which I wrote all cuda
> related functions so far.
>
> This must mean that before, cuvid or something else must somehow have
> leaked a bound cuda context to nvenc. So that might need fixing as well.
>
> Thank you very much for finding this!
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Try to look at: 
http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#module

Maybe someone from nvidia will be able to explain it more

M.




More information about the ffmpeg-devel mailing list