Skip to main content

Know better your media files

Project description

KnowIt
==========
Know better your media files.

.. image:: https://img.shields.io/pypi/v/knowit.svg
:target: https://pypi.python.org/pypi/knowit
:alt: Latest Version

.. image:: https://travis-ci.org/ratoaq2/knowit.svg?branch=master
:target: https://travis-ci.org/ratoaq2/knowit
:alt: Travis CI build status

.. image:: https://img.shields.io/github/license/ratoaq2/knowit.svg
:target: https://github.com/ratoaq2/knowit/blob/master/LICENSE
:alt: License


:Project page: https://github.com/ratoaq2/knowit


Usage
-----
CLI
^^^
Extract information from a video file::

$ knowit FooBar.mkv
For: FooBar.mkv
{
"duration": "2:06:09.001000",
"video": [
{
"number": 1,
"language": "English",
"duration": "2:06:09.012000",
"width": 1920,
"height": 796,
"scan_type": "Progressive",
"aspect_ratio": 2.412,
"pixel_aspect_ratio": 1.0,
"resolution": "1080p",
"frame_rate": 23.976,
"bit_depth": 8,
"codec": "h264",
"profile": "High@L4.1",
"encoder": "x264",
"media_type": "video/H264",
"default": true
}
],
"audio": [
{
"number": 2,
"name": "DTS MA 5.1 16bit",
"language": "English",
"duration": "2:06:09.001000",
"codec": "DTS-HD",
"channels_count": 6,
"channels": "5.1",
"bit_rate": [
null,
1509000
],
"bit_rate_mode": [
"Variable",
"Constant"
],
"sample_rate": 48000,
"compression": [
"Lossless",
"Lossy"
],
"default": true
},
{
"number": 3,
"name": "DD5.1 448Kbps",
"language": "Chinese",
"duration": "2:06:09.001000",
"size": 448014053,
"codec": "AC3",
"channels_count": 6,
"channels": "5.1",
"bit_rate": 448000,
"bit_rate_mode": "Constant",
"sample_rate": 48000,
"compression": "Lossy"
}
],
"subtitle": [
{
"number": 4,
"language": "English",
"format": "SubRip",
"encoding": "utf-8",
"default": true
}
]
}

Installation
------------
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
-------------------------
This product uses `MediaInfo <http://mediaarea.net/MediaInfo>`_ library, Copyright (c) 2002-2016 `MediaArea.net SARL<mailto:Info@MediaArea.net>`_

Binaries for Windows and MacOS are included. Linux distributions need to manually install MediaInfo.

KnowIt supports MKV regardless if MediaInfo is installed.

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

Project details


Download files

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

Source Distribution

knowit-0.1.tar.gz (9.4 MB view details)

Uploaded Source

File details

Details for the file knowit-0.1.tar.gz.

File metadata

  • Download URL: knowit-0.1.tar.gz
  • Upload date:
  • Size: 9.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for knowit-0.1.tar.gz
Algorithm Hash digest
SHA256 5a9edfe54bc1e59c802b7674bebdee3aab6032506b93dd9468a6d8f8cf308331
MD5 1a4eeaec3b462a40e264a4f849e5adbd
BLAKE2b-256 0078c96a95242abc205e996e8958a11be25868134c97c700a1aa87edf531b90f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page