Moved some stuff to members of the encoding thread, fixed sink media type, now it seems we have an issue with timing.