星期二, 八月 11, 2015

Watch live Youtube stream at command line


Flash player is disabled by default by Firefox. It indeed crashes Firefox quite often. Live stream on Youtube usually needs flash player. Below is an alternative on command line. One can then code and watch (if you can) happily and forever.
#!/usr/bin/env bash
# rpmfusion is need for below
sudo dnf install livestreamer vlc
livestreamer $(url) best # or 240p for example
Mplayer can be used using option --player mplayer. The experience here is not very nice. That's why livestreamer's default player vlc was installed here.

没有评论: