Internal method that opens a new stream using filename. Internal method called when the decoder encounters the end of the
Call this when tearing down thisĬlass or if a movie is stopped. _freeBuffers ( ) ¶įree texture and pixel buffers. Raises an error if an instance is already spawned and hasn’t beenĭraw the frame to the window. Internal method to create a new VLC instance. Internal method to release the presently loaded stream (if any). _calcSizeRendered ( ) ¶īy _updateVertices() and verticesPix _closeMedia ( ) ¶ This functionality is now handledīy _updateVertices() and verticesPix. TheseĮrrors originate from the decoder and can be safely ignored.ĭEPRECATED in 1.80.00. Get_buffer() failed, no frame!, etc.) after shutting down. You may see error messages in your log output from VLC (e.g., Loop ( bool) – Whether to start the movie over from the beginning if draw is called andĪutoStart ( bool) – Automatically begin playback of the video when flip() is called. If aįloat, values between 0 and 1 may be used. Volume ( int or float) – If specifying an int the nominal level is 100, and 0 is silence. If None, the nativeįlipVert ( bool) – If True then the movie will be top-bottom flipped.įlipHoriz ( bool) – If True then the movie will be right-left flipped. Size ( ArrayLike or None) – Size of the video frame on the window in units. Units ( str) – Units to use when sizing the video frame on the window, affects how If an empty string, no file willīe loaded on initialization but can be set later.
Win ( Window) – Window the video is being drawn to.įilename ( str) – Name of the file or stream URL to play.
Of VLC installed matches the architecture of the Python interpreter hosting Machine running PsychoPy to use this class. The VLC media player ( ) must be installed on the Most applications where the user is not concerned about precision audio Is only played using the default output device. High-resolution videos (720p+) than the other movie classes. This movie class is very efficient and better suited for playing VlcMovieStim ( win, filename = '', units = 'pix', size = None, pos = 0.0, 0.0, ori = 0.0, flipVert = False, flipHoriz = False, color = 1.0, 1.0, 1.0, colorSpace = 'rgb', opacity = 1.0, volume = 1.0, name = '', loop = False, autoLog = True, depth = 0.0, noAudio = False, interpolate = True, autoStart = True ) ¶Ī stimulus class for playing movies in various formats (mpeg, avi,Įtc…) in PsychoPy using the VLC media player as a decoder. draw() is called ( bool).ĭetails ¶ class psychopy.visual. If set to True then the movie will be flipped vertically (top-to-bottom). If set to True then the movie will be flipped horizontally (left-to-right). Size of the video (w, h) in pixels ( tuple). Provides a value between 0.0 and 100.0, indicating the amount of the movie that has been already played. Percentage of the video completed ( float). Get the time that the movie file specified the current video frame as having. Number of loops completed since playback started ( int). Get the current movie frame number ( int), same as frameIndex.ĭuration of the loaded video in seconds ( float).
Seek to a particular timestamp in the movie.Ĭurrent frame index being displayed ( int). Stop the current point in the movie (sound will stop, current frame will not advance). Start or continue a paused movie from current position. True if the video is presently paused ( bool). True if the video has not be started yet ( bool). True if the video is presently playing ( bool). See ~MovieStim.loadMovie (the functions are identical). Whether every change in this stimulus should be auto logged.ĭraw the current frame to a particular Window (or to the default win for this object if not specified).ĭetermines whether the stimulus should be automatically drawn on every frame flip. The name ( str) of the object to be using during logged messages about this stim. The size (width, height) of the stimulus in the stimulus unitsĭetermines how visible the stimulus is relative to background. The orientation of the stimulus (in degrees). The position of the center of the stimulus in the stimulus units The Window object in which the stimulus will be rendered by default. VlcMovieStim(win)Ī stimulus class for playing movies in various formats (mpeg, avi, etc…) in PsychoPy using the VLC media player as a decoder.