TwVideoManager.misc.parser module

class TwVideoManager.misc.parser.MP4Parser(ffprobe_path: str = './ffprobe')[source]

Bases: object

MP4Parser fetches mp4 file meta-data like length, framerate, or screen resolution.

Variables:ffprobe_path (str) – the path to the ffprobe. Default value is set based on assumption that the ffprobe file is on the working directory
ffprobe_path = './ffprobe'
parse(path: Union[str, TwVideoManager.misc.models.File]) → dict[source]

Parse the given video file and returns as dict

Parameters:path (Union[str,File]) – The path to the file to parse
Return dict:Parsed data as a dict