'Sex Tape' director Jake Kasdan researched his film on YouPorn

Jul 15 (TheWrap.com) - “Sex Tape” director Jake Kasdan learned everything he needed to know about homemade pornography from YouPorn, apparently.

The movie stars Jason Segel and Cameron Diaz as a boring, complacent married couple who tries spicing up their love life by making the titular sex tape, but then accidentally uploads it to “the cloud” and shares it with their network of friends. 

The Golden Globe-nominated filmmaker researched the movie premise in a most unconventional way — he worked with YouPorn, a popular YouTube-esque amateur pornography site. 

He didn't log on to their site to watch hours of scintillating videos, however. Kasdan met with the company's executives to get a better understanding of how the online pornography industry and cloud-based file sharing works.

“[YouPorn] had a lot to tell us about how technically it all works, in terms of how this all works on the Internet, and that was really interesting actually,” Kasdan told HuffPost Live. 

“It turns out [people upload videos] so frequently and in such volume that those websites are just some of the biggest on Earth, and the technology to keep them running is worldwide. It was much more like a tech company than like a porn company. It doesn't seem to be a group of people at all — it's a bunch of machines.” 

Segel, along with Kate Angelo and Nicholas Stoller, co-wrote ”Sex Tape,” but it's unclear precisely how much time they spent on YouPorn to better inform their script. 

“Sex Tape” — also starring Rob Corddry, Ellie Kemper and Rob Lowe – hits theaters July 18, 2014.