tools.effmpeg package

tools.effmpeg.cli Module

Command Line Arguments for tools

class tools.effmpeg.cli.EffmpegArgs(subparser: _SubParsersAction | None, command: str, description: str = 'default')

Class to parse the command line arguments for EFFMPEG tool

Parameters:
  • subparser (_SubParsersAction | None)

  • command (str)

  • description (str)

static get_argument_list()

Returns the argument list for the current command.

The argument list should be a list of dictionaries pertaining to each option for a command. This function should be overridden with the actual argument list for each command’s argument list.

See existing parsers for examples.

Returns:

The list of command line options for the given command

Return type:

list

static get_info()

Return command information

Classes

EffmpegArgs(subparser, command[, description])

Class to parse the command line arguments for EFFMPEG tool

Class Inheritance Diagram

Inheritance diagram of tools.effmpeg.cli.EffmpegArgs

tools.effmpeg.effmpeg Module

Created on 2018-03-16 15:14

@author: Lev Velykoivanenko (velykoivanenko.lev@gmail.com)

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

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

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

class tools.effmpeg.effmpeg.Effmpeg(arguments)

Class that allows for “easy” ffmpeg use. It provides a nice cli interface for common video operations.

effmpeg_process()

The effmpeg process

static extract(input_=None, output=None, fps=None, extract_ext=None, start=None, duration=None, **kwargs)

Extract video to image frames

static gen_vid(input_=None, output=None, fps=None, mux_audio=False, ref_vid=None, exe=None, **kwargs)

Generate Video

static get_fps(input_=None, print_=False, **kwargs)

Get Frames per Second

static get_info(input_=None, print_=False, **kwargs)

Get video Info

static mux_audio(input_=None, output=None, ref_vid=None, exe=None, **kwargs)

Mux Audio

static parse_time(txt)

Parse Time

process()

EFFMPEG Process

static rescale(input_=None, output=None, scale=None, exe=None, **kwargs)

Rescale Video

static rotate(input_=None, output=None, degrees=None, transpose=None, exe=None, **kwargs)

Rotate Video

static slice(input_=None, output=None, start=None, duration=None, exe=None, **kwargs)

Slice Video

Classes

DataItem([path, name, item_type, ext, fps])

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

Effmpeg(arguments)

Class that allows for "easy" ffmpeg use.