Comments (6)
How did you install it? Did you use npm or git cloned? Did the youtube-dl
executable get downloaded in the bin folder? Do the tests pass?
from node-youtube-dl.
I used npm isntall youtube-dl, I'm running it in windows 7.
it installed the module in my /app_dir/node_modules/youtube-dl/
Doing only the require does not trigger the error yet, its the .download function
Thank for your fast reply by the way 👍 I hope we can solve this
Edit: and yes, "youtube-dl" is in the /bin/ folder.
from node-youtube-dl.
Hmm Windows 7. I haven't tested this on Windows since at the moment I don't have access to it. The way this works is it downloads the youtube-dl program from here. But currently it downloads the unix script, not sure if this is executable on Windows. In the future I might update it so it downloads the exe if installed on Windows.
If you are planning on using this to download only from Youtube, take a look at ytdl, which uses only Javascript and should work on all platforms.
from node-youtube-dl.
By browing your profile I actually found that one and i just recieved my first file on it, Looks good, less options though, I think.
Thanks for awnsering my questions :)
Sorry for going off-topic here but do you know the simplest way to convert a part of the downloaded video to a gif in nodejs? I'm going to try ffmpeg but I dont think it supports quite what I'm looking for.
from node-youtube-dl.
No problem. :)
I was trying to do something similar to that 2 years ago, which was the reason for creating this module. Not sure if ffmpeg can convert to gif, I know it can export part of a video to a sequence of images. You can then use either imagemagick or gifsicle to turn it into a gif.
from node-youtube-dl.
Yeah that's what I had in mind. Thanks!
from node-youtube-dl.
Related Issues (20)
- Any way to cancel/abort a download?
- Environment variable from .yarnrc does not seem to work HOT 1
- Streaming to Discord voice channel? HOT 2
- Failed error HOT 1
- Twitch vods not downloading HOT 1
- Is... Is this... Is this legal? HOT 5
- Installing NPM module in a Docker container, causes ENOENT HOT 3
- getInfo selects sub-optimal videos.
- Only downloading first page of videos. 30
- youtubedl.exec() throws error saying provided callback function is, in fact, not a function HOT 2
- How to use '.on' events when using .exec?
- 'complete' and 'end' are not fired sometimes HOT 1
- Cannot read property 'statusCode' of undefined HOT 2
- Missing .\node_modules\youtube-dl\details
- Missing ./node_modules/youtube-dl/bin/details file, postinstall script failing HOT 1
- 3.4.0 Fails to install required deps HOT 2
- Can't install HOT 5
- Can't install: SyntaxError: Unexpected token *
- Command failed with exit code 1
- TimeoutError HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-youtube-dl.