Giter VIP home page Giter VIP logo

Comments (8)

TheAMM avatar TheAMM commented on May 25, 2024 1

Fixed in 40cadfc.

from mpv_thumbnail_script.

TheAMM avatar TheAMM commented on May 25, 2024

oM36vTQOkP0 creates an edl:// (a... virtual file which can join several sources together) way too long to pass in a command line argument. I get 145451 bytes of it. 7rG7wPCcxmw is reasonably sized.

from mpv_thumbnail_script.

TheAMM avatar TheAMM commented on May 25, 2024

Hmh. I thought I could use a playlist to bypass the limit but mpv can only handle lines up to 8K characters long.
Sadly I'll have to allow mpv pass the original url through ytdl again. It'll really slow down the process, but eh.

from mpv_thumbnail_script.

zaza42 avatar zaza42 commented on May 25, 2024

Thx for the fast response again!

from mpv_thumbnail_script.

zaza42 avatar zaza42 commented on May 25, 2024

Hmm... Have you looked at the -a parameter of youtube-dl?

       -a, --batch-file FILE
              File containing URLs to download ('-' for stdin)

You can pass the url from file or stdin, and it doesn't have length limit.

from mpv_thumbnail_script.

TheAMM avatar TheAMM commented on May 25, 2024

The edl:// is not for youtube-dl, it's for mpv. I don't call ytdl itself ever, and even if stdin was the solution, it's not because it's a pain to try to pipe stuff in a cross-platform manner (because mpv doesn't open a shell).

The real solution is to have a script setup a pre-hook and let the script read the playlist with no character limits, but that's not a clean solution yet (workers should not pre-hook because there can be multiple, and the osc-client pre-hooking feels wrong and having a third script just to pre-hook the playlist is stupid).

from mpv_thumbnail_script.

zaza42 avatar zaza42 commented on May 25, 2024

or you can make a patch for mpv, or ask for a feature/changing in code.

from mpv_thumbnail_script.

TheAMM avatar TheAMM commented on May 25, 2024

150 kilobytes of a media path is ridiculous. It's not fair to expect mpv to parse playlist entries that long, and I have features I'd already want in that they're not really interested in - a patch to read up to and over 150 kilobyte lines would be scoffed at - there's just no reason to expect entries that long, especially so since this can be fixed with the hook script.
Plus then the functionality of the script would depend on the mpv version. Not all users have a cronjob for daily mpv-build sessions.

from mpv_thumbnail_script.

Related Issues (20)

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.