add ffmpeg lock manager
todo: refactor to own file