A Python wrapper around the MediaInfo command line utility
from MediaInfo import MediaInfo info = Mediainfo(filename = '/media/test.ts') infoData = info.getInfo() info = Mediainfo(filename = '/media/test.ts', cmd = '/usr/bin/ffprobe') infoData = info.getInfo() info = Mediainfo(filename = '/media/test.ts', cmd = '/usr/bin/mediainfo') infoData = info.getInfo()
MediaInfo gets information of media through ffprobe by default. Alternatively, ffprobe and mediainfo are also supported in configuration.