Sample Header Ad - 728x90

Watch YouTube videos in terminal

120 votes
4 answers
69433 views
I'm looking for a way to watch YouTube videos in terminal (not in a browser or another window, but right there, in any bash session). Is there a simple way to do this? I imagine something like this: $ youtube I already know how to play a video using mplayer: $ mplayer -vo caca local-file.avi However, this opens a new window. It would be cool to play it in terminal. Also, it should be compatible with tmux sessions. --- I asked another question for [how to prevent opening a new window](https://unix.stackexchange.com/q/160243/45370) . --- For those that wonder where I need such a functionality, I started an experimental project named [*TmuxOS* -- with the concept that *everything should run inside of a tmux session*](https://github.com/TmuxOS/TmuxOS) . So, indeed I need a video player for local and remote videos. :-)
Asked by Ionică Bizău (3481 rep)
Oct 9, 2014, 01:31 PM
Last activity: Oct 9, 2021, 06:02 PM