python-get-video-properties
Get video properties
Installation
pip install -U get-video-properties
Usage
from videoprops import get_video_properties
props = get_video_properties('movie.mp4')
print(f'''
Codec: {props['codec_name']}
Resolution: {props['width']}×{props['height']}
Aspect ratio: {props['display_aspect_ratio']}
Frame rate: {props['avg_frame_rate']}
''')
Sample output
Codec: h264
Resolution: 1920×1080
Aspect ratio: 16:9
Frame rate: 25/1
Usage (audio)
from videoprops import get_audio_properties
props = get_audio_properties('movie.mp4')
print(f'''
Codec: {props['codec_name']}
Channels: {props['channels']}
Sample rate: {props['sample_rate']}
''')
Sample output
Codec: opus
Channels: 2
Sample rate: 48000
Command-line usage
videoprops movie.mp4
audioprops movie.mp4
Metadata
Release files for get-video-properties 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| get_video_properties-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for get_video_properties-0.1.1-py3-none-any.whl |
Release files / get_video_properties-0.1.1-py3-none-any.whl
| Download URL | get_video_properties-0.1.1-py3-none-any.whl |
|---|---|
| Size | 45.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04d4f478a5211917e2a7e87ddfcb1c17734cddf8374494c3993bf825b7ad4192
|
|
BLAKE2b-256 checksum How to use checksums |
a6a778f3de52ff5a6a1998d7656f2a07456cb998b82c3ba5cc75c8bb1014f7b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for get-video-properties 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.