video-compress


Namevideo-compress JSON
Version 0.3.0 PyPI version JSON
download
home_pageNone
SummaryCompress video by 90% without losing much quality, similar to what Pied Piper achieves.
upload_time2024-09-17 15:09:26
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6.0
licenseNone
keywords compress ffmpeg videos
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Video-compress

[![](https://img.shields.io/pypi/v/video-compress.svg)](https://pypi.org/project/video-compress)
[![](https://github.com/jiacai2050/video-compress/actions/workflows/ci.yml/badge.svg)](https://github.com/jiacai2050/video-compress/actions/workflows/ci.yml)

Compress video by 90% without losing much quality, similar to what [Pied
Piper](https://en.wikipedia.org/wiki/Silicon_Valley_(TV_series))
achieves.

![](pied-piper.jpg)

> Inspired by <https://x.com/mortenjust/status/1818027566932136062>

# Install

First install [ffmpeg](https://www.ffmpeg.org/download.html), then

``` bash
pip install video-compress
```

This will install two commands: `vc`{.verbatim},
`video-compress`{.verbatim}, which are identical.

# Usage

``` example
usage: vc [-h] [-v] [--verbose] [-t THREADS] [--crf CRF] [--delete]
          [<video path> ...]

Compress video by 90% without losing much quality, similar to what Pied Piper
achieves.

positional arguments:
  <video path>

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  --verbose             show verbose log
  -t THREADS, --threads THREADS
                        max threads to use for compression. (default: 6)
  --crf CRF             constant rate factor, range from 0-51. Higher values
                        mean more compression, smaller file size, but lower
                        quality. (default: 30)
  --delete              delete input video after compress successfully
```

Positional arguments can be either video files or directories.

For each directory, `vc`{.verbatim} will iteratively walk the dir to
search for all videos to compress, the compressed video will be named
after `${input}-compressed.mp4`{.verbatim}.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "video-compress",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6.0",
    "maintainer_email": null,
    "keywords": "compress, ffmpeg, videos",
    "author": null,
    "author_email": "Jiacai Liu <dev@liujiacai.net>",
    "download_url": "https://files.pythonhosted.org/packages/c4/0e/22a71abd76e4c5331037ec87d8f72dc94bc6e9281cd7945f11fb75d08edd/video_compress-0.3.0.tar.gz",
    "platform": null,
    "description": "# Video-compress\n\n[![](https://img.shields.io/pypi/v/video-compress.svg)](https://pypi.org/project/video-compress)\n[![](https://github.com/jiacai2050/video-compress/actions/workflows/ci.yml/badge.svg)](https://github.com/jiacai2050/video-compress/actions/workflows/ci.yml)\n\nCompress video by 90% without losing much quality, similar to what [Pied\nPiper](https://en.wikipedia.org/wiki/Silicon_Valley_(TV_series))\nachieves.\n\n![](pied-piper.jpg)\n\n> Inspired by <https://x.com/mortenjust/status/1818027566932136062>\n\n# Install\n\nFirst install [ffmpeg](https://www.ffmpeg.org/download.html), then\n\n``` bash\npip install video-compress\n```\n\nThis will install two commands: `vc`{.verbatim},\n`video-compress`{.verbatim}, which are identical.\n\n# Usage\n\n``` example\nusage: vc [-h] [-v] [--verbose] [-t THREADS] [--crf CRF] [--delete]\n          [<video path> ...]\n\nCompress video by 90% without losing much quality, similar to what Pied Piper\nachieves.\n\npositional arguments:\n  <video path>\n\noptions:\n  -h, --help            show this help message and exit\n  -v, --version         show program's version number and exit\n  --verbose             show verbose log\n  -t THREADS, --threads THREADS\n                        max threads to use for compression. (default: 6)\n  --crf CRF             constant rate factor, range from 0-51. Higher values\n                        mean more compression, smaller file size, but lower\n                        quality. (default: 30)\n  --delete              delete input video after compress successfully\n```\n\nPositional arguments can be either video files or directories.\n\nFor each directory, `vc`{.verbatim} will iteratively walk the dir to\nsearch for all videos to compress, the compressed video will be named\nafter `${input}-compressed.mp4`{.verbatim}.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Compress video by 90% without losing much quality, similar to what Pied Piper achieves.",
    "version": "0.3.0",
    "project_urls": {
        "Issues": "https://github.com/jiacai2050/video-compress/issues",
        "Repository": "https://github.com/jiacai2050/video-compress"
    },
    "split_keywords": [
        "compress",
        " ffmpeg",
        " videos"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9de4cb50443d297e793d3df5013a7aab5d3d324922ec3e84534a2e30f4b90933",
                "md5": "663addb3b1df87f6c497f5ca5be262e6",
                "sha256": "326a3286a1244aa10a05f7493d3e1beb006839791ad405c3f5b300918e2dcc62"
            },
            "downloads": -1,
            "filename": "video_compress-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "663addb3b1df87f6c497f5ca5be262e6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6.0",
            "size": 17819,
            "upload_time": "2024-09-17T15:09:26",
            "upload_time_iso_8601": "2024-09-17T15:09:26.885095Z",
            "url": "https://files.pythonhosted.org/packages/9d/e4/cb50443d297e793d3df5013a7aab5d3d324922ec3e84534a2e30f4b90933/video_compress-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c40e22a71abd76e4c5331037ec87d8f72dc94bc6e9281cd7945f11fb75d08edd",
                "md5": "90b369611299e870b2e40b23d028f73b",
                "sha256": "ac2f4fdb8153db8e9f8758c4b7e93ebee7cc827088330d3257b983078c094833"
            },
            "downloads": -1,
            "filename": "video_compress-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "90b369611299e870b2e40b23d028f73b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6.0",
            "size": 18092,
            "upload_time": "2024-09-17T15:09:26",
            "upload_time_iso_8601": "2024-09-17T15:09:26.096526Z",
            "url": "https://files.pythonhosted.org/packages/c4/0e/22a71abd76e4c5331037ec87d8f72dc94bc6e9281cd7945f11fb75d08edd/video_compress-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-17 15:09:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jiacai2050",
    "github_project": "video-compress",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "video-compress"
}
        
Elapsed time: 0.89181s