Hi,

HW accelerated transcode (h264_cuvid -> h264_nvenc with -hwaccel cuvid) was 
broken after the filtergraph initialization was changed to intialize decoder 
first followed by encoder (commit af1761f7b5b1b72197dc40934953b775c2d951cc). 
During initialzing encoder with bframes, local buffers are allocated internally 
in encoder which fails since no cuda context is bound to current cpu thread. 
Now pushing the correct cuda context before encoder initialization fixes the 
issue. Also adding push/pop cuda ctx during create/destroy/map/unmap resources 
and destroy encoder session.

Regards
Ganapathy


-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may 
contain
confidential information.  Any unauthorized review, use, disclosure or 
distribution
is prohibited.  If you are not the intended recipient, please contact the 
sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

Attachment: avcodec-nvenc-fix-hw-accelerated-transcode-with-bframes.patch
Description: avcodec-nvenc-fix-hw-accelerated-transcode-with-bframes.patch

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to