DataItem

class tools.effmpeg.effmpeg.DataItem(path=None, name=None, item_type=None, ext=None, fps=None)

Bases: object

A simple class used for storing the media data items and directories that Effmpeg uses for ‘input’, ‘output’ and ‘ref_vid’.

Attributes Summary

audio_ext

img_ext

vid_ext

Methods Summary

is_type([item_type])

Get the type

set_dirname([path])

Set the folder name

set_fps()

Set the Frames Per Second

set_name([name])

Set the name

set_type_ext([path])

Set the extension

Attributes Documentation

audio_ext = ['.aiff', '.flac', '.mp3', '.wav']
img_ext = ['.bmp', '.exr', '.jpeg', '.jpg', '.png', '.tif', '.tiff']
vid_ext = ['.avi', '.flv', '.mkv', '.mov', '.mp4', '.mpeg', '.mpg', '.webm', '.wmv', '.ts', '.vob']

Methods Documentation

is_type(item_type=None)

Get the type

set_dirname(path=None)

Set the folder name

set_fps()

Set the Frames Per Second

set_name(name=None)

Set the name

set_type_ext(path=None)

Set the extension

is_type(item_type=None)

Get the type

set_dirname(path=None)

Set the folder name

set_fps()

Set the Frames Per Second

set_name(name=None)

Set the name

set_type_ext(path=None)

Set the extension