Shia LaBeouf talked about his recent stint in rehab at a Tribeca Film Festival screening of Alma Har’el’s doc “Love True,” which he produced.

“I just got out of rehab nine months ago, and in rehab they make you do this kind of operatic therapy and you sit with this small group, three or four people, and you work through your s–t and somebody will play your father and somebody will play your mother . . . For me, it was like method acting,” he said. “You rarely get that on a film set because film sets get so large that you have people looking at you like you’re just a [bleeping] actor.”

LaBeouf wrote a check after reaching out to Har’el in a fan letter and starring in Sigur Rós’ video she directed.

“The best art comes out of pain,” he said. “When a genius has pain, the Warren Buffett in me is like, ‘Go.’ Not that there’s a big Warren Buffett in me or anything or that I got into this for financial s–t.” LaBeouf said he was hands-off, having been on sets where a producer “feels like he paid for his opinion to be a part . . . and I’ve been around so many directors that are like, ‘This [bleeping] guy.’ ”

Click here to read more in The New York Post.