跳转到主要内容

命令行YouTube客户端

项目描述

yt:一个命令行YouTube客户端

yt 是一个YouTube的命令行前端,允许您浏览YouTube视频并直接从命令行播放它们。它使用 youtube-dlmplayeromxplayer 实际 播放 视频。

文本界面和 omxplayer 的组合使 yt 成为Raspberry Pi的绝佳YouTube客户端。

用法

使用 mplayer 启动

yt

或者,如果您使用的是Raspberry 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

Raspberry Pi的一行安装

curl -L https://github.com/rjw57/yt/raw/master/tools/install-pi.sh | sh

依赖关系

  • youtube-dl

  • mplayer或omxplayer

常见问题

在界面中选择视频时无法播放

请确保您拥有youtube-dl的最新版本。youtube-dl具有自动更新机制

sudo youtube-dl -U

omxplayer启动并终止而未播放视频

对于高质量视频,Raspberry Pi上默认的内存分配无法为GPU提供足够的内存。

默认的192M ARM、64M GPU分割可以更改为128M ARM、128M GPU分割,使用raspi-config。

sudo raspi-config
# Select memory-split
# Allocate 128M to the GPU

更多信息请参见 http://elinux.org/RPi_Advanced_Setup

获取更多帮助

请参见 https://github.com/rg3/youtube-dlhttps://github.com/huceke/omxplayer 以获取更详细的信息。

贡献者

  • Rich Wareham
    • 创建 yt

  • Calum J. Eadie
    • 增加了 OMXPlayer 支持,并添加了 pi-yt 入口点。

致谢

新闻

0.4 - 27/00/2013

  • 阐明许可。

  • 在 setup.py 中添加 Trove 类别。

0.3 - 21/02/2013

  • 添加 pi-yt 入口点 (Calum Eadie)

0.2 - 29/10/2012

  • 添加媒体播放器和 OMXPlayer 的命令行配置 (Calum Eadie)

0.1 - 29/02/2012

  • 初始版本

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分发

whitey-0.4.tar.gz (8.9 kB 查看散列)

上传时间

由支持