Error with encoding sample

Hi guys,

I’m working on the NVIDIA Codec API and I am working on encoding. I have succeeded in decoding with the API, however, whenever I am trying to encode a file like .nv12 or .native file, it gives me the error of “Invalid value. Can’t convert to one of yuv420 yuv444”. I am pretty new to video manipulations. Can anyone help me understand this error? Thanks so much!