suho 0 Newbie Poster

I want to create an mpeg video with ffmpeg with my program that generates lots of 2D arrays, each of which represents an image.
As ffmpeg only takes YUV images.
Is it possible to draw a YUV image in c++ or should i generate a RGB image first and then convert it to YUV ??
Is there a better method for my purpose ?? :-/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.