A query on using the OpenCL tonemap filter from derived OpenCL device contexts from VAAPI.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

A query on using the OpenCL tonemap filter from derived OpenCL device contexts from VAAPI.

Brainiarc7
Hello there,

From this patchwork:
https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/8b8b0e2cd26cf1f522c630859fcbcc62b6493fb9

It should be possible to utilize an OpenCL tonemap filter which does
HDR(HDR10/HLG) to SDR conversion with tone-mapping, as shown in the example
below:

ffmpeg -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device \
opencl=ocl@va -hwaccel vaapi -hwaccel_device va -hwaccel_output_format \
vaapi -i INPUT -filter_hw_device ocl -filter_complex \
'[0:v]hwmap,tonemap_opencl=t=bt2020:tonemap=linear:format=p010[x1]; \
[x1]hwmap=derive_device=vaapi:reverse=1' -c:v hevc_vaapi -profile 2 OUTPUT

However, doing this results in a failure, shown below:

Device creation failed: -38.
Failed to set value 'opencl=ocl@va' for option 'init_hw_device': Function
not implemented

Platform details:

I'm using the Intel Media driver built with the
cl_intel_va_api_media_sharing OpenCL extension enabled. The OpenCL platform
on the system is based on Neo:

fmpeg -hide_banner -v verbose -init_hw_device opencl
[AVHWDeviceContext @ 0x560d50e77140] 0.0: Intel(R) OpenCL HD Graphics /
Intel(R) Gen9 HD Graphics NEO

The Intel Media SDK is also installed, and can use both  QSV and
VAAPI-based encoders in FFmpeg using the media-driver.

How can I fix that issue above?
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: A query on using the OpenCL tonemap filter from derived OpenCL device contexts from VAAPI.

Paul B Mahol
On 11/6/18, Dennis Mungai <[hidden email]> wrote:

> Hello there,
>
> From this patchwork:
> https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/8b8b0e2cd26cf1f522c630859fcbcc62b6493fb9
>
> It should be possible to utilize an OpenCL tonemap filter which does
> HDR(HDR10/HLG) to SDR conversion with tone-mapping, as shown in the example
> below:
>
> ffmpeg -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device \
> opencl=ocl@va -hwaccel vaapi -hwaccel_device va -hwaccel_output_format \
> vaapi -i INPUT -filter_hw_device ocl -filter_complex \
> '[0:v]hwmap,tonemap_opencl=t=bt2020:tonemap=linear:format=p010[x1]; \
> [x1]hwmap=derive_device=vaapi:reverse=1' -c:v hevc_vaapi -profile 2 OUTPUT
>
> However, doing this results in a failure, shown below:
>
> Device creation failed: -38.
> Failed to set value 'opencl=ocl@va' for option 'init_hw_device': Function
> not implemented
>
> Platform details:
>
> I'm using the Intel Media driver built with the
> cl_intel_va_api_media_sharing OpenCL extension enabled. The OpenCL platform
> on the system is based on Neo:
>
> fmpeg -hide_banner -v verbose -init_hw_device opencl
> [AVHWDeviceContext @ 0x560d50e77140] 0.0: Intel(R) OpenCL HD Graphics /
> Intel(R) Gen9 HD Graphics NEO
>
> The Intel Media SDK is also installed, and can use both  QSV and
> VAAPI-based encoders in FFmpeg using the media-driver.
>
> How can I fix that issue above?

Issues posted with -hide_banner option are ignored.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: A query on using the OpenCL tonemap filter from derived OpenCL device contexts from VAAPI.

Brainiarc7
I'll correct that and update the question, thanks.

On Tue, 6 Nov 2018 at 11:08, Paul B Mahol <[hidden email]> wrote:

> On 11/6/18, Dennis Mungai <[hidden email]> wrote:
> > Hello there,
> >
> > From this patchwork:
> >
> https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/8b8b0e2cd26cf1f522c630859fcbcc62b6493fb9
> >
> > It should be possible to utilize an OpenCL tonemap filter which does
> > HDR(HDR10/HLG) to SDR conversion with tone-mapping, as shown in the
> example
> > below:
> >
> > ffmpeg -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device \
> > opencl=ocl@va -hwaccel vaapi -hwaccel_device va -hwaccel_output_format \
> > vaapi -i INPUT -filter_hw_device ocl -filter_complex \
> > '[0:v]hwmap,tonemap_opencl=t=bt2020:tonemap=linear:format=p010[x1]; \
> > [x1]hwmap=derive_device=vaapi:reverse=1' -c:v hevc_vaapi -profile 2
> OUTPUT
> >
> > However, doing this results in a failure, shown below:
> >
> > Device creation failed: -38.
> > Failed to set value 'opencl=ocl@va' for option 'init_hw_device':
> Function
> > not implemented
> >
> > Platform details:
> >
> > I'm using the Intel Media driver built with the
> > cl_intel_va_api_media_sharing OpenCL extension enabled. The OpenCL
> platform
> > on the system is based on Neo:
> >
> > fmpeg -hide_banner -v verbose -init_hw_device opencl
> > [AVHWDeviceContext @ 0x560d50e77140] 0.0: Intel(R) OpenCL HD Graphics /
> > Intel(R) Gen9 HD Graphics NEO
> >
> > The Intel Media SDK is also installed, and can use both  QSV and
> > VAAPI-based encoders in FFmpeg using the media-driver.
> >
> > How can I fix that issue above?
>
> Issues posted with -hide_banner option are ignored.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".