I don't think marriage is a visa related question. You can get a non-O "marriage" visa if you qualify at most consulates. See
***************************************************
for more information
The "marriage visa" is technically an extension of stay based on supporting a Thai wife.
And...
*******************************************************************************
*****
-Marriage-Registration.html
For the specific process to get married (I think).