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?".
tannaronak

how to convert YUV 422 to jpg

Postby tannaronak » 2010-06-21T03:08:13-07:00

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: 4101
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 8675309
Contact:

Re: how to convert YUV 422 to jpg

Postby snibgo » 2010-06-21T08:52:25-07:00

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

Postby tannaronak » 2010-06-22T21:38:11-07:00

My mistake. it's 'convert', not capture!

User avatar
fmw42
Posts: 15127
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA
Contact:

Re: how to convert YUV 422 to jpg

Postby fmw42 » 2010-06-22T21:41:48-07:00

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

Postby tannaronak » 2010-06-23T04:42:34-07:00

I already searched archive but couldn't get the answer and that's why I postead it for answer from experts...

snibgo
Posts: 4101
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 8675309
Contact:

Re: how to convert YUV 422 to jpg

Postby snibgo » 2010-06-23T05:40:29-07:00

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


Return to “Users”

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 11 guests