ffmpeg -pix_fmt yuv420p -s 176x144 -i carphone_qcif.yuv -pix_fmt nv12 carphone_qcif_nv12.yuv the result seems is bad when trying to play it with the same yuv player ( the setting for qcif 176x144, and NV12 )., Hi, I need to convert RGB32 to YUV420 and vica-versa. What would be the correct sequence of function calls? I have found a way to convert RGB32 to YCbCr420 using ippiBGRToYCbCr420_8u_AC4P3R , then, in the decoder, YCbCr420 to RGB24 using ippiYCbCr420ToBGR_8u_P3C3R. But, how to convert RGB24 to RGB32, Oh, I didn't mean that you were 'wasting my time' or anything like that. Just that your initial post didn't have all the info that you eventually ended up providing, due to my responses. I like the post you made with pictures of your export specs, using hardware and software. And I also really liked, Top of the morning to you kind sirs. We have a custom made board and we use E3845 processor. As the topic says, we would like to use its built-in hardware capabilities to encode H264 video faster with the usage of ffmpeg. Could you please point me to the up-to-date resources regarding the issue? , Can you please check again if the input this is generated is YV12 input. They YV12 format is quite same as YUV420p but the U and V data is reversed. If you don't have tool to check that, then you can use YUV tool kit available online to check. I think because of assuming the input to be YV12, the colors of output is reversed., I'm getting a pointer to a raw video feed from a capture card in YUV420 format. Is there a way to convert this to BGR24 without trying to figure out.