Documentation
¶
Overview ¶
Package player turns a YouTube stream into raw RGB frames (via ffmpeg) and ANSI half-block text, so video plays directly inside the terminal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frame ¶
type Frame struct {
Data []byte
Index int // frame number since the last Play, for position tracking
}
Frame is one decoded video frame in packed RGB24, W×H pixels.
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline manages the ffmpeg (video) and ffplay (audio) processes for one playback session. Play/Stop may be called repeatedly (pause, seek, resize all restart the pipeline at a new position).
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer converts RGB24 frames into ANSI true-color half-block text.
Each terminal cell shows two vertical pixels using the upper-half-block character '▀': the glyph (foreground) color is the top pixel and the cell background is the bottom pixel — doubling vertical resolution.