http://ffmpeg.org/archive.html >July 10, 2013, FFmpeg 2.0 >We have made a new major release (2.0) It contains all features and bugfixes >of the git master branch from 10th July. A partial list of new stuff is below: >... >- OpenCL support Reproducible: Always
did you manage to get it working ? with nvidia opencl drivers, I get this error at configure: ERROR: opencl must be installed and version must be 1.2 or compatible
Yep, headers in /usr/include/CL point to /usr/lib64/OpenCL/global/include/CL-1.1/*, whilst app-admin/eselect-opencl have CL-1.2 includes, i just did: rm /usr/include/CL/* for i in /usr/lib64/OpenCL/global/include/CL-1.2/*;do ln -s $i /usr/include/CL;done and it builds: $ readelf -d ffmpeg |grep CL 0x0000000000000001 (NEEDED) Shared library: [libOpenCL.so.1] seems some interesting lore is in app-admin/eselect-opencl ChangeLog: *eselect-opencl-1.1.0-r3 (14 Jul 2014) 14 Jul 2014; Patrick Lauer <patrick@gentoo.org> +eselect-opencl-1.1.0-r3.ebuild: Revert switch to opencl-1.2 headers, needs proper switching logic. Fixes #512680 ... *eselect-opencl-1.1.0-r2 (04 Jun 2014) 04 Jun 2014; Patrick Lauer <patrick@gentoo.org> +eselect-opencl-1.1.0-r2.ebuild: Bump of OpenCL headers for #496418, not keyworded as it may need more testing
Created attachment 383936 [details] ffmpeg config.log
Forgot to mention, thats with nvidia drivers too.
well, thanks, but then we'll need proper eselect-opencl support before adding this support in ffmpeg
(In reply to nzqr from comment #4) > Forgot to mention, thats with nvidia drivers too. nvidia won't support opencl-1.2, so this does not do what you expect.
It works: $ time ./ffmpeg -y -ss 120 -i test.mkv -filter:v unsharp=7:7:2.5:7:7:2.5:opencl=0 -t 60 -f rawvideo /dev/null real 0m26.976s real 0m26.978s real 0m26.990s real 0m27.000s opencl=1 real 0m7.398s real 0m7.420s real 0m7.467s real 0m8.900s $ nvidia-smi --list-gpus GPU 0: GeForce GTS 450 (UUID: GPU-3b832cc9-ab20-30e7-0d3e-1dd371d85d68)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f252f9161c8ee5c1facfb676a7d83657ef5aa50 commit 8f252f9161c8ee5c1facfb676a7d83657ef5aa50 Author: Craig Andrews <candrews@gentoo.org> AuthorDate: 2018-03-27 02:28:03 +0000 Commit: Alexis Ballier <aballier@gentoo.org> CommitDate: 2018-03-28 08:02:27 +0000 media-video/ffmpeg: add opencl use flag Closes: https://bugs.gentoo.org/520736 Package-Manager: Portage-2.3.24, Repoman-2.3.6 media-video/ffmpeg/ffmpeg-3.4.2-r1.ebuild | 492 ++++++++++++++++++++++++++++++ media-video/ffmpeg/ffmpeg-9999.ebuild | 3 +- media-video/ffmpeg/metadata.xml | 1 + 3 files changed, 495 insertions(+), 1 deletion(-)