unity3d-jp / FrameCapturer

export framebuffer, GBuffer or any RenderTextures from Unity to file. supported format: png, exr, gif, webm, mp4
MIT License
1.04k stars 164 forks source link

Possible NVENC support? #17

Closed ikriz closed 7 years ago

ikriz commented 7 years ago

Nvidia NVENC encoding would relieve the CPU of encoding time making it faster :+1:

ikriz commented 7 years ago

Nevermind I said nothing, your awesome :)

i-saint commented 7 years ago

there is code to use NVENC as you noticed, and it at least works, but it is disabled for various reasons. we reached the conclusion that using OS-provided encoder is the only practical solution for us. (you may also noticed there is code to use AMD VCE and Intel QSV, but it is unfinished and doesn't work)

ikriz commented 7 years ago

Support for at least having the option of hardware encoding methods would be great, as rendering the camera can be very cpu/gpu intensive. Already implemented NVENC myself once, would be great if unity supported this. It's highly likely i'll re-enable it in a fork. My goal is a fast realtime h.264 stream.