[Libav-user] How can i extract Y plane from any frame in video
Alex Cohn
alexcohn at netvision.net.il
Fri Jun 17 06:16:48 CEST 2011
I don't see cb or cr in ffmpeg -pix-fmts. You probably can use the
split solution proposed by Kirill. Note that cb an cr will be
half-width and half-height.
Maybe you should post to ffmpeg-user?
Sincerely,
Alex
On Friday, June 17, 2011, Amir Rouhi-Rmit <amir.rouhi at rmit.edu.au> wrote:
> 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
>
>
More information about the Libav-user
mailing list