Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
download best and combine is ffmpeg available
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslawpluta committed Sep 29, 2017
1 parent a0832dc commit 2193220
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions example/best.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var ytdl = require('..');
var url = 'https://www.youtube.com/watch?v=fmIGnd98DX4';

ytdl.exec(url, ['-f', 'bestvideo[ext=mp4]+bestaudio[ext=m4a]'], {}, function exec(err, output) {
'use strict';
if (err) { throw err; }
console.log(output.join('\n'));
});

0 comments on commit 2193220

Please sign in to comment.