06.02.2018, 23:33
(06.02.2018, 21:56)Selur Wrote:i just started encoding using "-hwaccel cuvid". i will report back if it helps.Quote:i dont remember hwaccel initialization return error. where would i see this?You would see them when calling the different ffmpeg calls I asked you to try.
In case they don't throw this error vpu decoding should be used.
Quote:any instructions how to setup and use Avisynth and Vapoursynth with hybrid?Vapoursynth will be used, when "Filtering->Support" is set to "Vapoursynth" and a Vapoursynth filter is used. Sadly there is no free VPU decoder for Vapoursynth. Hybrid does support using DGDecNV (associated files and the license.txt would need to be copied into the vsfilters/DGDecNV folder), but that isn't free.
Usage of Avisynth can be enforced using "Config->Internals->Avisynth->Always use Avisynth", when "Filtering->Support" is set to "Avisynth" and one could use FRIM as a free vpu decoder supported source filter by enabling "Filtering->Avisysnth->Misc->Support FRIM".
-> ARGH, just checked, FRIM doesn't support HEVC hardware decoding.
=> So the only way to get hardware hevc decoding is either through FFmpeg or DGDecNV.
Your best change is probably ffmpeg with "-hwaccel cuvid" (see: https://trac.ffmpeg.org/wiki/HWAccelIntro, which isn't supported atm. in Hybrid, but I could add support for it fairly easy), but that only makes sense if that works and helps. (posted an appropriate call above, btw. if you test those calls you can also check whether is helps if you remove the '-threads 1' part, which limits the software decoding threads)
Cu Selur
Thanks
i noticed its not working right away. getting avg 13fps
Stream #0:0 -> #0:0 (hevc (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
[AVHWFramesContext @ 0000026f7eef0440] Pixel format 'yuv420p10le' is not supported
[hevc @ 0000026f7ec4adc0] Error initializing a CUDA frame pool
cuvid hwaccel requested for input stream #0:0, but cannot be initialized.
[hevc @ 0000026f7ec4adc0] Error parsing NAL unit #10.
Error while decoding stream #0:0: Operation not permitted
[hevc @ 0000026f7ec4adc0] Could not find ref with POC 0
[yuv4mpegpipe @ 0000026f10174880] Warning: generating non standard YUV stream. Mjpegtools will not work.
same on another system with p4000 but getting better fps. I will test others. hwaccel cuvid seem very low speed