If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Windows 10
PsychoPy version (e.g. 1.84.x): v.2022.2.5
Standard Standalone? (y/n) Y
What are you trying to achieve?: Showing videos in a routine with a 7 second freeze frame at the end of each video
More detail:
Hello all. I am trying to create an experiment in the psychopy builder v.2022.2.5 where 18 videos get shown in sequence. The videos are h.264 CODEC mp4 files, and 720p. Outside of pyschopy in a video editor I added a 7 seconds of freeze frame at the end of each video, with the freeze frame each video is between 11-16 seconds long. I have the experiment set up with a routine called “Movie” and a loop with an excel file that references the file path to each movie with nreps set to two so each movie plays twice. The loop works and the movies play, my issue is that the freeze frame at the end of the video will often run much longer than the 7 seconds i edited in (sometimes between 25-30 seconds). The timing seems to be very inconsistent and I am struggling to figure out why.
Dear zanwynia,
One possible fix is to use the movie without the freeze frame addition. And then use a still image of the part that you want to freeze frame. Add that in as an image and set the display length as you need for each image/freeze frame in the excel file.
Issac
Hello Stanley101,
Thank you for the reply. I did as you suggested, however the timing of my videos is still off. When it reaches the end of the video, the video will freeze and the last half second or so of audio will loop for a second or two before it moves on to the next video. This throws off the entire timing of my experiment. Do you have any suggestions for getting the videos to properly stop and start as they are supposed to?
Dear Zanwynia,
If your audio is the same file is coming from the same video file, you will need to edit the video to be shorter (to the point of the freeze frame). Therefore there should be no additional audio. If your audio is a separate file that is played in tandem with the movie, make sure the length of the audio file matches the video. The image below is an example of what it would be if the audio is a different stimuli.
Issac