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.
- Host: GitHub
- URL: https://github.com/codeasashu/ytdl-streamer
- Owner: codeasashu
- Created: 2016-05-22T16:56:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-05-13T14:44:46.000Z (over 6 years ago)
- Last Synced: 2025-02-26T11:04:26.103Z (11 months ago)
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 6
- Watchers: 0
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)