A man has escaped a jail sentence after he filmed himself riding his motorbike at speeds of 150mph, and posted it on YouTube.