Skip to content

mathiasvr/youtube-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Terminal

npm downloads dependencies license

Stream YouTube videos as ascii art in the terminal!

install

npm install -g youtube-terminal

Be sure to have FFmpeg installed as well.

Ubuntu/Debian users should have ALSA installed as well:

sudo apt-get install libasound2-dev

usage

YouTube Terminal will play the first found search result:

youtube-terminal [options] 'cyanide and happiness'

options

-l, --link [url]         Use YouTube link instead of searching
-i, --invert             Invert colors, recommended on dark background
-c, --contrast [percent] Adjust video contrast [default: 50]
-w, --width [number]     ASCII video character width
-m, --mute               Disable audio playback
--fps [number]           Adjust playback frame rate

Which background color does your terminal have?

I am considering inverting the video colors for better viewing on a dark background by default, but first I would like to know how your terminal looks?

If more people uses a dark background, the effect of --invert will be swapped in a future release.

todos

  • Improve video playback (consistent frame interval)
  • Video/Audio synchronization

related

ascii-pixels

license

MIT

About

📺 Stream YouTube videos as ascii art in the terminal!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published