After turn on debug i found bropblem.
It because ID3D11DeviceContext::CopySubresourceRegion
copy between two devices.
Then i remove create device and using ffmpeg device.
AVCodecContext* _codec_ctx = avcodec_alloc_context3(_codec);
av_hwdevice_ctx_create(
&_codec_ctx->hw_device_ctx,
AV_HWDEVICE_TYPE_D3D11VA,
nullptr,
nullptr,
0);
AVHWDeviceContext* hw_device_ctx = reinterpret_cast<AVHWDeviceContext*>(_codec_ctx->hw_device_ctx->data);
AVD3D11VADeviceContext* d3d11va_device_ctx = reinterpret_cast<AVD3D11VADeviceContext*>(hw_device_ctx->hwctx);
_d3d11_device = d3d11va_device_ctx->device;
_d3d11_deviceCtx = d3d11va_device_ctx->device_context;