made capture timing more accurately timed with the new encoding thread code