This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

JPEG encoding issue on DM368

I am running DVSDK4.02 on DM368 platform.

The YUV420P file is generated by dvsdk-demos/encode program, encoded h264 stream looks normal.

 

Then I try to encode a yuv frame to jpeg using:

./image_encode* -e encode -c jpegenc -i /dev/shm/raw.yuv -o /dev/shm/out.jpg -r 1920x1080 --iColorSpace 2 --oColorSpace 2

output is like this

 

So it appears to be pix format issue. Has somebody seen anything similar?

Thanks.