{"id":22264341,"url":"https://github.com/basemax/telegram-video-compressor","last_synced_at":"2025-10-13T13:31:29.419Z","repository":{"id":265968455,"uuid":"896986814","full_name":"BaseMax/telegram-video-compressor","owner":"BaseMax","description":"A Telegram bot that validates video URLs, downloads the videos, compresses them using FFMPEG, and shares the compressed video back with the user. ","archived":false,"fork":false,"pushed_at":"2025-06-21T07:37:50.000Z","size":293,"stargazers_count":2,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-03T23:38:28.141Z","etag":null,"topics":["compress-video-files","compress-videos","ffmpeg","py","python","python-telegram","telegram","telegram-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaseMax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-01T19:33:54.000Z","updated_at":"2025-06-21T07:37:47.000Z","dependencies_parsed_at":"2024-12-01T21:19:44.168Z","dependency_job_id":"073c3e96-2f73-41c7-8adf-a489d8e415a2","html_url":"https://github.com/BaseMax/telegram-video-compressor","commit_stats":null,"previous_names":["basemax/telegram-video-compressor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BaseMax/telegram-video-compressor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Ftelegram-video-compressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Ftelegram-video-compressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Ftelegram-video-compressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Ftelegram-video-compressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/telegram-video-compressor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Ftelegram-video-compressor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015312,"owners_count":26085684,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["compress-video-files","compress-videos","ffmpeg","py","python","python-telegram","telegram","telegram-python"],"created_at":"2024-12-03T10:08:35.913Z","updated_at":"2025-10-13T13:31:29.031Z","avatar_url":"https://github.com/BaseMax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Video Compressor Bot (telegram-video-compressor)\n\nA Telegram bot that validates video URLs, downloads the videos, compresses them using FFMPEG, and shares the compressed video back with the user.  \n\n## Features\n\n- Validates user-submitted URLs to ensure they are valid and accessible.\n- Checks if the URL returns a 200 HTTP status code (no 404 or invalid URLs).\n- Retrieves file metadata, such as video size, without downloading the video.\n- Downloads the video in the background.\n- Compresses the video using FFMPEG with efficient settings (`libx264`, `crf 32`).\n- Sends the compressed video back to the user as a downloadable file.\n\n## Reduce 377 MB Video to Just 27 MB in Minutes with This Fast Telegram Bot!\n\n![Telegram Video Compressor Bot](telegram.jpg)\n\n![Telegram Video Compressor Bot](demo.jpg)\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/basemax/telegram-video-compressor.git\n   cd telegram-video-compressor\n   ```\n\n2. Install the required Python packages:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. Install FFMPEG on your system:\n\n   ```bash\n   sudo apt update\n   sudo apt install ffmpeg\n   ```\n\n4. Set up your bot token:\n\nObtain a bot token from **BotFather** on Telegram.\n\nReplace `YOUR_BOT_TOKEN` in the `main.py` script with your actual bot token.\n\n## Usage\n\nStart the bot:\n\n```bash\npython main.py\n```\n\nSend a video URL to the bot in Telegram.\n\nThe bot will:\n- Validate the URL.\n- Download the video.\n- Compress the video using FFMPEG.\n- Send the compressed video back to you.\n\n## Example\n\nUser sends:\n\n```\nhttps://example.com/video.mp4\n```\n\n\nBot responds:\n\n```\n✅ URL is valid!\n🔄 Downloading video...\n🗜️ Compressing video...\n📤 Sending compressed video...\n```\n\n## Requirements\n\n- Python 3.7+\n- requests Python library\n- python-telegram-bot library\n- FFMPEG installed on your system\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n## Contributing\n\nContributions are welcome! Please fork this repository and submit a pull request with your changes.\n\n## Contact\n\nFeel free to reach out for any questions or suggestions: **@basemax**\n\nCopyright 2024, Max Base\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Ftelegram-video-compressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Ftelegram-video-compressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Ftelegram-video-compressor/lists"}