Re: using YADIF_CUDA - how to fix error "Impossible to convert between the formats supported by the filter"
> Hello, seeking help to use the newly updated FFMPEG filter YADIF_CUDA.
> I keep getting error "Impossible to convert between the formats supported
by the filter 'graph 0 input from stream 0:0' and the filter
> I'm obviously doing something wrong in (not?) converting between formats
in the second commandline, but I don't know what to do to fix it.
> Example 1 works, using NVDEC as source input filter.
> Example 2 fails, using vanilla ffmpeg mpeg2 source input filter.
> Can anyone please clarify and how to fix the issue ?
OK, in this forum post Selur indicated something which worked.
Viz adding "hwupload_cuda," as in
-init_hw_device opencl=ocl:0.0 -filter_hw_device ocl -vf
"C:\SOFTWARE\ffmpeg\0-homebuilt-x64\ffmpeg.exe" -loglevel verbose -stats -i
".\1.7TWO.mpg" -t 05 -map_metadata -1 -init_hw_device opencl=ocl:0.0
-filter_hw_device ocl -vf "hwupload_cuda,yadif_cuda=0:-1:0" -r 25 -c:v
h264_nvenc -preset slow -bf 2 -g 50 -refs 3 -rc:v vbr_hq -rc-lookahead:v 32
-cq 22 -qmin 16 -qmax 25 -coder cabac -strict experimental -movflags
+faststart+write_colr -profile:v high -level 4.1 -an -y
However - when I need to combine the YADIF_CUDA deinterlacer with a GPU
based sharpener such as the UNSHARP_OPENCL opencl filter (each filter works
OK by itself) then I can't seem to jag a commandline which works with both.
[format @ 0000021d2443d580] Setting 'pix_fmts' to value 'nv12'
[auto_scaler_0 @ 0000021d0db5a200] w:iw h:ih flags:'bilinear' interl:0
[Parsed_unsharp_opencl_2 @ 0000021d0db67000] auto-inserting filter
'auto_scaler_0' between the filter 'Parsed_yadif_cuda_1' and the filter
Impossible to convert between the formats supported by the filter
'Parsed_yadif_cuda_1' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
Anyone able to indicate what to do to make this work ?