An open API service indexing awesome lists of open source software.

https://github.com/peab-dev/you-terminal-player

Watch YouTube in your terminal β€” half-block video with live, synchronized sound (yt command).
https://github.com/peab-dev/you-terminal-player

ansi ascii-art cli ffmpeg half-blocks macos stream terminal terminal-app terminal-video video video-player youtube yt-dlp

Last synced: 21 days ago
JSON representation

Watch YouTube in your terminal β€” half-block video with live, synchronized sound (yt command).

Awesome Lists containing this project

README

          


you-terminal-player


License: MIT
Python 3.10+
Powered by yt-dlp
Docs
Platform: macOS


Watch YouTube in your terminal in the highest possible resolution, with live, synchronized sound. πŸ“ΊπŸ”Š


Developed with ❀️ in πŸ‡¦πŸ‡Ή by PEAB Website peab.at

πŸ“– Full documentation

## Quick start

```bash
git clone https://github.com/peab-dev/you-terminal-player.git
cd you-terminal-player
./install.sh
yt # play the default video
```

`install.sh` is idempotent β€” it installs `ffmpeg`/`ffplay`, Node.js, the Python
venv, the `yt-dlp` + PO-token pieces, the bgutil Docker server, and a global `yt`
command on your `PATH`. Re-run it anytime.

> **Requires Docker Desktop** (for the PO-token server). Everything else is
> self-contained.

## Usage

```bash
yt # default video
yt "https://www.youtube.com/watch?v=..." # a specific video
yt --res 1080 "" # higher resolution
yt --no-audio "" # silent
yt --cookies-from-browser safari "" # if YouTube says "confirm you're not a bot"
```

**Controls:** `space` = pause/resume Β· `v` = display mode Β· `r` = source resolution (240β†’1080) Β· `f` = frame rate (15β†’60, incl. original) Β· `q` / `ESC` = quit
**Resize the window anytime** β€” the picture refits to fill it (aspect preserved, no stretching).
**Tip:** enlarge the window + shrink the font (`Cmd` `-`) for a sharper picture.

Uninstall with `./uninstall.sh`. See the
[docs](https://peab-dev.github.io/you-terminal-player/) for options, internals
and troubleshooting.

Developed with ❀️ in πŸ‡¦πŸ‡Ή by PEAB Website peab.at