<div>On Thu, Jun 16, 2011 at 10:02 AM, Amir Rouhi-Rmit <span dir="ltr"><<a href="mailto:amir.rouhi@rmit.edu.au">amir.rouhi@rmit.edu.au</a>></span> wrote: <br></div><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
I know that i can extract images of a video by ffmpeg as can be seen in 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
 this by ffmpeg? if yes pleas let me now how and if no do you suggest 
any idea?<br></blockquote>I'm not sure but it seems there are no ways to extract planes separately (however separate planes could be used as input ???).<br><br>However if you know dimensions and pixel formats you may hack this way for one frame<br>
(W and H should be replaced with real width / height and math should be applied):<br><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">ffmpeg -i input.mkv -vframes 1 -s WxH -f image2 rawimage.yuv</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">split -b W*H   rawimage.yuv spl-</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">split -b W*H/4 spl-ab spl2-</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">ffmpeg -s WxH     -pix_fmt gray -f rawvideo -i spl-aa  frameY.png</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ffmpeg -s W/2xH/2 -pix_fmt gray -f rawvideo -i spl2-aa frameU.png</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">ffmpeg -s W/2xH/2 -pix_fmt gray -f rawvideo -i spl2-ab frameV.png</span><br></div><br>Sure this too complicated... maybe advanced ffmpeg users will give you more adequate solution.<br>
<span style="color:rgb(192, 192, 192)">-----------------------------------------------</span><br style="color:rgb(192, 192, 192)"><span style="color:rgb(192, 192, 192)">Kirill Gavrilov,</span><br style="color:rgb(192, 192, 192)">
<span style="color:rgb(192, 192, 192)">Software designer.</span><br><a href="mailto:kirill@sview.ru" target="_blank"></a><br>