getting video encoding working