I have a YUV420 image of size 1280x720. I am trying to resize it to 720x576 using convert (Imagemagick) using below commandline options. But the generated output file doesnot seem to be a proper resized YUV420 image(I want the resized output also to be in YUV420 format):

convert -size 1280x720 -depth 8 -sampling-factor 2x2  test_1280x720_yuv420.yuv  -filter lanczos -resize 720x576 -depth 8 -sampling-factor 2x2  720x576_yuv420.yuv //Here the output file size is not what it should be of a 720x576 YUV420 file which is 720x576x1.5 bytes. 

Question: What is the format of this output file then?

Also tried -sample option as, but same result. Incorrect sized output file. I even tried to display the generated resized file, but it sure is not a YUV420 file, as could not view it correctly at all.

convert -size 1280x720 -depth 8 -sampling-factor 2x2  test_1280x720_yuv420.yuv   -sample 720x576 -depth 8 -sampling-factor 2x2  720x576_yuv420.yuv

Question: Would convert be able to do what I am trying to get done? IF yes, what are the options?

Question: Any other tool (freeware, shareware) which could help me resize YUV files (different formats like YUV420, YUV444) to YUV format output files?

link|improve this question

54% accept rate
When you say you 'could not view it correctly at all' do you mean that your image viewer could not open it or that it could open it but the image was not what you expected? When you refer to 'incorrect sized output file' are you saying it was the wrong file size or the wrong pixel dimensions? – Mike Fitzpatrick Sep 26 '11 at 23:18
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.