Hi<br>I use the below command for extracting raw image (YUV) from a video:<br> ffmpeg -i input.avi -r 1 <span style="font-size:11.0pt;mso-bidi-font-size:12.0pt;
font-family:Arial;mso-fareast-font-family:"Times New Roman";mso-bidi-font-family:
"Times New Roman";mso-ansi-language:EN-AU;mso-fareast-language:EN-AU;
mso-bidi-language:AR-SA">–f image2 </span>-s WxH -pix_fmt yuvj420p Img-%03d.yuv<br>But when i want to view the results images by Irfanview software, the software detect them as .jpg and says the extension .yuv is wrong. Whats your idea?<br>
How can i view any raw image in yuv format or even just intensity image with extension(.y)?<br><br><br><div class="gmail_quote">On Fri, Jun 17, 2011 at 2:16 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;">I don't see cb or cr in ffmpeg -pix-fmts. You probably can use the<br>
split solution proposed by Kirill. Note that cb an cr will be<br>
half-width and half-height.<br>
<br>
Maybe you should post to ffmpeg-user?<br>
<br>
Sincerely,<br>
Alex<br>
<br>
On Friday, June 17, 2011, Amir Rouhi-Rmit <<a href="mailto:amir.rouhi@rmit.edu.au">amir.rouhi@rmit.edu.au</a>> wrote:<br>
> Thanks alot, The Y plane is quite satisfactory. but for Cb and Cr planes separately in different images cant i use:<br>
> ffmpeg -i input.avi -r 1 -s WxH -pix_fmt cb Img-%03d.yuv<br>
> or<br>
> ffmpeg -i input.avi -r 1 -s WxH -pix_fmt cr Img-%03d.yuv<br>
> Whats your advice for this request?<br>
><br>
><br>
><br>
><br>
><br>
> On Thu, Jun 16, 2011 at 4:41 PM, Alex Cohn <<a href="mailto:alexcohn@netvision.net.il">alexcohn@netvision.net.il</a>> wrote:<br>
> You can use<br>
><br>
> ffmpeg -i input.avi -r 1 -s WxH -pix_fmt yuvj420p Img-%03d.yuv<br>
><br>
> to produce YCbCr files. Or -pix_fmt gray if you want the Y plane only.<br>
><br>
> Enjoy,<br>
> Alex<br>
><br>
><br>
><br>
> On Thu, Jun 16, 2011 at 09:02, Amir Rouhi-Rmit <<a href="mailto:amir.rouhi@rmit.edu.au">amir.rouhi@rmit.edu.au</a>> wrote:<br>
>> I know that i can extract images of a video by ffmpeg as can be seen in<br>
>> below command:<br>
>> ffmpeg -i input.avi -r 1 -s WxH -f image2 Img-%03d.jpeg<br>
>> But what i want is a separated Y plane and cb and cr plane. can i i achieve<br>
>> this by ffmpeg? if yes pleas let me now how and if no do you suggest any<br>
>> idea?<br>
>> Tnx<br>
>> Amir<br>
>><br>
>><br>
>> _______________________________________________<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>
>><br>
>><br>
> _______________________________________________<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>
><br>
><br>
><br>
> --<br>
> Amir H. Rouhi<br>
> PhD Student/ CSIT RMIT University<br>
> Room: 14-09-04<br>
> <a href="mailto:rouhi_amirhossein@student.rmit.edu.au">rouhi_amirhossein@student.rmit.edu.au</a><br>
> <a href="mailto:amir.rouhi@rmit.edu.au">amir.rouhi@rmit.edu.au</a><br>
><br>
><br>
_______________________________________________<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>
</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>