If you secretly record people in states of undress during sexual activity, then you can be charged with and convicted of invasion of privacy, PC 647(j)(3), and perhaps other crimes as well. It doesn't matter that you secretly record them in your home or that you're also in the video.