MovieVideo

from acron.core import MovieVideo
class MovieVideo

Bases:

Bases: TypedWritableReferenceCount, Namable

A MovieVideo is actually any source that provides a sequence of video frames. That could include an AVI file, a digital camera, or an internet TV station.

The difference between a MovieVideo and a MovieVideoCursor is like the difference between a filename and a file handle. The MovieVideo just indicates a particular movie. The MovieVideoCursor is what allows access.

Inheritance diagram

digraph inheritance392b724184 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "MovieVideo" [URL="acron.core.MovieVideo.html#acron.core.MovieVideo",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "MovieVideo" [arrowsize=0.75,style=""]; "Namable" -> "MovieVideo" [arrowsize=0.75,style=""]; "Namable" [URL="acron.core.Namable.html#acron.core.Namable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "Namable" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }
__init__()

This constructor returns a null video stream — a stream of plain blue and white frames that last one second each. To get more interesting video, you need to construct a subclass of this class.

property filename → Filename

Returns the movie’s filename. A movie is not guaranteed to have a filename, if not, then this function returns an empty filename.

static get()

Obtains a MovieVideo that references a file. Just calls MovieTypeRegistry::make_video().

static get_class_type()
get_filename()

Returns the movie’s filename. A movie is not guaranteed to have a filename, if not, then this function returns an empty filename.

get_subfile_info()

If the movie is to be loaded from a subfile on disk, this returns the subfile info. Check info.is_empty() to see if this is valid data.

open()

Open this video, returning a MovieVideoCursor of the appropriate type. Returns NULL on error.

property subfile_info → SubfileInfo

If the movie is to be loaded from a subfile on disk, this returns the subfile info. Check info.is_empty() to see if this is valid data.