compile video function