Number two is correct, however, the comma should come before "than," and not after it:
Many television commercials are as well-produced as, if not more so, than some of the most popular shows.
Alternatively, you could just leave the comma out altogether:
Many television commercials are as well-produced as, if not more so than some of the most popular shows.