The problem still exist in opening YUV generated files. All i do is as below please follow and inform me why i cant view the yuv files.<br>1- i convert a video to yuv images (1 image per second) as below:<br>ffmpeg -i c:\test\animals.wmv -r 1 -f image2 -s 320x240 -pix_fmt yuvj420p c:\test\Img-%03d.yuv<br>
the size 320x240 is exactly the frame size of the source video.<br><br>2- I try to view the Img--.yuv files by Irfanview program/file/open as raw file<br>and the parameters which i input in the open raw file page are:<br>
image width: 320 Image height: 240<br>24BPP<br>YUV 420<br>File header size 0<br>Byte pattern start GR<br>Color Order RGB<br>Interleaved <br><br>But the result is a green image which top part of image is bright green and bottom part is dark green !!!!!<br>
Where is my mistake<br><br><div class="gmail_quote">On Mon, Jun 27, 2011 at 6:02 PM, Alex Cohn <span dir="ltr"><<a href="mailto:alexcohn@netvision.net.il">alexcohn@netvision.net.il</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">> when i want to view the results images by Irfanview software, the software detect them as .jpg and says the extension .yuv is wrong.<br>
<br>
</div>IrfanView does not know yuv extension. You should open file "As Raw"<br>
manually, or change the extension.<br>
<div class="im"><br>
> How can i view any raw image in yuv format or even just intensity image with extension(.y)?<br>
<br>
</div>When you choose "Open as Raw" menu, you get a dialog to specify the<br>
image width & height, and also format. If you choose 8-bit grayscale,<br>
you will see intensity only, even if the input is yuv (-f yuvj420).<br>
Or, you may choose 24-bit YUV420 to see your image in color.<br>
<br>
Sincerely,<br>
<font color="#888888">Alex<br>
</font><br>
PS Note that this list requires no to top-post.<br>
<div><div></div><div class="h5">_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div>Amir H. Rouhi</div>
<div>PhD Student/ CSIT RMIT University</div>
<div>Room: 14-09-04</div>
<div><a href="mailto:rouhi_amirhossein@student.rmit.edu.au" target="_blank">rouhi_amirhossein@student.rmit.edu.au</a></div>
<div><a href="mailto:amir.rouhi@rmit.edu.au" target="_blank">amir.rouhi@rmit.edu.au</a></div>
<div> </div><br>