tphim 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +56 -4
  2. package/package.json +2 -3
package/README.md CHANGED
@@ -23,18 +23,55 @@ sudo apt-get install -y nodejs
23
23
  ### 2. Cài đặt FFmpeg & Python
24
24
  ```bash
25
25
  sudo apt update
26
- sudo apt install -y ffmpeg python3 python3-pip
26
+ sudo apt install -y ffmpeg python3 python3-pip python3-full python3-venv
27
27
  ```
28
28
 
29
29
  ### 3. Cài đặt yt-dlp (Để tải video)
30
30
  ```bash
31
+ # Method 1: Download trực tiếp (Recommended)
31
32
  sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp
32
33
  sudo chmod a+rx /usr/local/bin/yt-dlp
34
+
35
+ # Method 2: Sử dụng pipx (không cần venv)
36
+ sudo apt install pipx
37
+ pipx install yt-dlp
38
+ pipx ensurepath
39
+
40
+ # Method 3: Sử dụng virtual environment
41
+ python3 -m venv ~/.yt-dlp-env
42
+ source ~/.yt-dlp-env/bin/activate
43
+ pip install yt-dlp
44
+ deactivate
45
+ echo 'export PATH="$HOME/.yt-dlp-env/bin:$PATH"' >> ~/.bashrc
46
+ source ~/.bashrc
33
47
  ```
34
48
 
35
49
  ### 4. Cài đặt thư viện AI (faster-whisper)
36
50
  ```bash
37
- pip3 install faster-whisper
51
+ # Tạo virtual environment cho AI
52
+ python3 -m venv ~/.whisper-env
53
+ source ~/.whisper-env/bin/activate
54
+ pip install faster-whisper
55
+ deactivate
56
+ echo 'export PATH="$HOME/.whisper-env/bin:$PATH"' >> ~/.bashrc
57
+ source ~/.bashrc
58
+ ```
59
+
60
+ ### 5. Cài đặt TPHIM
61
+ ```bash
62
+ npm install -g tphim
63
+ ```
64
+
65
+ ### 6. Kiểm tra cài đặt
66
+ ```bash
67
+ # Kiểm tra yt-dlp
68
+ yt-dlp --version
69
+
70
+ # Kiểm tra TPHIM CLI
71
+ ntxa help
72
+
73
+ # Kiểm tra FFmpeg
74
+ ffmpeg -version
38
75
  ```
39
76
 
40
77
  ---
@@ -48,12 +85,27 @@ Bạn hoàn toàn có thể chạy Pipeline này ngay trên điện thoại:
48
85
  pkg update && pkg upgrade
49
86
  pkg install nodejs ffmpeg python python-pip wget
50
87
  ```
51
- 2. **Cài đặt yt-dlp:**(không nhất thiết phải cài)
88
+
89
+ 2. **Cài đặt yt-dlp:**
52
90
  ```bash
91
+ # Method 1: Download trực tiếp
92
+ wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O $PREFIX/bin/yt-dlp
93
+ chmod a+rx $PREFIX/bin/yt-dlp
94
+
95
+ # Method 2: Sử dụng pip
53
96
  pip install yt-dlp
54
97
  ```
98
+
55
99
  3. **Cài đặt thư viện AI:**
56
- (Lưu ý: faster-whisper trên Termux có thể cần cấu hình thêm tùy dòng máy Android).
100
+ ```bash
101
+ # Termux thường không cần venv, install trực tiếp
102
+ pip install faster-whisper
103
+ ```
104
+
105
+ 4. **Cài đặt TPHIM:**
106
+ ```bash
107
+ npm install -g tphim
108
+ ```
57
109
 
58
110
  ---
59
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tphim",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "TPHIM - Ultimate Video Pipeline: Download, Transcode HLS, AI Subtitles, and Cloud Upload.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -58,8 +58,7 @@
58
58
  "figlet": "^1.10.0",
59
59
  "log-symbols": "^7.0.1",
60
60
  "mime-types": "^3.0.2",
61
- "ora": "^9.3.0",
62
- "yt-dlp-exec": "^1.0.2"
61
+ "ora": "^9.3.0"
63
62
  },
64
63
  "funding": {
65
64
  "type": "individual",