Skip to main content

A Python tool for effortlessly compressing media files for sharing online.

Project description

Shrinkx

Shrinkr is a Python tool for effortlessly compressing media files using ffmpeg. The tool is inspired by the website https://8mb.video and the annoyance of memorizing ffmpeg command arguments 😩.

Demo

https://github.com/stormedx/shrinkx/assets/88412569/fdc7f111-ddf8-4053-a89e-5bf68a058152

Requirements

  • Python 3.8 or higher
  • ffmpeg 5.x or higher is required and needs to be a $PATH variable on your system. Please read ffmpeg for additional information.

Commands

  • '-f', '--format': Choose the file format you want to encode the output to (i.e .mp4, .webm, .mov, .mkv).
  • '-s', '--size': Allows you to compress a file to a specific size (kilobytes, megabytes, gigabytes).
  • '-o', '--output': Output directory for the compressed file. If no location is given, the output file will output to the parent working directory of the source file.
  • '--no-audio' : Removes all audio in the output file.
  • '--chan' : Shortcut for compressing files into a .webm suitable for 4chan (<3.5mb in size, no audio).
  • '--discord' : Shortcut for compressing files into an .mp4 >8mb in size

Usage Examples

In it's simplest form, shrinkx file.mov will automatically compress & encode to .mp4 for sharing easily on platforms such as Discord.

shrinkx --size 5mb -f webm video.mp4

ffmpeg installation

WIP

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

ShrinkX-1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

ShrinkX-1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file ShrinkX-1.0.tar.gz.

File metadata

  • Download URL: ShrinkX-1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for ShrinkX-1.0.tar.gz
Algorithm Hash digest
SHA256 cbedf5d4692d53a21c3fde696798050440007c7ac21e2496ede5c1222757c2ba
MD5 f58ec3d7dbcc9cabca5c542ddbca4da2
BLAKE2b-256 7db0f22b5483872fbaab89df9f3d5f19c6e949a38ec1f6b6ffc0ef267ea47b92

See more details on using hashes here.

File details

Details for the file ShrinkX-1.0-py3-none-any.whl.

File metadata

  • Download URL: ShrinkX-1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for ShrinkX-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f466e7841ba0e1edcf4a8af1f43e920d9016a2838bfa8c698832d3ad93ac2369
MD5 fdaaf779d64d194b88e8be4dc859c6c1
BLAKE2b-256 11dcaa8c40a5cba17e7b7ac3c9764ead1eba68ff0b3c703fd7ee704eccfb0355

See more details on using hashes here.

Supported by

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