Page 1 of 1

how to convert YUV 422 to jpg

Posted: 2010-06-21T03:08:13-07:00
by tannaronak
Hi All Experts!

I am capturing a photo using at91sam9g45 processor.

CASE 1:
Captured photo output details are YUV422, scanning-progressive, packed format (YUYV), size 640x480.

I tried following command
convert -compress JPEG -size 640 x 480 - interlace None - quality 90 -sampling-factor 4:2:2 myInputImage.yuv myoutputImage.jpg

This has been executed successfully but target image is very blured. my yuv image is OK and verified in YUV player.

CASE 2:
Although I could convert image which is YUV422, scanning- planar, size 640x480 (sample image got from internet) using following command
convert -compress JPEG -size 640 x 480 - interlace plane - quality 90 -sampling-factor 4:2:2 myInputImage.yuv myoutputImage.jpg. The output is perfect.


MY QUERY:
Can someone guide me what is wrong in first case?? Is it possible yo convert YUV422 progressive, packed image into jpeg directly using imagemagicK?

Thanks in Advance!
Ronak Tanna

Re: how to convert YUV 422 to jpg

Posted: 2010-06-21T08:52:25-07:00
by snibgo
What is the "capture" command? It doesn't seem to be part of ImageMagick.

If you post the URL of a YUV422 progressive image, we might suggest something.

Re: how to convert YUV 422 to jpg

Posted: 2010-06-22T21:38:11-07:00
by tannaronak
My mistake. it's 'convert', not capture!

Re: how to convert YUV 422 to jpg

Posted: 2010-06-22T21:41:48-07:00
by fmw42
search the archives for YUV 422 and see if those results give you what you need.

Re: how to convert YUV 422 to jpg

Posted: 2010-06-23T04:42:34-07:00
by tannaronak
I already searched archive but couldn't get the answer and that's why I postead it for answer from experts...

Re: how to convert YUV 422 to jpg

Posted: 2010-06-23T05:40:29-07:00
by snibgo
If you post input/output good and bad results, we might suggest something.