JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q66106F
  • License SEE LICENSE IN LICENSE.md

TPHIM - Ultimate Video Pipeline: Download, Transcode HLS, AI Subtitles, and Cloud Upload.

Package Exports

  • tphim
  • tphim/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tphim) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

💎 TPHIM - Ultimate Video Pipeline

TPHIM là bộ công cụ tối thượng để xây dựng hệ thống VOD (Video on Demand) chuyên nghiệp. Hỗ trợ tự động hóa từ khâu tải video, transcode HLS đa chất lượng, tạo phụ đề AI và upload lên Cloud (S3/Tebi).

🚀 Tính năng vượt trội

  • Batch Pipeline: Xử lý hàng loạt phim chỉ với 1 dòng lệnh.
  • AI Subtitles: Tự động tạo phụ đề Tiếng Việt/Tiếng Anh bằng công cụ AI (Whisper) chạy offline.
  • Cloud Ready: Upload trực tiếp lên Tebi.io hoặc bất kỳ S3-compatible storage nào.
  • Interactive CLI: Giao diện terminal đẹp mắt với neon theme.

🛠️ Hướng dẫn cài đặt (VPS Ubuntu / Google Cloud / Linux)

Để chạy được bộ công cụ này trên Linux/VPS, bạn cần cài đặt các "vũ khí" sau:

1. Cài đặt Node.js

curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs

2. Cài đặt FFmpeg & Python

sudo apt update
sudo apt install -y ffmpeg python3 python3-pip

3. Cài đặt yt-dlp (Để tải video)

sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp

4. Cài đặt thư viện AI (faster-whisper)

pip3 install faster-whisper

📱 Hướng dẫn trên Android (Termux)

Bạn hoàn toàn có thể chạy Pipeline này ngay trên điện thoại:

  1. Cài đặt môi trường:
    pkg update && pkg upgrade
    pkg install nodejs ffmpeg python python-pip wget
  2. Cài đặt yt-dlp:(không nhất thiết phải cài)
    pip install yt-dlp
  3. Cài đặt thư viện AI: (Lưu ý: faster-whisper trên Termux có thể cần cấu hình thêm tùy dòng máy Android).

📦 Sử dụng như một Thư viện (Library)

Cài đặt vào dự án của bạn:

npm install tphim

Trong code Node.js:

import { executePipeline } from 'tphim';

await executePipeline({
  input: "https://link-phim.com/phim.m3u8",
  slug: "phim-hay-2030",
  title: "Phim Hay 2030",
  langArg: "both"
});

⌨️ Sử dụng CLI (Terminal)

Cài đặt globally:

npm install -g tphim

Các lệnh CLI:

# Xem hướng dẫn
ntxa help

# Chạy interactive mode
ntxa

# Chạy với tên phim mặc định
ntxa "Tên Phim Của Bạn"

# Xử lý batch nhiều link
ntxa
# (sẽ hỏi nhập nhiều link cách nhau bằng dấu phẩy)

Cấu hình bắt buộc:

Tạo file .env với các biến sau:

TEBI_ENDPOINT=https://s3.tebi.io
TEBI_ACCESS_KEY_ID=your_access_key
TEBI_SECRET_ACCESS_KEY=your_secret_key
TEBI_BUCKET=your_bucket_name
TEBI_PUBLIC_URL=https://your-bucket.tebi.io

🔧 Tính năng CLI

Interactive Mode:

  • Nhập multiple links (cách nhau bằng dấu phẩy)
  • Tự động fetch metadata từ video
  • Chọn ngôn ngữ phụ đề (VI/EN/Both)
  • Batch processing với progress bar

Help System:

ntxa help          # Hiển thị toàn bộ hướng dẫn
ntxa --help        # Tương tự
ntxa -h           # Tương tự

Phát triển bởi TXA - Ultimate Video Pipeline 2030 🍿🎬