GithubHelp home page GithubHelp logo

synox / youtube-dl-interactive Goto Github PK

View Code? Open in Web Editor NEW
1.4K 17.0 59.0 863 KB

OBSOLETE - Interactively select the quality and format for youtube-dl

License: MIT License

JavaScript 100.00%
youtube-dl cli

youtube-dl-interactive's Introduction

youtube-dl-interactive is inactive.

This was just an experiment. Yes it was possible make this tiny tool with nodejs, a few shell scripts, python scripts, or bash aliases would have been more helpful.

youtube-dl-interactive's People

Contributors

0xflotus avatar mathieu-aubin avatar synox avatar tonycassara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

youtube-dl-interactive's Issues

Mix 'video only' with audio, use JSON output

eg: https://www.youtube.com/watch?v=HLqIbhzrrls

After loading format , there are only 3 options : audio only / 640x360 / 1280x720

And this video has '1920x1080' video only (no audio ) format

{ format: '137',
code: '',
extension: 'mp4',
resolution: '1920x1080',
note: '1080p 2447k , avc1.640028, 25fps, video only, 21.67MiB' },

I know that the video only format is exclude by code

	remainingFormats = remainingFormats.filter(
		f => f.note.indexOf('video only') === -1
	)

So I want the '1920x1080' mp4 video and also with audio .

It is easy to do with command below

youtube-dl  -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'  https://www.youtube.com/watch\?v\=HLqIbhzrrls 

youtube-dl will merge format video '1920x1080' and audio only m4a format automatically. but I cannot do that with youtube-dl-interactive.

Suggestion : Include video only format in the options and merge video only format with best audio format .

Crashes when ran on CentOS 7

[twiclo@toph ~]$ node --version
v6.16.0
[twiclo@toph ~]$ npm --version
3.10.10

[twiclo@toph ~]$ youtube-dl-interactive https://www.youtube.com/watch?v=VheNpiSZxf0
/usr/lib/node_modules/youtube-dl-interactive/cli.js:15
async function init(args) {
      ^^^^^^^^

SyntaxError: Unexpected token function
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:549:28)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.runMain (module.js:611:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:160:9)

I ran sudo npm install -g https://github.com/synox/youtube-dl-interactive to install

label:enhancement using standalone youtube-dl

I have stopped installing youtube-dl (from time to time it just stop working because of python related installation/update). I now using it as standalone executable which I invoke like the following:

some-path/youtube-dl ..

Will be nice if the user can specify where to find the standalone youtube-dl executable.

youtube-dl-interactive --youtube-dl-path "path-to-standalone-executable" URL

I think the change should be straightforward. And I can implement the feature and submit a PR in this weekend.
Thank you for the work and let me know if you will be interested in this feature.

Use audio of video if available

If the selected video has audio, offer this as default in the audio menu.

youtube-dl -f '137+bestaudio' will probably download two files instead of one.

Unsupported URL: https://www.youtube.com/ after Update to 0.1.0

Hi, I was not longer able to use the tool and had to update it:

   │                                                │
   │        Update available 0.0.3 → 0.1.0          │
   │   Run npm i youtube-dl-interactive to update   │
   │                                                │
   ╰────────────────────────────────────────────────╯

I did that, but now I am getting:

✖ Error while loading metadata
Error: youtube-dl stopped with error:

WARNING: Falling back on generic information extractor.
ERROR: Unsupported URL: https://www.youtube.com/

    at Object.exports.getInfo (/usr/local/lib/node_modules/youtube-dl-interactive/ytdl-api.js:11:9)
    at fetchInfo (/usr/local/lib/node_modules/youtube-dl-interactive/cli.js:98:30)
    at run (/usr/local/lib/node_modules/youtube-dl-interactive/cli.js:67:11)
    at init (/usr/local/lib/node_modules/youtube-dl-interactive/cli.js:55:9)
    at Object.<anonymous> (/usr/local/lib/node_modules/youtube-dl-interactive/cli.js:59:1)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:643:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:839:10)

What am I doing wrong? Can I go back to the previous version and switch off the update check?

Feature: add presets

First question:

? Select presets or resolution:
- Best audio + video
- Smallest file size
- only audio
- 480x240
- 1024x720

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.