Play online music videos in terminal

pvl() { (for i in "$@"; do youtube-dl -q --max-downloads 1 --no-playlist "$i" -o - | mplayer -vo null /dev/fd/3 3<&0 </dev/tty; sleep .5; done); }
pvl 'link1' 'link2' 'link3' Play Youtube, Vimeo, etc links without visual elements. Great for music videos when you just want the audio. You can control mplayer with this! Hit Ctrl-C twice to exit (if you're playing multiple files)

2015-07-14 04:44:36

What Others Think

Great command. Is there other player that can be controlled from terminal? I'd be great to have such feature. Thanks anyway!
toro · 316 weeks ago
I will apply it to explore
Tomhiddeston · 30 weeks ago
took me time to read the forum but its actually great. People should know about this more. Cutting
Killersmile · 18 weeks ago
Obrigado por escrever este post pessoal sobre casino. Eu sou um grande fã de jogar cassino online, pois jogando isso podemos ganhar dinheiro e neste tempo de bloqueio, é como uma dádiva. Você também pode experimentar o casino online portugal, que é um serviço legal e seguro. Aqui também podemos encontrar um guia completo para jogar no casino de forma eficiente. Estou realmente impressionado com isso.
MarceloFLewis · 14 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: