Here is the x264 encoder settings that they are using to encode the 1080p HD video streams over at R18.
This explains the low quality. These are terrible settings.
An examination of the preset settings table reveals that they seem to be using the x264 veryfast preset to encode with. And a few...