LinuxCommandLibrary

ytfzf

Search and play YouTube videos with fzf

TLDR

Search with thumbnails

$ ytfzf -t [search_pattern]
copy
Play audio in loop
$ ytfzf -m -a -l [search_pattern]
copy
Download from history
$ ytfzf -d --choose-from-history
copy
Play all audio results
$ ytfzf -m -A [search_pattern]
copy
Show trending videos
$ ytfzf --trending --ext-menu [search_pattern]
copy
Search PeerTube
$ ytfzf --peertube [search_pattern]
copy

SYNOPSIS

ytfzf [OPTIONS] [SEARCH]

DESCRIPTION

ytfzf is a POSIX shell script for finding and playing videos from YouTube and other platforms. It uses fzf for selection and mpv for playback.
The tool supports searching, streaming, and downloading videos with thumbnail previews.

PARAMETERS

-t, --show-thumbnails

Show thumbnail previews
-m, --audio-only
Play only audio
-a, --auto-select
Auto-select first result
-l, --loop
Loop playback
-d, --download
Download instead of play
-A, --select-all
Select all results
--trending
Show trending videos
--peertube
Search PeerTube instead of YouTube
--ext-menu
Use external menu program

CAVEATS

Requires fzf, mpv, and yt-dlp or youtube-dl. Thumbnail preview requires ueberzug or similar.

SEE ALSO

yt-dlp(1), youtube-dl(1), mpv(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community