Thanks for your nice reply. <br>in Pixel formats (-pix_fmt) we have a wide variety of output formats. I have three question and i would be pleased if you help me the answers:<br><br>1- Would you let me know whats the difference between yuvj420p  and yuv420p? both has same nb-channels and depth<br>
2- whats the mean of is_alpha parameter and nb_channels in different -pix_fmt?<br>3- if i want to quantise the result how can i reduce the depth from 8 to 3 or 4?<br><br>Regards<br><br><div class="gmail_quote">On Tue, Jun 28, 2011 at 7:14 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;">Amir,<br>
<div class="im"><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>
<br>
</div>By default, -f image2 produces JPEG files. You should use -vcodec<br>
rawvideo to produce yuv420 images, e.g.<br>
<br>
ffmpeg -i c:\test\animals.wmv -r 1 -f image2 -vcodec rawvideo -pix_fmt<br>
<div class="im">yuvj420p c:\test\Img-%03d.yuv<br>
<br>
</div>Note that you can skip -s if you do not resize the result.<br>
<br>
Sincerely,<br>
<font color="#888888">Alex<br>
</font><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>