Encoding Qt QImage into H.264 mkv video