moviepy.tools#

Misc. useful functions that can be used at many places in the program.

Functions

close_all_clips([objects, types])

Closes all clips in a context.

compute_position(clip1_size, clip2_size, pos)

Return the position to put clip 1 on clip 2 based on both clip size and the position of clip 1, as return by clip1.pos() method

convert_to_seconds(time)

Will convert any time into seconds.

cross_platform_popen_params(popen_params)

Wrap with this function a dictionary of subprocess.Popen kwargs and will be ready to work without unexpected behaviours in any platform.

deprecated_version_of(func, old_name)

Indicates that a function is deprecated and has a new name.

ffmpeg_escape_filename(filename)

Escape a filename that we want to pass to the ffmpeg command line

find_extension(codec)

Returns the correspondent file extension for a codec.

no_display_available()

Return True if we determine the host system has no graphical environment.

subprocess_call(cmd[, logger])

Executes the given subprocess command.