encoding sample frame crash in addon