Discussion:
[FFmpeg-user] No opencl header in fresh build install dir
Erwan Douaille
2018-11-15 16:21:48 UTC
Permalink
Hey everyone,

I Just subscribe to this mailing list because I would like to use ffmpeg
with opencl. I´m working on windows 10 with mingw64. Build everything but
I don´t see any opencl related headers in my install dir. I don´t have any
opencl issue while configuring of compiling.

Steps :
- downloaded ffmpeg 4.1 source and convert cuda opencl.lib to opencl.a for
mingw.
- run ./configure --arch=x86_64 --enable-opencl --prefix=/mydir and
everything looks good.
- Then mingw32-make.exe, I had some errors related to ar fixed by
modifying library.mak
- Then make install.

Do you know if it´s normal ? How to ensure my build is "opencl ready" ?

Here is a pastebin with the full result of configure, make and make install
: https://pastebin.com/CkSqsEtM

Thanks for help :)
--
Best regards,

Douaille Erwan <***@gmail.com>
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject "unsubs
Moritz Barsnick
2018-11-17 09:47:32 UTC
Permalink
Post by Erwan Douaille
Do you know if it´s normal ? How to ensure my build is "opencl ready" ?
I would say that your output of ./configure already says so. You have
the hwaccell opencl, and various *_opencl filters.

You could also try:
$ /e/Downloads/ffmpeg/bin/ffmpeg -hwaccells | grep opencl
$ /e/Downloads/ffmpeg/bin/ffmpeg -filters | grep opencl
to see the actual result.

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmp
Erwan Douaille
2018-11-19 09:22:10 UTC
Permalink
Thanks for your reply.
$ ./ffmpeg.exe -hwaccels | grep opencl
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (Rev2, Built by MSYS2 project)
configuration: --arch=x86_64 --enable-opencl
--prefix=/e/Downloads/ffmpeg/
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
opencl
$ ./ffmpeg.exe -filters | grep opencl
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (Rev2, Built by MSYS2 project)
configuration: --arch=x86_64 --enable-opencl
--prefix=/e/Downloads/ffmpeg/
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
... avgblur_opencl V->V Apply average blur filter
... convolution_opencl V->V Apply convolution mask to input video
... dilation_opencl V->V Apply dilation effect
... erosion_opencl V->V Apply erosion effect
... overlay_opencl VV->V Overlay one video on top of another
... prewitt_opencl V->V Apply prewitt operator
... program_opencl |->V Filter video using an OpenCL program
... roberts_opencl V->V Apply roberts operator
... sobel_opencl V->V Apply sobel operator
... tonemap_opencl V->V perform HDR to SDR conversion with
tonemapping
... unsharp_opencl V->V Apply unsharp mask to input video
... openclsrc |->V Generate video using an OpenCL program
But I don´t understand why I don´t have any opencl headers in my include
dir using make install.
By example in include/libavutil I might have hwcontext_opencl.h but it
doesn´t exist. Is it normal ?
Post by Erwan Douaille
Do you know if it´s normal ? How to ensure my build is "opencl ready" ?
I would say that your output of ./configure already says so. You have
the hwaccell opencl, and various *_opencl filters.
$ /e/Downloads/ffmpeg/bin/ffmpeg -hwaccells | grep opencl
$ /e/Downloads/ffmpeg/bin/ffmpeg -filters | grep opencl
to see the actual result.
Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
--
Best regards,

Douaille Erwan <***@gmail.com>
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request@
Carl Eugen Hoyos
2018-11-19 14:35:51 UTC
Permalink
Post by Erwan Douaille
Thanks for your reply.
$ ./ffmpeg.exe -hwaccels | grep opencl
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (Rev2, Built by MSYS2 project)
configuration: --arch=x86_64 --enable-opencl
--prefix=/e/Downloads/ffmpeg/
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
opencl
$ ./ffmpeg.exe -filters | grep opencl
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (Rev2, Built by MSYS2 project)
configuration: --arch=x86_64 --enable-opencl
--prefix=/e/Downloads/ffmpeg/
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
... avgblur_opencl V->V Apply average blur filter
... convolution_opencl V->V Apply convolution mask to input video
... dilation_opencl V->V Apply dilation effect
... erosion_opencl V->V Apply erosion effect
... overlay_opencl VV->V Overlay one video on top of another
... prewitt_opencl V->V Apply prewitt operator
... program_opencl |->V Filter video using an OpenCL program
... roberts_opencl V->V Apply roberts operator
... sobel_opencl V->V Apply sobel operator
... tonemap_opencl V->V perform HDR to SDR conversion with
tonemapping
... unsharp_opencl V->V Apply unsharp mask to input video
... openclsrc |->V Generate video using an OpenCL program
But I don´t understand why I don´t have any opencl headers in my include
dir using make install.
By example in include/libavutil I might have hwcontext_opencl.h but it
doesn´t exist. Is it normal ?
This header is supposed to be installed if you type "make install".

