Skip to main content

📼 midia-compress - Python Video Compression Tool

A Python 🐍 library for smart video compression using FFmpeg, with a user-friendly CLI ✨

🚀 Installation

pip install midia-compress

🔧 Prerequisites

  • Python 3.7+

  • FFmpeg installed on your system

🛠️ How to Install FFmpeg:

  • Windows:

    winget install Gyan.FFmpeg
    
  • Linux (Debian/Ubuntu):

    sudo apt install ffmpeg
    
  • MacOS:

    brew install ffmpeg
    

💻 How to Use the CLI

midia-compress

This will:

  • 🔍 Search for MP4 files in the current directory

  • 📉 Compress all with CRF 28 (good quality/size ratio)

  • 💾 Save as "compressed_original_name.mp4"

📊 Quality Comparison

CRF Quality File Size
18 🏆 Best ⚠️ Very Large
23 💎 Excellent 📏 Balanced
28 👍 Good 🐜 Small

🤝 Contributing

Contributions are welcome! Follow these steps:

  1. Fork the repository

  2. Create a branch (git checkout -b feature/amazing)

  3. Commit your changes (git commit -m 'Add amazing feature')

  4. Push (git push origin feature/amazing)

  5. Open a Pull Request

📜 License

MIT

Metadata

Release files for midia-compress 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for midia-compress 0.1.0
File Size Uploaded Provenance Actions
midia_compress-0.1.0.tar.gz 3.6 kB Without provenance Details for midia_compress-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for midia-compress 0.1.0
File Interpreter ABI Platform Actions
midia_compress-0.1.0-py3-none-any.whl Python 3 none any Details for midia_compress-0.1.0-py3-none-any.whl

Total release size: 8.9 kB

Release files / midia_compress-0.1.0.tar.gz

Download URL midia_compress-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ea17bbe7120c9479e6627b58134fd067ad6f51611590da612d2f9d9f848b208b
BLAKE2b-256 checksum
How to use checksums
66af55b7a2ebe10c1e2eb69034e4375f1818de3401504a3d286b1bf63c56c710
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.1 Linux/6.6.87.1-microsoft-standard-WSL2

Release files / midia_compress-0.1.0-py3-none-any.whl

Download URL midia_compress-0.1.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1b3d66f5a38eb52ee95627e46bd2ae7457ade215214686ad71c096893b964eb
BLAKE2b-256 checksum
How to use checksums
0582401f8fb03410f4f7123d975e169035ead36b927b0346c88ded77a8b6dbe8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.1 Linux/6.6.87.1-microsoft-standard-WSL2

Security for midia-compress 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page