process video on background thread