Extract Video File Information

Is there anyway I can extract the video/audio metadata from a file (eg: video codec, resolution, audio codec, channels, etc) in Python? Kodi is already doing this when it updates the library, but is it possible to call this functionality manually from a Python addon? Alternatively, can one access ffmpeg (cross-platform) through the Kodi API?