{"id":13752352,"url":"https://github.com/hiancdtrsnm/video-diet","last_synced_at":"2025-05-09T19:32:00.658Z","repository":{"id":45078121,"uuid":"293925181","full_name":"hiancdtrsnm/video-diet","owner":"hiancdtrsnm","description":"Walk a folder reducing video file sizes","archived":false,"fork":false,"pushed_at":"2022-10-28T00:41:50.000Z","size":10191,"stargazers_count":17,"open_issues_count":24,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-11T01:43:16.286Z","etag":null,"topics":["ffmpeg","poetry","python","typer"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hiancdtrsnm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-08T20:54:53.000Z","updated_at":"2023-11-27T08:11:47.000Z","dependencies_parsed_at":"2022-09-02T22:50:34.984Z","dependency_job_id":null,"html_url":"https://github.com/hiancdtrsnm/video-diet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiancdtrsnm%2Fvideo-diet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiancdtrsnm%2Fvideo-diet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiancdtrsnm%2Fvideo-diet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiancdtrsnm%2Fvideo-diet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiancdtrsnm","download_url":"https://codeload.github.com/hiancdtrsnm/video-diet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224880777,"owners_count":17385367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ffmpeg","poetry","python","typer"],"created_at":"2024-08-03T09:01:04.424Z","updated_at":"2024-11-16T05:30:23.950Z","avatar_url":"https://github.com/hiancdtrsnm.png","language":"Python","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# Video diet\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg?label=license)](https://www.gnu.org/licenses/gpl-3.0) [![Last commit](https://img.shields.io/github/last-commit/hiancdtrsnm/video-diet.svg?style=flat)](https://github.com/hiancdtrsnm/video-diet/commits) [![GitHub commit activity](https://img.shields.io/github/commit-activity/m/hiancdtrsnm/video-diet)](https://github.com/hiancdtrsnm/video-diet/commits) [![Github Stars](https://img.shields.io/github/stars/hiancdtrsnm/video-diet?style=flat\u0026logo=github)](https://github.com/hiancdtrsnm/video-diet) [![Github Forks](https://img.shields.io/github/forks/hiancdtrsnm/video-diet?style=flat\u0026logo=github)](https://github.com/hiancdtrsnm/video-diet) [![Github Watchers](https://img.shields.io/github/watchers/hiancdtrsnm/video-diet?style=flat\u0026logo=github)](https://github.com/hiancdtrsnm/video-diet) [![GitHub contributors](https://img.shields.io/github/contributors/hiancdtrsnm/video-diet)](https://github.com/hiancdtrsnm/video-diet/graphs/contributors)\n\nThis project aims to reduce the spaces of your videos and audios encoding it on `hevc`.\n\n## Why video-diet?\nThe answer is easy. I have a lot old-movies/videos and music/audios taking a lot of space in the hard-drive.\nSo I'm always short on disk space, the by accident discover de `hevc` codec. when i need to shrink a video of `3GB`\nto upload it to `Telegram`, the convertion take my 3GB movie and returned a 300 MB with the same quality 😱. So I\ndecided that I would convert all my video and audio files , but they are a lot, so I build this tool for it.\n\nMore info about `hevc`:\n\nhttps://en.wikipedia.org/wiki/High_Efficiency_Video_Coding\n\n\n## Installation\n\n\u003cdiv class=\"termy\"\u003e\n\n```console\n$ pip install video-diet\n```\n\n\u003c/div\u003e\n\n## FFMPEG\n\nIn order to run the project you must install `ffmpeg`.\n\n### For Linux\nIn any linux machine you can get it from your favorite package manager.\n\nFor arch:\n```console\nsudo pacman -S ffmpeg\n```\n\nFor Debian/Ubuntu:\n```console\nsudo apt-get install ffmpeg\n```\n\n## For Windows\n\nDownload a windows ffmpeg build here https://ffmpeg.org/download.html. Unzip it and change the folder name to `FFmpeg`. Copy the folder into `C:\\` and then add the path `C:\\FFmpeg\\bin` to the enviroment variables of the system. \n\nTo check correct instalation open a new instance of cmd and type:\n```console\nffmpeg --version`.\n```\n\n## Example\n\n### For a file\n\n```bash\nvideo-diet file test.mp4\n```\nThis option conserve the original file\n\n### For a folder\n```bash\nvideo-diet folder ~/Videos\n```\nThis option replaces the original file for the converted files\n\n#### Ignoring files on the folder\n```bash\nvideo-diet folder ~/Videos --ignore-extension .mp4\n```\nThis option ignores all the .mp4 files on ~/Videos\n\n```bash\nvideo-diet folder ~/Videos --ignore-path ~/Videos/subfolder\n```\nThis option ignores all the files on ~/Videos/subfolder\n\n## Note\n\nThe video conversion can take some time. Depending on the original video properties; the conversion time can be longer than the video.\n\n## For developers\n\n### You must first install *poetry*\n\nPoetry 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`.\n\n**osx / linux / bashonwindows install instructions**\n\n`curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python`\n\n**windows powershell install instructions**\n\n`(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python`\n\nThe 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`.\n\nThis directory will be in your `$PATH` environment variable, which means you can run them from the shell without further configuration.\n\n### Then you need to configure the environment\n\nInside the project make `poetry install` and after `poetry shell` for start the virtualenv.\n\nFor testing the code run `video-diet`.\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for more details.\n\nGood luck 😉.\n\nProject Structure based on awesome tutorial by @tiangolo at https://typer.tiangolo.com/tutorial/package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiancdtrsnm%2Fvideo-diet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiancdtrsnm%2Fvideo-diet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiancdtrsnm%2Fvideo-diet/lists"}