class documentation

class VideoMetadata(Metadata): (source)

View In Hierarchy

Class for storing metadata about video samples.

Parameters
size_bytesthe size of the video on disk, in bytes
mime_typethe MIME type of the video
frame_widththe width of the video frames, in pixels
frame_heightthe height of the video frames, in pixels
frame_ratethe frame rate of the video
total_frame_countthe total number of frames in the video
durationthe duration of the video, in seconds
encoding_strthe encoding string for the video
Class Method build_for Builds an VideoMetadata object for the given video.
Class Variable duration Undocumented
Class Variable encoding_str Undocumented
Class Variable frame_height Undocumented
Class Variable frame_rate Undocumented
Class Variable frame_width Undocumented
Class Variable total_frame_count Undocumented

Inherited from Metadata:

Class Method _build_for_local Undocumented
Class Method _build_for_url Undocumented
@classmethod
def build_for(cls, video_path_or_url, mime_type=None): (source)

Builds an VideoMetadata object for the given video.

Parameters
video_path_or_urlthe path to a video on disk or a URL
mime_type:Nonethe MIME type of the image. If not provided, it will be guessed
Returns
a VideoMetadata
duration: None = (source)

Undocumented

encoding_str: None = (source)

Undocumented

frame_height: None = (source)

Undocumented

frame_rate: None = (source)

Undocumented

frame_width: None = (source)

Undocumented

total_frame_count: None = (source)

Undocumented