just noting a reference to ffmpeg and cuda/cuvid/opencl

Anything related to video and my tools that is not a support request.
Post Reply
User avatar
hydra3333
Posts: 393
Joined: Wed Oct 06, 2010 3:34 am
Contact:

just noting a reference to ffmpeg and cuda/cuvid/opencl

Post by hydra3333 »

As a guess, I suppose you are very well across nvidia sdk code :) and maybe ffmpeg code.
Nevertheless, still worth mentioning a 2017 change about ffmpeg and cuda.

So, noting a reference to building ffmpeg code with cuda/cuvid natively/easily and with opencl with a bit of fiddling
https://ffmpeg.zeranoe.com/forum/viewto ... 073#p12073
... DGDecNV etc are the gold standard, it appears to me, hence mentioning ffmpeg's cuvid decoding in case some of ffmpeg's code as mentioned in
https://trac.ffmpeg.org/wiki/HWAccelInt ... IDNvDecode
is of interest to you.

Here https://github.com/rdp/ffmpeg-windows-b ... -203004146 mentions
One of the things I'd like to be able to do is hardware-accelerate video resizing during transcoding, which is available using the (nonfree) library libnpp if you have a compatible Nvidia graphics card. I would submit a patch for this, but I could use a little guidance / information on how to do that, because libnpp requires signing up with Nvidia's developer program and then downloading the NVENC SDK (which includes the primitives SDK) in order to get the libraries.
I mention this one in case you were considering a filter to facilitate resizing at various points in scripts and the "libnpp" code may or may not be handy for you.

For completeness, also referencing viewtopic.php?f=14&t=559&p=6326#p6326 which links to nvencC code for nvenc encoding.
I really do like it here.
User avatar
hydra3333
Posts: 393
Joined: Wed Oct 06, 2010 3:34 am
Contact:

Re: just noting a reference to ffmpeg and cuda/cuvid/opencl

Post by hydra3333 »

Just found out that, now, all of nvenc, cuda, cuvid get built into by default.

https://github.com/rdp/ffmpeg-windows-b ... -289060653
Appears the default is to have them on so I guess we get it "for free"?
$ ./configure --help | grep nvenc
--disable-nvenc disable Nvidia video encoding code [autodetect]
$ ./configure --help | grep cuda
--disable-cuda disable dynamically linked Nvidia CUDA code [autodetect]
$ ./configure --help | grep cuvid
--disable-cuvid disable Nvidia CUVID support [autodetect]
I really do like it here.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: just noting a reference to ffmpeg and cuda/cuvid/opencl

Post by admin »

Thanks for the info, hydra3333.
User avatar
hydra3333
Posts: 393
Joined: Wed Oct 06, 2010 3:34 am
Contact:

Re: just noting a reference to ffmpeg and cuda/cuvid/opencl

Post by hydra3333 »

I wonder what people's views are of CUDA based "optical flow" for motion detection ? I'm not sure the concept is applicable to "typical" avisynth(/vapoursynth) usages. An old 2009 reference, code apparently on nvidia's site.
https://www.researchgate.net/publicatio ... using_CUDA
unrelated videos of the concept
http://gstvnet.com/video/page/object-de ... -on-opencv
http://gstvnet.com/video/watch/idNLjjJQ81RbX0
http://gstvnet.com/video/watch/idNzNqCNMefyV8
http://gstvnet.com/video/watch/idNaunIuxk9OvI

Off the mainstream a tad, cuda based face detection
https://www.researchgate.net/publicatio ... ion_System
I really do like it here.
Post Reply