rigaya / NVEnc

NVENCによる高速エンコードの性能実験
https://rigaya34589.blog.fc2.com/blog-category-17.html
Other
1.03k stars 108 forks source link

When the input is an avs script, it seems that GPU accelerated decoding cannot be used? #584

Closed mojie126 closed 2 months ago

qwe7989199 commented 2 months ago

AviSynth is a frame server that mixes CPU and GPU processing, what it gives to NVEnc is already uncompressed YUV/RGB data, so the concept of decoding doesn't exist between AVS and NVEnc.

In other words, decoding is finished by AviSynth itself, if you want to make use of your GPU to decode the video, LSMASHVideoSource for ISO based media or LWLibavVideoSource for other formats both with prefer_hw=3 will try hardware decoder in the order of CUVID->QSV.

It is possible for normal video codecs to use the power of the GPU to accelerate the decoding based on my practice. image

rigaya commented 2 months ago

@qwe7989199 Thank you for answering and sharing ways to use hw decode via Avisynth.

I'll close the issue as the question has been answered.