Skip to main content

Know better your media files

Project description

Know better your media files.

Latest Version Travis CI build status License
Project page:



Extract information from a video file:

$ knowit /folder/Audio Samples/hd_dtsma_7.1.mkv
For: /folder/Audio Samples/hd_dtsma_7.1.mkv
Knowit 0.2.0 found:
    "title": "HD DTS-HD Master Audio 7.1",
    "path": "/folder/Audio Samples/hd_dtsma_7.1.mkv",
    "duration": "0:00:21",
    "size": "31.64 MB",
    "bit_rate": "12.0 Mbps",
    "video": [
            "number": 1,
            "duration": "0:00:21",
            "width": "1920 pixel",
            "height": "1080 pixel",
            "scan_type": "Progressive",
            "aspect_ratio": 1.778,
            "pixel_aspect_ratio": 1.0,
            "resolution": "1080p",
            "frame_rate": "29.97 FPS",
            "bit_depth": "8 bit",
            "codec": "H.264",
            "profile": "High",
            "profile_level": "4",
            "encoder": "x264",
            "media_type": "video/H264",
            "default": true,
            "language": "Undetermined"
    "audio": [
            "number": 2,
            "name": "German",
            "language": "German",
            "duration": "0:00:21",
            "codec": "DTS-HD",
            "profile": [
                "Master Audio",
            "channels_count": [
            "channels": "7.1",
            "bit_depth": "24 bit",
            "bit_rate": [
                "1.5 Mbps"
            "bit_rate_mode": [
            "sampling_rate": [
                "96.0 KHz",
                "48.0 KHz"
            "compression": [
            "default": true


KnowIt can be installed as a regular python module by running:

$ [sudo] pip install knowit

For a better isolation with your system you should use a dedicated virtualenv or install for your user only using the --user flag.

External dependencies

KnowIt depends on MediaInfo:

KnowIt supports MKV regardless if MediaInfo is installed.

MediaInfo increases the number of supported formats and the number of extracted information.

Visit their website and install the proper package for your system.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for knowit, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size knowit-0.2.1.tar.gz (20.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page