Python-based YouTube video player with ASCII art functionality.
Important: pytubefix must be version 7.1rc2 for streaming video compatibility
- Python 3.8+
- pygame
- OpenCV (cv2)
- numpy
- moviepy == 1.0.3
- chardet == 5.2.0
- pytubefix == 7.1rc2
- pyvidplayer2 == 0.9.24
- yt_dlp == 2024.8.6
See requirements.txt for more information.
- YouTube video playback and download functionality
- Real-time ASCII art conversion mode
- Intuitive keyboard controls
- YouTube subtitle loading functionality
- Video search functionality
- Volume and playback control
- GUI and CLI interfaces
- Discord RPC functionality
- with watch video functionality
Windows
install.bat
Terminal
install.sh
Windows
# GUI mode
start.bat
Terminal
# GUI mode
start.sh
# CLI mode
start.sh --nogui
# Single playback
start.sh --once
# Playlist mode
start.sh --nogui --play [URL1] [URL2]...
# client mode (beta)
start.sh --with-play-client
# server mode (beta)
start.sh --with-play-server
Key | Function |
---|---|
S |
Seek video |
R |
Restart video |
P |
Play/Pause |
M |
Mute/Unmute |
L |
Toggle loop |
A |
Toggle ASCII mode |
Key | Function |
---|---|
↑ |
Increase volume |
↓ |
Decrease volume |
← |
Rewind 15s |
→ |
Forward 15s |
Key | Function |
---|---|
esc |
Return to search screen |
f11 |
Fullscreen |
- Enter video URL or search term
- Paste URL with
Ctrl+V
- Navigate results with arrow keys
- Select and play with Enter
Steps to configure:
- Open the
setting/setting.json
file in the Sclat installation folder. - Change
"Subtitle-Lang": "~"
value to your desired language:
-
At this time, if you enter
none
, the subtitle function will be turned off.{ "Subtitle-Lang": "ko" // other settings... }
Sclat supports the Discord Rich Presence feature, which automatically displays the currently playing video information in your Discord status.
To use the Discord RPC feature, simply run the Discord program on your computer. If Discord is running, Sclat will automatically display the currently playing video information in the Discord status.
To disable the Discord RPC feature, change the discord_RPC
value to false
in the setting/setting.json
file. The default value is true
.
Steps to configure:
-
Open the
setting/setting.json
file in the Sclat installation folder. -
Change
"discord_RPC": true
to"discord_RPC": false
:{ "discord_RPC": false // other settings... }
-
Save the file and restart the program.