Skip to content

πŸš€ Argons Encoder: The Ultimate Video Automation Bot Transform your Telegram workflow with professional-grade encoding! 🎬 ✨ Key Features: Smart Queue: Auto-resume & persistence ⚑ Pro Quality: FFmpeg power with custom presets 🎞️ Total Control: Watermarks, metadata & admin panel πŸ›‘οΈ Fast, stable, and fully customizable. 🌟 Developed by Argon

License

Notifications You must be signed in to change notification settings

Itzmepromgitman/ArgonsEncoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AutoAnimePro Banner

🎬 Argons Encoder

The Ultimate Anime Automation & Encoding Bot

Python Pyrogram FFmpeg License

Features β€’ Installation β€’ Commands β€’ Structure


πŸš€ Key Features

πŸŽ₯ Professional Encoding

  • High-Fidelity Output: Uses FFmpeg with optimized presets for crystal clear video.
  • Smart Containers: Defaults to MKV for maximum compatibility and subtitle preservation.
  • Subtitle Copy: Automatically copies subtitle streams (-c:s copy) without transcoding.
  • Quality Steps: Tracks progress across multiple resolution steps (e.g., Quality 1/3).

⚑ Intelligent Queue System

  • FIFO Processing: Ensures fair, sequential processing of all user jobs.
  • Persistence: Automatically restores the queue and active jobs after a bot restart.
  • Concurrency: Handles sequential encoding and concurrent uploads (up to 2) for maximum efficiency.

🎨 Premium User Experience

  • Rich UI: Beautiful, blockquote-based progress bars with real-time stats (FPS, Bitrate, ETA).
  • Interactive Controls: Pause, Resume, and Cancel jobs directly from the progress message.
  • Smart Notifications:
    • Separate Upload Message: Keeps chat clean by deleting the upload progress message upon completion.
    • Pause Details: Shows file name, settings, and user info when a job is paused.
  • Logging: Detailed logs of every encode sent to a dedicated channel.

πŸ› οΈ Customization

  • Watermarks: Add custom text or image watermarks to your videos. Supports positioning, opacity, and timing.
  • Metadata: Manage video metadata (Title, Author, etc.) to keep your library organized.

πŸ› οΈ Robust Management

  • User Database: Automatically registers users on /start.
  • Startup Cleanup: Wipes temporary downloads/ to prevent disk bloat.
  • Resource Efficient: Uses uvloop for ultra-fast async I/O.

πŸ›‘οΈ Admin Features

  • Broadcast System: Send messages (Normal/Pin) to all users with real-time stats.
  • Admin Panel: Interactive GUI for the owner to add/remove admins easily.
  • User Management: Auto-cleanup of blocked/deleted accounts during broadcasts.

πŸ› οΈ Installation

Prerequisites

  • Python 3.9+
  • FFmpeg (installed and in PATH)
  • MongoDB (Database)
  • Telegram Bot Token & API Keys

πŸ’» Local Setup

  1. Clone the Repository

    git clone https://github.com/Itzmepromgitman/autoanimepro.git
    cd autoanimepro
  2. Install Dependencies

    pip install -r requirements.txt
  3. Configure Environment Create a .env file in the root directory:

    TG_BOT_TOKEN=your_bot_token
    APP_ID=your_app_id
    API_HASH=your_api_hash
    OWNER_ID=your_telegram_id
    CHANNEL_ID=-100xxxxxxxx  # Your Log Channel ID
    DATABASE_URL=your_mongodb_uri
    DATABASE_NAME=Cluster0
    TG_BOT_WORKERS=4
  4. Run the Bot

    bash start.sh

🐳 Docker Deployment

Deploy effortlessly with Docker:

# 1. Build Image
docker build -t autoanimepro .

# 2. Run Container
docker run -d --env-file .env --name encoder_bot autoanimepro

πŸ€– Commands

Command Description Permission
/start Initialize the bot & register user. Everyone
/settings Configure video settings (Codec, CRF, Resolution). Everyone
/queue View the current job queue. Everyone
/stats View system and bot statistics. Everyone
/ss Generate screenshots from video. Everyone
/cancel <id> Cancel a specific job. Owner/User
/clear Clear your queued jobs. Admin/User
/cancelall Cancel ALL active jobs. Owner Only
/restart Restart the bot server. Owner Only
/log Retrieve the bot's log file. Owner Only
/shell Execute shell commands. Owner Only
/broadcast Broadcast message to users. Admin Only
/admin Open Admin Panel. Owner Only
/info Get detailed job info. Admin Only
/help Access the help manual. Everyone

πŸ“ Project Structure

autoanimepro/
β”œβ”€β”€ bot/
β”‚   β”œβ”€β”€ func/           # Core Logic
β”‚   β”‚   β”œβ”€β”€ pyroutils/  # Progress Bar Utils
β”‚   β”‚   β”œβ”€β”€ encode.py   # Main Encoding Engine
β”‚   β”‚   β”œβ”€β”€ queue_manager.py
β”‚   β”‚   β”œβ”€β”€ download_manager.py
β”‚   β”‚   β”œβ”€β”€ upload_manager.py
β”‚   β”‚   └── ffmpeg_utils.py
β”‚   β”œβ”€β”€ utils/          # Helpers
β”‚   β”‚   β”œβ”€β”€ restart.py
β”‚   β”‚   └── shell.py
β”‚   β”œβ”€β”€ config.py       # Config Loader
β”‚   β”œβ”€β”€ logger.py       # Logging System
β”‚   └── __main__.py     # Entry Point
β”œβ”€β”€ plugins/            # Handlers
β”‚   β”œβ”€β”€ admin.py
β”‚   β”œβ”€β”€ encode.py
β”‚   β”œβ”€β”€ query.py
β”‚   β”œβ”€β”€ queue.py
β”‚   β”œβ”€β”€ settings.py
β”‚   └── start.py
β”œβ”€β”€ Dockerfile          # Docker Config
β”œβ”€β”€ requirements.txt    # Dependencies
└── start.sh            # Startup Script

πŸ“œ License

This project is licensed under the MIT License.


Built with ❀️ by Argon

About

πŸš€ Argons Encoder: The Ultimate Video Automation Bot Transform your Telegram workflow with professional-grade encoding! 🎬 ✨ Key Features: Smart Queue: Auto-resume & persistence ⚑ Pro Quality: FFmpeg power with custom presets 🎞️ Total Control: Watermarks, metadata & admin panel πŸ›‘οΈ Fast, stable, and fully customizable. 🌟 Developed by Argon

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages