media-filesize-estimator
Installation
The package works with python 3.8+.
pip install -U media-filesize-estimator
# or install with `Poetry`
poetry add media-filesize-estimator
Then you can run
media-filesize-estimator --help
# or with `Poetry`:
poetry run media-filesize-estimator --help
Working
$ media-filesize-estimator --help
Usage: media-filesize-estimator [OPTIONS]
Estimates media file size in different formats w/o actually converting the
file
Options:
-m, --media TEXT Media file path [required]
-p, --property TEXT Parameter (resolution/frame_rate/bit_depth/sampli
ng_rate/channels) to compare
-sf, --save-format TEXT Format (json/xml/csv) to save media metadata
-sl, --save-location TEXT Location to save media metadata and/or graph
[default: ./]
-v, --version Prints the version of the media-filesize-
estimator package.
--help Show this message and exit.
$ media-filesize-estimator --media assets/sample_video_redfort.mp4 --property resolution --save-location /tmp/ --save-format xml
The given media file is of type : video
Extracting data from file : sample_video_redfort.mp4
Extraction completed successfully to file : /tmp/sample_video_redfort.xml
Metadata is saved at /tmp/sample_video_redfort.xml
The given media file is of type : video
Uncompressed file size estimation of the given file in MB with resolution 1920x1080 : 593.262 MB
Uncompressed file size estimation of the given file in MB with resolution 3840x2160 : 2373.047 MB
Uncompressed file size estimation of the given file in MB with resolution 2560x1440 : 1054.688 MB
Uncompressed file size estimation of the given file in MB with resolution 1920x1080 : 593.262 MB
Uncompressed file size estimation of the given file in MB with resolution 1280x720 : 263.672 MB
Uncompressed file size estimation of the given file in MB with resolution 640x360 : 65.918 MB
Plotting the graph for the given parameter : resolution
Estimated filesize graph saved at /tmp//estimated_filesize.png
Contributing
Thanks for considering contributing to this project. Please follow Contributing guidelines.
🛡 License
This project is licensed under the terms of the MIT license. See LICENSE for more details.
📃 Citation
@misc{media-filesize-estimator,
author = {kHarshit, Pappuru-Dinesh, TejodhayBonam, AbdulBasitA},
title = {Estimates media file size in different formats w/o actually converting the file},
year = {2022},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/kHarshit/media-filesize-estimator}}
}
Credits
This project was generated with python-package-template
Metadata
Release files for media-filesize-estimator 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| media-filesize-estimator-1.0.0.tar.gz | 10.0 kB | Without provenance | Details for media-filesize-estimator-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| media_filesize_estimator-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for media_filesize_estimator-1.0.0-py3-none-any.whl |
Total release size: 19.2 kB
Release files / media-filesize-estimator-1.0.0.tar.gz
| Download URL | media-filesize-estimator-1.0.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
927b4258e1a2bebbb93566a3cce2d81f5c691e49541d41e7db6026d66bc09a16
|
|
BLAKE2b-256 checksum How to use checksums |
1c103eca1b97ecc0fdb04a26bc639fe923805e3f8cc638c953b81a2d54792c8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.9.5 Linux/5.9.1-1.el7.elrepo.x86_64
|
Release files / media_filesize_estimator-1.0.0-py3-none-any.whl
| Download URL | media_filesize_estimator-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6c602b5fd16cc150370b69e613cb07ae78e04e869d91fbdd97c477339dae91e
|
|
BLAKE2b-256 checksum How to use checksums |
91d284131d9138d0bd04fbc58a935ba7af071f05ad7467ce6d4a82237028c52b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.9.5 Linux/5.9.1-1.el7.elrepo.x86_64
|
Security for media-filesize-estimator 1.0.0
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.