Skip to content

Node.js module to download YouTube videos as separate audio files, using the tracklist provided on the description of the video or CUE files.

License

Notifications You must be signed in to change notification settings

raltamirano/ytdl-splitter-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ytdl-splitter-core

Node.js module to download YouTube videos as separate audio files, using the tracklist provided on the description of the video or CUE files.

Usage

Extract audio files using the tracklist provided in the description for the video:

var Splitter = require('ytdl-splitter-core');
var splitter = new Splitter();

splitter.on('end', function(info) {
    console.log(info.url, 'split files at:', info.outputPath);
});

splitter.split('https://www.youtube.com/watch?v=SOME_VIDEO_ID');

Extract audio files using a CUE file as the tracklist:

var Splitter = require('ytdl-splitter-core');
var splitter = new Splitter();

splitter.on('end', function(info) {
    console.log(info.url, 'split files at:', info.outputPath);
});

splitter.addCUETracklistExtractor('/tmp/some_file.cue');
splitter.split('https://www.youtube.com/watch?v=SOME_VIDEO_ID');

Notes

As this package depends on 'avconv', check for its requirements also. Currently, they are: the 'avconv' executable in your PATH, ready to be executed.

About

Node.js module to download YouTube videos as separate audio files, using the tracklist provided on the description of the video or CUE files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages