Put video generation on a background thread so the UI can still be responsive