No, I didn't learn about BDSM from mainstream media. None of the examples you have given have anything at all to do with consensual sexual relationships. I first encountered the idea of BDSM from pornography. I learned a lot about BDSM from websites like this one.