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

how to convert YUV 422 to jpg

Postby tannaronak » 2010-06-21T03:08:13+00: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+00:00, edited 2 times in total.
tannaronak
 

Re: how to convert YUV 422 to jpg

Postby snibgo » 2010-06-21T08:52:25+00: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
snibgo
 
Posts: 3822
Joined: 2010-01-23T23:01:33+00:00

Re: how to convert YUV 422 to jpg

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

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

Re: how to convert YUV 422 to jpg

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

search the archives for YUV 422 and see if those results give you what you need.
User avatar
fmw42
 
Posts: 14873
Joined: 2007-07-02T17:14:51+00:00
Location: Sunnyvale, California, USA

Re: how to convert YUV 422 to jpg

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

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

Re: how to convert YUV 422 to jpg

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

If you post input/output good and bad results, we might suggest something.
snibgo's IM pages: im.snibgo.com
snibgo
 
Posts: 3822
Joined: 2010-01-23T23:01:33+00:00


Return to Users

Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot], konstantin and 8 guests