Neil Patrick
Neil Patrick Harris will host this year's Oscars.Reuters

Neil Patrick Harris is confident he can top Ellen DeGeneres' infamous selfie when he hosts the Oscars this weekend.

The actor, who is preparing for the biggest gig of his career, admits that he has been "having nightmares" but believes he will deliver on the night.

During an appearance on the Ellen DeGeneres Show, the How I Met Your Mother star discussed the pressures of entertaining Hollywood A-listers and discussed the best way to approach his hosting duties.

"How do you beat the selfie that broke the internet?" he said. "Selfie's into my brain. So I'm gonna try to do something better, I think," he said.

But DeGeneres insisted that unforgettable moments had to be organic. Her famous Oscars selfie, which featured A list stars Meryl Streep, Bradley Cooper, Brad Pitt, Jennifer Lawrence, Jared Leto and Kevin Spacey, was retweeted over 3 million times, making it the most retweeted image in history.

"You can't plan that. I hoped that it would happen. I hoped people would jump in," DeGeneres said. "So all you have to do is have a nugget of a good idea, and if everybody's on board and they're playing, whatever your idea is, they're with you. That just was such a perfect fluke that happened and I was so lucky."

Despite having a tough act to follow, Harris is hoping to strike just the right balance for the biggest show on earth.

"It's a tricky process with the content," he said. "I'm finding good jokes that we had that are funny and strong, then I'll watch a late-night talk show and they'll say the same joke... the Grammys, Saturday Night Live... I just want everyone to stop talking until Monday!"

The 87th Annual Academy Awards show will air live from the Dolby Theatre at the Hollywood & Highland Center at 7pm ET/4pm PT.

Most Tweeted Selfie
The Oscar selfie that launched millions of retweets.Twitter