[Libav-user] How can i extract Y plane from any frame in video
Amir Rouhi-Rmit
amir.rouhi at rmit.edu.au
Fri Jun 17 05:55:06 CEST 2011
Thanks alot, The Y plane is quite satisfactory. but for Cb and Cr planes
separately in different images cant i use:
ffmpeg -i input.avi -r 1 -s WxH -pix_fmt cb Img-%03d.yuv
or
ffmpeg -i input.avi -r 1 -s WxH -pix_fmt cr Img-%03d.yuv
Whats your advice for this request?
On Thu, Jun 16, 2011 at 4:41 PM, Alex Cohn <alexcohn at netvision.net.il>wrote:
> You can use
>
> ffmpeg -i input.avi -r 1 -s WxH -pix_fmt yuvj420p Img-%03d.yuv
>
> to produce YCbCr files. Or -pix_fmt gray if you want the Y plane only.
>
> Enjoy,
> Alex
>
> On Thu, Jun 16, 2011 at 09:02, Amir Rouhi-Rmit <amir.rouhi at rmit.edu.au>
> wrote:
> > I know that i can extract images of a video by ffmpeg as can be seen in
> > below command:
> > ffmpeg -i input.avi -r 1 -s WxH -f image2 Img-%03d.jpeg
> > 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?
> > Tnx
> > Amir
> >
> >
> > _______________________________________________
> > Libav-user mailing list
> > Libav-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/libav-user
> >
> >
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
--
Amir H. Rouhi
PhD Student/ CSIT RMIT University
Room: 14-09-04
rouhi_amirhossein at student.rmit.edu.au
amir.rouhi at rmit.edu.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110617/04ba6119/attachment.html>
More information about the Libav-user
mailing list