#5587 closed defect (invalid)
Attempting to use scale_npp filter results in "impossible to convert between formats"
Reported by: | rednaxela | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avfilter |
Version: | git-master | Keywords: | npp |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
As best as I can tell, trying to use the scale_npp filter is always resulting in an error such as the following for me:
Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto-inserted scaler 0' Error opening filters!
An example command line is
ffmpeg -i input_file.mkv -filter:v "scale_npp=w=1316:h=1080:format=same:interp_algo=lanczos" -codec:v libx264 output_file.mkv
This seems to happen regardless of what sort of input file I try. Initially was using a rgb24 color space input file, and thinking that might have been the problem tried a yuv420p input file, with the same result.
This is based upon a local build of the current git version, built under MSYS2 and which includes libnpp support.
A full log is attached.
Maybe this is user error rather than a bug? I can't see what I've done wrong though.
Attachments (1)
Change History (4)
by , 9 years ago
Attachment: | ffmpeg-20160523-231956.log added |
---|
comment:1 by , 9 years ago
libavfilter is not too smart when it comes to HW acceleration. Try something like "hwupload_cuda,scale_npp=w=1316:h=1080:format=yuv420p:interp_algo=lanczos,hwdownload,format=yuv420p". Basically, you need to explicitly send frames to GPU and back, and you need to manually tell libavfilter the pixel format of the frames on their way back to main memory (which is a shame but it's how things are for now).
comment:2 by , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Ahhh, thanks for the clarification about that. With the addition of hwupload_cuda and hwdownload, things are working nicely.
comment:3 by , 8 years ago
Keywords: | npp added |
---|
Full log up to when the error occurs.