Skip to content

Info

Auto-generated documentation for musicalgestures._info module.

mg_info

[find in source code]

def mg_info(self, type=None, autoshow=True, overwrite=False):

Returns info about video/audio/format file using ffprobe.

Arguments

  • type str, optional - Type of information to retrieve. Possible choice are 'audio', 'video', 'format' or 'frame'. Defaults to None (which gives info about video, audio and format).
  • autoshow bool, optional - Whether to show the I/P/B frames figure automatically. Defaults to True. NB: The type argument needs to be set to 'frame'.
  • overwrite bool, optional - Whether to allow overwriting existing files or to automatically increment target filename to avoid overwriting. Defaults to False.

Returns

  • str - decoded ffprobe output (stdout) as a list containing three dictionaries for video, audio and format metadata.

plot_frames

[find in source code]

def plot_frames(
    df,
    label,
    color_list=['#636EFA', '#00CC96', '#EF553B'],
    index=0,
):