Spaces:
Paused
Paused
File size: 1,735 Bytes
89c1e65 c229636 89c1e65 c229636 86c27cc c229636 86c27cc c229636 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
---
title: VidSub Encoder Bot
emoji: 🎬
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
---
# VidSub Encoder Bot
A Telegram bot that can encode videos with custom settings and hardcode/softcode subtitles. Built with Pyrogram and FFmpeg.
## Features
- Encode videos with custom settings
- Hardcode or softcode subtitles
- Adjust video quality and resolution
- Convert between H.264/H.265 codecs
- Control audio quality with AAC encoding and adjustable bitrate
- Select specific audio tracks from multi-audio videos
- Support for multiple subtitle formats (SRT, ASS, VTT)
- Custom filename support
- Progress tracking for downloads/uploads
- Clean user interface with detailed progress information
- REST API for bot management
## Supported Formats
- **Video**: MP4, MKV, WebM
- **Subtitles**: SRT, ASS, VTT
## Commands
- `/start` - Start the bot
- `/help` - Show help message
- `/softcode` - Embed subtitles (faster)
- `/hardcode` - Burn subtitles into video
- `/nosubs` - Encode without subtitles
- `/quick` - Use default encoding settings
- `/reset` - Start over with settings
- `/clear` - Clear all data
## API Endpoints
The bot provides a REST API for management. All endpoints use GET requests:
- `GET /` - Show API information
- `GET /startbot` - Start the bot
- `GET /stopbot` - Stop the bot
- `GET /status` - Get bot status
API documentation is available at `/docs` when the server is running.
## Deployment
This bot is configured to run on Hugging Face Spaces using Docker. The configuration is hardcoded in `config.py` for simplicity.
### Requirements
- Python 3.9+
- FFmpeg
- Pyrogram
- TgCrypto
- FastAPI
- Uvicorn
- Requests
- psutil
## License
This project is licensed under the MIT License. |