[FFmpeg-trac] #9584(undetermined:new): Cannot use nlmeans_opencl filter with nvenc without going through system memory

FFmpeg trac at avcodec.org
Thu Jan 6 00:20:13 EET 2022


#9584: Cannot use nlmeans_opencl filter with nvenc without going through system
memory
--------------------------------+----------------------------------------
             Reporter:  Dimo    |                    Owner:  (none)
                 Type:  defect  |                   Status:  new
             Priority:  normal  |                Component:  undetermined
              Version:  4.4.1   |               Resolution:
             Keywords:          |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+----------------------------------------
Description changed by Dimo:

Old description:

> Summary of the bug:
>
> I'm trying to combine the OpenCL version of the nlmeans filter with the
> nvenc HEVC encoder without copying frames to system memory based on
> @philipl's suggestion from [https://trac.ffmpeg.org/ticket/8512#comment:4
> #8512] but I'm getting errors:
>
> {{{
> [Parsed_hwupload_0 @ 000001e080a88980] Query format failed for
> 'Parsed_hwupload_0': Function not implemented
> Error reinitializing filters!
> Failed to inject frame into filter network: Function not implemented
> Error while processing the decoded data for stream #0:1
> }}}
>
> How to reproduce:
> {{{
> ffmpeg -hwaccel nvdec -hwaccel_output_format cuda -i in.mkv
> -init_hw_device cuda -filter_hw_device cuda0 -filter:v
> "hwupload=derive_device=opencl,nlmeans_opencl,hwupload=derive_device=cuda"
> -c:v hevc_nvenc -preset p7 -rc vbr -cq 24 -c:a copy out.mp4
> ffmpeg version N-105185-gce4d459db1-20220105 Copyright (c) 2000-2022 the
> FFmpeg developers
>   built with gcc 11.2.0 (crosstool-NG 1.24.0.498_5075e1f)
> }}}

New description:

 I'm trying to combine the OpenCL version of the nlmeans filter with the
 nvenc HEVC encoder without copying frames to system memory based on
 @philipl's suggestion from [https://trac.ffmpeg.org/ticket/8512#comment:4
 #8512] but I'm getting errors:

 {{{
 [Parsed_hwupload_0 @ 000001e080a88980] Query format failed for
 'Parsed_hwupload_0': Function not implemented
 Error reinitializing filters!
 Failed to inject frame into filter network: Function not implemented
 Error while processing the decoded data for stream #0:1
 }}}

 How to reproduce:
 {{{
 ffmpeg -hwaccel nvdec -hwaccel_output_format cuda -i in.mkv
 -init_hw_device cuda -filter_hw_device cuda0 -filter:v
 "hwupload=derive_device=opencl,nlmeans_opencl,hwupload=derive_device=cuda"
 -c:v hevc_nvenc -preset p7 -rc vbr -cq 24 -c:a copy out.mp4
 ffmpeg version N-105185-gce4d459db1-20220105 Copyright (c) 2000-2022 the
 FFmpeg developers
   built with gcc 11.2.0 (crosstool-NG 1.24.0.498_5075e1f)
 }}}

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9584#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list