yuvj420p hevc input produces green h264 video if scale_npp used

Pretty much the description. So using ffmpeg. If you have a yuvj420p video, in my case 5k HEVC, but I think h264 would also produce this problem, and you scale it using scale_npp filter, then encode it as h264, both sides using the NVENC/DEC you get a green video.

If you use the NVDEC resize filter -resize, without scale_npp, the right video is produced.

I think this is some bug in scale_npp, ffmpeg 4.2.

Can you share the exact command line you used to reproduce this issue?


I had the same issue, downgrading from Cuda 10.2 to 10.1 fixed it (Tesla T4).