A simple MPEG encoder: create the encoder and add images to it as &[u8]. Drop the encoder and you are done!
&[u8]