dcase_util.utils.get_media_duration

dcase_util.utils.get_media_duration(filename, logger=None)[source]

Get media file duration using ffprobe.

Parameters
filenamestr

filename

loggerLogger class

Logger class Default value None

Returns
float

Media duration in seconds