Info¶
Auto-generated documentation for musicalgestures._info module.
- Mgt-python / Modules / Musicalgestures / Info
mg_info¶
Returns info about video/audio/format file using ffprobe.
Arguments¶
typestr, optional - Type of information to retrieve. Possible choices are 'summary', 'audio', 'video', 'format' or 'frame'. Defaults to None (which gives info about video, audio and format).-'summary' - prints a human-readable table of key video properties (resolution, fps, frame count, duration, color mode, audio) and returns a dict.- 'audio' / 'video' / 'format': returns the matching ffprobe stream as a pandas DataFrame row.
-'frame' - renders a bar chart of I/P/B frame sizes and returns a DataFrame.-None - returns a DataFrame with all ffprobe stream and format metadata.
autoshowbool, optional - Whether to show the I/P/B frames figure automatically. Defaults to True. NB: The type argument needs to be set to 'frame'.overwritebool, optional - Whether to allow overwriting existing files or to automatically increment target filename to avoid overwriting. Defaults to True.
Returns¶
dict or pandas.DataFrame: dict when type='summary', DataFrame otherwise.