{"repo":"JamesKyburz/youtube-audio-stream","free":true,"listed":false,"github":"https://github.com/JamesKyburz/youtube-audio-stream","clone":"git clone https://github.com/JamesKyburz/youtube-audio-stream.git","description":"youtube audio stream","language":"JavaScript","stars":356,"topics":["ffmpeg","youtube","audio","javascript","nodejs","streams-youtube"],"license":null,"category":"media-processing","readme_excerpt":"youtube-audio-stream 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 with brew install ffmpeg . Getting Started 1. With npm, run npm install youtube-audio-stream 2. const stream = 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. write it to res Node example playing directly to 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 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: To run the test:","default_branch":null,"files":null,"tree":[],"storefront":"/r/JamesKyburz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JamesKyburz/youtube-audio-stream/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}