adapt to video generate