Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Begin not working #243

Closed
git-santosh opened this issue Nov 3, 2017 · 1 comment
Closed

Begin not working #243

git-santosh opened this issue Nov 3, 2017 · 1 comment

Comments

@git-santosh
Copy link

below code is not working

 let url = 'http://www.youtube.com/watch?v=WKsjaOqDXgg';
 let video = ytdl(url,{begin:2});
 //let video = ytdl(url,{begin:'00:02:00.000'});
// let video = ytdl(url,{begin:'2ms'});
 video.pipe(fs.createWriteStream('video2.mp4'));

I have given try on passing different parameters on begin option but neither of them is not working for me

@fent
Copy link
Owner

fent commented Nov 3, 2017

The begin option is unreliable

from readme

This option may not work on super short (less than 30s) videos, and has to be at or above 6s, see #129. It may also not work for some formats, see #219.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants