0

I would like to encode with hevc_vaapi and also to filter with nlmeans_opencl.

I've tried many combinations, such as

ffmpeg -y -vaapi_device /dev/dri/renderD128 -init_hw_device vaapi=vaapi -init_hw_device opencl=opencl -filter_hw_device opencl -hwaccel vaapi -hwaccel_output_format vaapi -i input.mp4 -vf "format=yuv420p,hwupload,hwmap=derive_device=opencl,nlmeans_opencl=4.0:7:5:5:5,hwmap=derive_device=vaapi:reverse=1:extra_hw_frames=16,format=vaapi" -c:v hevc_vaapi -rc_mode CQP -global_quality 25  output.mp4

the error is always

Impossible to convert between the formats supported by the filter 'Parsed_format_5' and the filter 'auto_scale_1'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented

Is there a way to do that? If so, what is the minimum set of options to pass to ffmpeg? (I guess that some of the options above are wrong or unneded)

Thanks for any comment or suggestion.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.