命令行youtube客户端
white的Python项目详细描述
yt:一个命令行youtube客户端
yt是youtube的命令行前端,允许您浏览youtube 从命令行直接播放视频。它使用youtube-dl和 mplayer或omxplayer实际上是播放视频。
基于文本的接口和omxplayer的组合使yt成为一个很棒的 树莓派的YouTube客户端。
使用量
使用mplayer启动:
yt
或者,如果您使用的是覆盆子pi,则使用omxplayer:
pi-yt
安装
来自pypi(更简单!)
# Install dependancies sudo apt-get install youtube-dl # Ensure using latest version of youtube-dl to keep up with YouTube API changes sudo youtube-dl -U # Install from PyPi sudo apt-get install python-setuptools sudo easy_install whitey
来自Github
# Install dependancies
sudo apt-get install youtube-dl
# Ensure using latest version of youtube-dl to keep up with YouTube API changes
sudo youtube-dl -U
# Install from GitHub
sudo apt-get install python-setuptools
git checkout git@github.com:rjw57/yt.git
cd yt
sudo python setup.py install
覆盆子pi的单线安装
curl -L https://github.com/rjw57/yt/raw/master/tools/install-pi.sh | sh
依赖性
- YouTube下载
- mplayer或omxplayer
常见问题
在界面中选择时,视频不会播放
确保您拥有最新版本的youtube dl。youtube dl有一个自我更新 机构:
sudo youtube-dl -U
omxplayer在不播放视频的情况下启动和终止
对于高质量的视频,覆盆子pi上的默认内存分配没有 为GPU提供足够的内存。
默认的192M ARM、64M GPU拆分可以更改为128M ARM、128M GPU拆分 使用raspi配置。
sudo raspi-config # Select memory-split # Allocate 128M to the GPU
有关详细信息,请参见http://elinux.org/RPi_Advanced_Setup。
获得更多帮助
参见https://github.com/rg3/youtube-dl和https://github.com/huceke/omxplayer了解 更详细的帮助。
贡献者
-
富库
- 已创建yt。
- 计算j.eadie
- 增加了omxplayer支持和pi yt入口点。
新闻
2013年0月4日-27日
- 明确许可。
- 在setup.py中添加trove分类器。
2013年2月21日-0.3
- 添加了pi yt入口点(calum eadie)
2012年10月29日-0.2
- 添加了媒体播放器的命令行配置和omxplayer支持(calum eadie)
2012年2月29日-0.1
- 初始版本