No project description provided
Project description
Video diet
This project aims to reduce the spaces of your videos encoding it on hevc
.
Why video-diet?
The answer is easy. I have a lot old-movies/videos taking a lot of space in the hard-drive.
So I'm always short on disk space, the by accident discover de hevc
codec. when i need to shrink a video of 3GB
to upload it to Telegram
, the convertion take my 3GB movie and returned a 300 MB with the same quality 😱. So I
decided that I would convert all my video files, but they are a lot, so I build this tool for it.
More info about hevc
:
https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding
Installation
$ pip install video-diet
Example
For a file
video-diet file test.mp4
This option conserve the original file
For a folder
video-diet folder ~/Videos
This option replaces the original file for the converted files
Note
The video conversion can take some time. Depending on the original video properties; the conversion time can be longer than the video.
For developers
You must first install poetry
Poetry provides a custom installer that will install poetry
isolated from the rest of your system by vendorizing its dependencies. This is the recommended way of installing poetry
.
osx / linux / bashonwindows install instructions
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
windows powershell install instructions
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python
The installer installs the poetry
tool to Poetry's bin
directory. On Unix it is located at $HOME/.poetry/bin
and on Windows at %USERPROFILE%\.poetry\bin
.
This directory will be in your $PATH
environment variable, which means you can run them from the shell without further configuration.
Then you need to configure the environment
Inside the project make poetry install
and after poetry shell
for start the virtualenv.
For testing the code run video-diet
.
See CONTRIBUTING.md for more details.
Good luck 😉.
Project Structure based on awesome tutorial by @tiangolo at https://typer.tiangolo.com/tutorial/package
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for video_diet-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1b00d3fd32b6705cc995259f25d131d214db1ee34b6187b1fe883121ac8725c |
|
MD5 | 6793fa4b6232ebc04ca7888108f61de0 |
|
BLAKE2b-256 | 2662bf7058c1d35882884313d46aad75610aea9f6fb8aadd3be7b5d80e6c52d4 |