Fix seeking on mpegts muxing + some refactor