Table Of Contents
Core class for reading video files and managing the
Changed in version 1.9.2: The pyglet, pygst and gi providers have been removed.
Changed in version 1.8.0: There is now 2 distinct Gstreamer implementation: one using Gi/Gst working for both Python 2+3 with Gstreamer 1.0, and one using PyGST working only for Python 2 + Gstreamer 0.10.
Recording is not supported.
VideoBase, a class used to implement a video reader.
- filename: str
Filename of the video. Can be a file or an URI.
- eos: str, defaults to ‘pause’
Action to take when EOS is hit. Can be one of ‘pause’, ‘stop’ or ‘loop’.
Changed in version unknown: added ‘pause’
- async: bool, defaults to True
Load the video asynchronously (may be not supported by all providers).
- autoplay: bool, defaults to False
Auto play the video on init.
Fired when EOS is hit.
Fired when the video is loaded and the texture is available.
Fired when a new frame is written to the texture.
Get the video duration (in seconds)
Get/set the filename/uri of the current video
Load the video from the current filename
Pause the video
New in version 1.4.0.
Play the video
Get/set the position in the video (in seconds)
Move on percent position
Get the video playing status
Stop the video playing
Get the video texture
Unload the actual video
Get/set the volume in the video (1.0 = 100%)