The jury was also shown other videos of a man appearing to stab women during sex, with blood visible in some clips.
The jury also saw what the State said was a self-made video of the architect stabbing himself and another of him reviewing the use of chloroform on himself.
The jurors were given a warning before the videos were shown at the Central Criminal Court. It was the third day in a row the jurors were warned about the graphic nature of the evidence.
The court also heard and saw text messages about the “urge to rape, stab and kill” that the prosecution claims Mr Dwyer sent Ms O’Hara on a phone bought on March 25, 2011. One text asks her: “Promise I can kill you by stabbing?” to which she replied “Yes, maybe”.
Another reads: “I can’t see you as an old lady, somehow. You have promised me that I will send you off.”
One text exchange said the sender had arrived at her building.
“I’ll be quick, no punishment, just rape,” he wrote. “I’m scared. I know what you can do,” she said. He said: “I won’t kill you or cut you.”
Mr Dwyer, 42, is charged with murdering Dubliner Elaine O’Hara at Killakee, Rathfarnham, Dublin, on August 22, 2012.
The Cork-born father of three of Kerrymount Close, Foxrock, Dublin, has pleaded not guilty to murdering the 36-year-old childcare worker on that date.
Detective Garda Bríd Wallace gave evidence of finding 38 videos “possibly relevant” to the investigation on hard drives seized from Mr Dwyer’s home.
She said females were present in 35 of these and two of them were movies that appeared to be self-made videos of the accused.
The first to be shown was called ‘Blood2.mp4’ and showed a man stabbing himself. The prosecution labelled this: ‘Clip of Graham Dwyer with Knife’.
The second video featured a man speaking to the camera.
“Hello. I’m just after waking up from having knocked myself out with chloroform,” he said. “I’m very disoriented.” The State labelled this video: ‘Clip of Graham Dwyer after chloroform’.
She found three particular clips in a folder called EH within a folder labelled Sub on one device. The first, labelled Clip21.avi, appeared to show a man swinging a knife at a bound woman while having sex with her.
In another clip, a naked woman with her mouth covered could be heard screaming while a man appeared to push a knife into her.
The detective found 13 videos in a folder called J and another initial within the folder labelled Sub. The first one of these was called Attempted Breast Stab.mp4 and the content was related to the name of the file. The woman could be heard shouting “fucking hell” during the clip.
The trial has heard Ms O’Hara was last seen in Shanganagh, South Dublin, on August 22, 2012, hours after her discharge from a mental health hospital. A cause of death could not be determined when her remains were discovered.