cleaned up debug
video encoding