An open API service indexing awesome lists of open source software.

https://github.com/codeasashu/ytdl-streamer

A simple bash script that streams a youtube video to mplayer.
https://github.com/codeasashu/ytdl-streamer

Last synced: 9 months ago
JSON representation

A simple bash script that streams a youtube video to mplayer.

Awesome Lists containing this project

README

          

# ytdl-streamer

## Introduction

A simple bash script that can stream your youtube video right to your player right from terminal

## Useage

Clone or download this repo. `cd` to your repo directory. Install required dependencies via [pip](https://pypi.python.org/pypi/pip).

Just execute `sudo chmod +x ./playmusic.sh` and run. It will ask you to input your search term, and will stream it directly to [mplayer](https://help.ubuntu.com/community/MPlayer)

Here is the whole process summarized:

```
machine@localhost$ git clone "https://github.com/codeasashu/ytdl-streamer.git"
machine@localhost$ cd ytdl-streamer
machine@localhost$ pip install -r requirements.txt
machine@localhost$ sudo chmod +x ./playmusic.sh
machine@localhost$ ./playmusic.sh "in the end linkin park"
```

This will automatically pick best result from youtube api for the search term
and will start playing the mp3 for you.

### Sidenote
This program requires `ffmpeg`, [youtube-dl](https://github.com/rg3/youtube-dl) and `mplayer`. Please install one before using this script.
For Ubuntu 12.04 or 14.04 users, use [this bash script](https://gist.github.com/xdamman/e4f713c8cd1a389a5917)