View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000215||Cinelerra-GG||[All Projects] Feature||public||2019-05-14 04:36||2019-06-25 19:32|
|Priority||normal||Severity||minor||Reproducibility||have not tried|
|Target Version||Fixed in Version|
|Summary||0000215: OpenCL support via ffmpeg|
It seems ffmpeg already have some filters utilizing openCL (even running arbitrary CL program).
|Steps To Reproduce|
add two hacks in usual places (thirdparty/Makefile and global_config)
system_libs += -lOpenCL for global_config
I don't have OpenCL-capable drivers for my again NVIDIA Corporation G92 [GeForce 8800 GS] (nv50-generation card), but new-ish AMD and Intel should work to some degree ....?
Do not forgot to install opencl-headers. I used icd loader coming with Mesa, but thing like ROCm and Beignet may require their own loader files.
https://github.com/RadeonOpenCompute/ROCm - overview advanced OpenCL for AMD (integrated in mesa clover state tracker limited to OpenCL 1.1 at the moment)
https://github.com/intel/beignet - Intel thing.
|Tags||No tags attached.|
Thanks Andrew. It turned out the ffmpeg on my Mint 19.1 XFCE was too old (version 3.4.6). The
When I used Fedora 30 workstation with ffmpeg installed via RPM Fusion, the ffmpeg version was 4.1.3 , and the supported hardware devices vdpau, cuda, vaapi, qsv, drm, opencl.
¨ffmpeg -hide_banner -v verbose -init_hw_device opencl¨ output:
This matches the output of ¨clinfo¨, don´t know why the i915 driver is here on this AMD machine.
Now the ¨ffmpeg -filters | grep opencl¨ worked, and gave me:
There are less than in your latest. I don´t know if any of these are in frequent use for video editing.
I noticed that clinfo shows ¨max work item sizes¨ of 256x256x256 for this AMD OpenCL, and much larger for the POCL one. I have no idea if that is of consequence for video editing as done by Cin-gg.
ffmpeg -filters | grep opencl
... avgblur_opencl V->V Apply average blur filter
this is for ffmpeg-git-N-93994-gd81913e680
I think this would be very nice to have. I tried getting a list of ffmpeg effects that can use OpenCL, but StackOverflow instructions didn´t work. Does anyone know how to get a list of effect that would potentially benefit?
This sounds like it should be at least given a test; GG should be able to eventually come up with some configuration to test this now that you have done the groundwork of what has to be done to compile it in. But no time schedule yet.