All Projects → JamesKyburz → Youtube Audio Stream

JamesKyburz / Youtube Audio Stream

Licence: other
youtube audio stream

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Youtube Audio Stream

Sonos Web
Web interface for Sonos audio systems
Stars: ✭ 114 (-58.7%)
Mutual labels:  audio, ffmpeg, youtube
Online Video Editor
API based Online Video Editing using FFMPEG & NodeJs for Backend Editing
Stars: ✭ 176 (-36.23%)
Mutual labels:  audio, ffmpeg
Aeneas
aeneas is a Python/C library and a set of tools to automagically synchronize audio and text (aka forced alignment)
Stars: ✭ 1,942 (+603.62%)
Mutual labels:  audio, ffmpeg
Fvid
fvid is a project that aims to encode any file as a video using 1-bit color images to survive compression algorithms for data retrieval.
Stars: ✭ 276 (+0%)
Mutual labels:  ffmpeg, youtube
Youcast
Turn YouTube Channels into Subscribable Podcasts.
Stars: ✭ 142 (-48.55%)
Mutual labels:  audio, youtube
Digital video introduction
A hands-on introduction to video technology: image, video, codec (av1, vp9, h265) and more (ffmpeg encoding).
Stars: ✭ 12,184 (+4314.49%)
Mutual labels:  audio, ffmpeg
Zen Audio Player.github.io
Listen to YouTube videos, without the distracting visuals.
Stars: ✭ 180 (-34.78%)
Mutual labels:  audio, youtube
Menutube
Catch YouTube into your macOS menu bar! 🦄
Stars: ✭ 102 (-63.04%)
Mutual labels:  audio, youtube
Scdlbot
Telegram Bot for downloading MP3 rips of tracks/sets from SoundCloud, Bandcamp, YouTube with tags and artwork.
Stars: ✭ 210 (-23.91%)
Mutual labels:  audio, youtube
Mpv
🎥 Command line video player
Stars: ✭ 17,018 (+6065.94%)
Mutual labels:  audio, ffmpeg
Fanplayer
A portable video player based on ffmpeg for windows and android platform.
Stars: ✭ 229 (-17.03%)
Mutual labels:  audio, ffmpeg
Prism Media
Easily transcode media using Node.js 🎶
Stars: ✭ 136 (-50.72%)
Mutual labels:  audio, ffmpeg
Vime
Customizable, extensible, accessible and framework agnostic media player. Modern alternative to Video.js and Plyr. Supports HTML5, HLS, Dash, YouTube, Vimeo, Dailymotion...
Stars: ✭ 1,928 (+598.55%)
Mutual labels:  audio, youtube
Ffmpeg Video Player
An FFmpeg and SDL Tutorial.
Stars: ✭ 149 (-46.01%)
Mutual labels:  audio, ffmpeg
nightcoreify
Randomly generates nightcore and uploads it to YouTube. A joke that got out of hand.
Stars: ✭ 54 (-80.43%)
Mutual labels:  youtube, ffmpeg
Min Vid
Popout video player in Firefox
Stars: ✭ 180 (-34.78%)
Mutual labels:  audio, youtube
Soundpusher
Virtual audio device, real-time encoder and SPDIF forwarder for macOS
Stars: ✭ 91 (-67.03%)
Mutual labels:  audio, ffmpeg
Av Converter
[av-converter.com] Audio and Video Converter, and YouTube downloader. Convert to MP3, MP4, AAC, FLAC, AC3, WAV, etc.
Stars: ✭ 97 (-64.86%)
Mutual labels:  audio, youtube
Youtag
iOS music player app that downloads music from the internet, even YouTube
Stars: ✭ 193 (-30.07%)
Mutual labels:  audio, youtube
Swiftffmpeg
A Swift wrapper for the FFmpeg API
Stars: ✭ 243 (-11.96%)
Mutual labels:  audio, ffmpeg

youtube-audio-stream

js-standard-style Greenkeeper badge

This module streams youtube using ytdl to get the youtube download stream.

To convert to audio the module fluent-ffmpeg is used.

You will need to have ffmpeg and the necessary encoding libraries installed, as well as in your PATH. If you're on OSX, this can be handled easily using Homebrew (brew install ffmpeg).

Getting Started

  1. With npm, run npm install youtube-audio-stream
  2. var youtubeStream = require('youtube-audio-stream')

Usage

Here is an example that:

  1. queries for a video by video ID
  2. Retrieves the audio via this package
  3. pipes it to res
var getAudio = function (req, res) {
  var requestUrl = 'http://youtube.com/watch?v=' + req.params.videoId
  try {
    youtubeStream(requestUrl).pipe(res)
  } catch (exception) {
    res.status(500).send(exception)
  }
}

Node example playing directly to speaker

const stream = require('youtube-audio-stream')
const url = 'http://youtube.com/watch?v=34aQNMvGEZQ'
const decoder = require('lame').Decoder
const speaker = require('speaker')

stream(url)
.pipe(decoder())
.pipe(speaker())

Testing

This package comes with a simple example for testing. This can be run with the command npm test, which will then serve the example at localhost:3000. The example consists of an <audio> component whose source is retrieved via this package.

Testing inside a docker container

You can test this module without the need o have ffmeg locally installed doing it inside a container.

To build the Docker image:

docker build . -t youtube-audio-stream-test

To run the test:

docker run --rm -it -p 3000:3000 youtube-audio-stream-test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].