[Libav-user] How can i extract Y plane from any frame in video

Alex Cohn alexcohn at netvision.net.il
Thu Jun 16 08:41:25 CEST 2011

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.


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

More information about the Libav-user mailing list