I'm currently doing the following:
From a canvas I'm getting a 50x50px field as Pixel data with the getImageData function.
var imageData = ctx.getImageData(0,0,50,50)
What I want to do, is send this data to FFMMPEG to put it together as a video, FFMPEG expects the following for RGB24:
AV_PIX_FMT_RGB24, ///< packed RGB 8:8:8, 24bpp, RGBRGB...
The question now is, how can I get my ImageData in this format so I can pipe it into FFMPEG?