working on recorder video encoding