how to convert YUV 422 to jpg

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
tannaronak

how to convert YUV 422 to jpg

Post 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
Last edited by tannaronak on 2010-06-22T21:39:29-07:00, edited 2 times in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: how to convert YUV 422 to jpg

Post 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.
snibgo's IM pages: im.snibgo.com
tannaronak

Re: how to convert YUV 422 to jpg

Post by tannaronak »

My mistake. it's 'convert', not capture!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: how to convert YUV 422 to jpg

Post by fmw42 »

search the archives for YUV 422 and see if those results give you what you need.
tannaronak

Re: how to convert YUV 422 to jpg

Post by tannaronak »

I already searched archive but couldn't get the answer and that's why I postead it for answer from experts...
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: how to convert YUV 422 to jpg

Post by snibgo »

If you post input/output good and bad results, we might suggest something.
snibgo's IM pages: im.snibgo.com
Post Reply