psychopy / psychopy

For running psychology and neuroscience experiments
http://www.psychopy.org
GNU General Public License v3.0
1.65k stars 899 forks source link

[Bug] movie.py function pause() only pauses .mp4 audio #4899

Open h2okay opened 2 years ago

h2okay commented 2 years ago

Using moviepy as backend (PsychoPy 2022.1.4):

If the pause() function is called while a .mp4 video is playing, only the sound/audio is paused.

When resuming the video via play(), sound is played again, with correct timing (i.e. with pause(), audio is rather muted than paused.)

Code to call pause() function while .mp4 is playing:

keys = event.getKeys()
if 'space' in keys:
    if moviestim.status == 1:
        moviestim.pause()
    elif moviestim.status == 2:
        moviestim.play()
peircej commented 2 years ago

@h2okay could you tell us which MovieStim/backend you're using here? There are multiple options

h2okay commented 2 years ago

@peircej its in the first sentence! :) Backend: moviepy

peircej commented 2 years ago

lol, OK