Code Monkey home page Code Monkey logo

Comments (1)

blauzaaan avatar blauzaaan commented on June 21, 2024

Not sure whether this is still relevant for you after such a long time, but it is for me, so I'm documenting what I figured out.
Fixed in blauzaaan@55337fa

I'm getting errors during npm run install-server:

> [email protected] postinstall /home/pi/rio/rio-server/node_modules/youtube-dl
> node ./scripts/download.js

Error: Could not find download link in https://rg3.github.io/youtube-dl/download.html
...

See: przemyslawpluta/node-youtube-dl#162
It's fixed later versions, so change rio-server/package.json:
"youtube-dl": "1.11.0" --> "youtube-dl": "1.13.1"

(newer versions seem to depend on a package which require newer node versions, so not using those for now)

However, with the video I selected, I got

Error: Command failed: /home/pi/rio/rio-server/node_modules/youtube-dl/bin/youtube-dl --dump-json --format=17 http://www.youtube.com/watch?v=MLFWLJSPN7I
ERROR: requested format not available

Therefore I additionally changed the format in rio-server/inputs/video-worker.js:

//    var video = youtubedl(url, ['--format=17']); // 176 x 144 @ 12fps
    var video = youtubedl(url, ['--format=worst']); // changed as at least some videos are not available in format 17

If considering switching to youtube-dl-exec, remember to not only in package.json, but also in inputs/video-worker.js:

const youtubedl = require('youtube-dl');

from rio.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.