I have developed a ((Camera capture in YV12) -> VPP to NV12 -> Encode -> Record) application and it's works fine with 1280x720 and 320x240 resolutions but the colors don't fit with the luminance frame in 1920x1080 resolution.
i'm using ffmpeg to muxing the encoded frames in a .mp4 file
I am applying the MSDK_ALIGN16 macro to the mfxVideoParam::mfx.FrameInfo.Height, mfxVideoParam::vpp.In.Height and mfxVideoParam::vpp.out.Height
I don't know if the problem is in the ffmpeg mux or in the encoder.
Someone have any idea?
I will attach a sample of the output file
regards, and sorry for the poor english
It's hard to say what is going on exactly based on the content you provided.
Most likely the issue is related to surface memory alignment or using wrong pitch when copying data into input YV12 surface buffer (please check and compare to Media SDK sample code).