Posted: . At: 9:56 AM. This was 5 years ago. Post ID: 13310
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



Listen to music in the terminal and some other nice Linux tricks.


This nice command allows streaming some nice ambient drone music in the terminal with MPV. Very nice to listen to while doing other things.

mpv http://ice.somafm.com/dronezone | sed -n "s/ icy-title: \(.*\)/\x1b[38;5;242m$(date +%T)\x1b[m | \1/p"

Play a Youtube video audio only, this is another way to listen to music whilst working. This gives a 10 second cache, which is plenty, and works well with any Youtube video. I am not worried about seeking in the stream, I just want to listen to it.

 mpv --no-video https://www.youtube.com/watch?v=2__UsVjlDzM

How to play a Youtube video with MPV and skip to a certain section.
https://securitronlinux.com/debian-testing/how-to-play-a-youtube-video-with-mpv-and-skip-to-a-certain-section/

How to get a nice waveform display with the MPV media player on Linux.
https://securitronlinux.com/debian-testing/how-to-get-a-nice-waveform-display-with-the-mpv-media-player-on-linux/

How to encode a section of a movie to a webm file with mpv.
https://securitronlinux.com/debian-testing/how-to-encode-a-section-of-a-movie-to-a-webm-file-with-mpv/


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.