Please avoid top-posting here, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-reque
Erwan Douaille
2018-11-19 14:40:14 UTC
Permalink
Post by Carl Eugen Hoyos
Post by Erwan Douaille
Thanks for your reply.
$ ./ffmpeg.exe -hwaccels | grep opencl
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (Rev2, Built by MSYS2 project)
configuration: --arch=x86_64 --enable-opencl
--prefix=/e/Downloads/ffmpeg/
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
opencl
$ ./ffmpeg.exe -filters | grep opencl
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (Rev2, Built by MSYS2 project)
configuration: --arch=x86_64 --enable-opencl
--prefix=/e/Downloads/ffmpeg/
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
... avgblur_opencl V->V Apply average blur filter
... convolution_opencl V->V Apply convolution mask to input video
... dilation_opencl V->V Apply dilation effect
... erosion_opencl V->V Apply erosion effect
... overlay_opencl VV->V Overlay one video on top of another
... prewitt_opencl V->V Apply prewitt operator
... program_opencl |->V Filter video using an OpenCL program
... roberts_opencl V->V Apply roberts operator
... sobel_opencl V->V Apply sobel operator
... tonemap_opencl V->V perform HDR to SDR conversion with
tonemapping
... unsharp_opencl V->V Apply unsharp mask to input video
... openclsrc |->V Generate video using an OpenCL program
But I don´t understand why I don´t have any opencl headers in my include
dir using make install.
By example in include/libavutil I might have hwcontext_opencl.h but it
doesn´t exist. Is it normal ?
This header is supposed to be installed if you type "make install".
Please avoid top-posting here, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
Sorry for top-posting.
I agree, this header is supposed to be install when I type "make install",
but it´s not.
--
Best regards,

Douaille Erwan <***@gmail.com>
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request
Carl Eugen Hoyos
2018-11-19 14:59:15 UTC
Permalink
Post by Erwan Douaille
Post by Carl Eugen Hoyos
Post by Erwan Douaille
Thanks for your reply.
$ ./ffmpeg.exe -hwaccels | grep opencl
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (Rev2, Built by MSYS2 project)
configuration: --arch=x86_64 --enable-opencl
--prefix=/e/Downloads/ffmpeg/
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
opencl
$ ./ffmpeg.exe -filters | grep opencl
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (Rev2, Built by MSYS2 project)
configuration: --arch=x86_64 --enable-opencl
--prefix=/e/Downloads/ffmpeg/
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
... avgblur_opencl V->V Apply average blur filter
... convolution_opencl V->V Apply convolution mask to input video
... dilation_opencl V->V Apply dilation effect
... erosion_opencl V->V Apply erosion effect
... overlay_opencl VV->V Overlay one video on top of another
... prewitt_opencl V->V Apply prewitt operator
... program_opencl |->V Filter video using an OpenCL program
... roberts_opencl V->V Apply roberts operator
... sobel_opencl V->V Apply sobel operator
... tonemap_opencl V->V perform HDR to SDR conversion with
tonemapping
... unsharp_opencl V->V Apply unsharp mask to input video
... openclsrc |->V Generate video using an OpenCL program
But I don´t understand why I don´t have any opencl headers in my include
dir using make install.
By example in include/libavutil I might have hwcontext_opencl.h but it
doesn´t exist. Is it normal ?
This header is supposed to be installed if you type "make install".
I agree, this header is supposed to be install when I type "make install",
but it´s not.
Sorry, you are right, the header is not installed, it seems to be missing
from HEADERS in libavutil/Makefile where the other hwaccel headers
are listed.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject
Erwan Douaille
2018-11-19 15:11:34 UTC
Permalink
Post by Erwan Douaille
Post by Carl Eugen Hoyos
Post by Erwan Douaille
Thanks for your reply.
$ ./ffmpeg.exe -hwaccels | grep opencl
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (Rev2, Built by MSYS2 project)
configuration: --arch=x86_64 --enable-opencl
--prefix=/e/Downloads/ffmpeg/
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
opencl
$ ./ffmpeg.exe -filters | grep opencl
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (Rev2, Built by MSYS2 project)
configuration: --arch=x86_64 --enable-opencl
--prefix=/e/Downloads/ffmpeg/
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
... avgblur_opencl V->V Apply average blur filter
... convolution_opencl V->V Apply convolution mask to input video
... dilation_opencl V->V Apply dilation effect
... erosion_opencl V->V Apply erosion effect
... overlay_opencl VV->V Overlay one video on top of another
... prewitt_opencl V->V Apply prewitt operator
... program_opencl |->V Filter video using an OpenCL
program
Post by Erwan Douaille
Post by Carl Eugen Hoyos
Post by Erwan Douaille
... roberts_opencl V->V Apply roberts operator
... sobel_opencl V->V Apply sobel operator
... tonemap_opencl V->V perform HDR to SDR conversion with
tonemapping
... unsharp_opencl V->V Apply unsharp mask to input video
... openclsrc |->V Generate video using an OpenCL program
But I don´t understand why I don´t have any opencl headers in my
include
Post by Erwan Douaille
Post by Carl Eugen Hoyos
Post by Erwan Douaille
dir using make install.
By example in include/libavutil I might have hwcontext_opencl.h but it
doesn´t exist. Is it normal ?
This header is supposed to be installed if you type "make install".
I agree, this header is supposed to be install when I type "make
install",
Post by Erwan Douaille
but it´s not.
Sorry, you are right, the header is not installed, it seems to be missing
from HEADERS in libavutil/Makefile where the other hwaccel headers
are listed.
Carl Eugen
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
Is it a known issue ? Am I doing something wrong ?
I quickly check the makefile but I don´t see why install-headers command is
wrong ...
--
Best regards,

Douaille Erwan <***@gmail.com>
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject "u
Loading...