The images are alleged to have been on a laptop and external hard drive seized by police when they raided medical student Yousik Badri’s flat in Aberdeen in 2013.
Badri, 29, denies three charges under the Terrorism Act.
The jury saw a series of videos including one which showed hand grenades being made and one where a man surrendered, then was tied up and shot.
One of the films opened with a pastiche of the opening credits of a Hollywood film. It showed in a frame a photograph of a man’s eyes.
DC Mark White, of the counter-terrorism squad, who was giving evidence for a second day at the High Court in Glasgow, was asked if he recognised the man and replied: “Not identify, but I believe it resembles Mr Badri.”
The police officer was then shown a photograph, which he identified as Badri, taken from a memory stick found in the flat at Ashgrove Road, Aberdeen. He was asked by prosecutor Richard Goddard: “Is that the same person,” and DC White replied: “I think it’s the same image possibly.”
DC White was asked what the footage showed and replied: “It appears to be a computer-generated image of a convoy of trucks and an explosive device blowing them up.”
The jury was also told that a 65-page document entitled “39 ways to serve and participate in the jihad,” and another document called: “44 ways to support jihad,” were found on the hand drive.
Badri faces a number of allegations including an accusation he was involved in conduct “with the intention of committing acts of terrorism”.
The offences are said to have been carried out at two places in Aberdeen - Badri’s former flat and in Berryden Retail Park.
Prosecutors claim that between 2007 and 2013, Badri collected or made a record of information likely to be useful to a person “committing or preparing an act of terrorism”.
This allegedly included footage of terror attacks as well as instructions on “urban assassinations” and “guerrilla tactics”.
The second charge alleges that Badri “with the intention of committing acts of terrorism” engaged in various actions between 2006 and 2013.
Accusations listed in the indictment include a claim that he had an “equipment list” for attending a terrorist training camp in Afghanistan.
He is also said to have possessed “advice for those involved in conducting terrorist attack planning operations”.
The charge further states that he had documents, recordings and files containing “extreme ideology”.
The final accusation claims that in April last year, Badri posted on Twitter the phrase: “Whoever feels safe from punishment, misbehaves”.
The comment is said to have come from a copy of the Inspire magazine - described as being published by the “propaganda wing” of al-Qaeda.
Badri denies all the charges against him and the trial continues.