Giter Club home page Giter Club logo

Comments (11)

litt1e-p avatar litt1e-p commented on May 31, 2024 2

@kewlbear it works ! thanks a lot, you are the best

from youtubedl.

kewlbear avatar kewlbear commented on May 31, 2024

from youtubedl.

litt1e-p avatar litt1e-p commented on May 31, 2024

but how can ffmpeg/ffprobe location path pass to python lib function after them embeded?

from youtubedl.

kewlbear avatar kewlbear commented on May 31, 2024

Oh, I see. I've implemented intercepting Popen method calls and calling embedded ffmpeg. But I forgot to push it to GitHub. Will push it soon.

from youtubedl.

litt1e-p avatar litt1e-p commented on May 31, 2024

that's great! thanks.

from youtubedl.

kewlbear avatar kewlbear commented on May 31, 2024

Pushed it! Here I call ffmpeg embedded as a function:

https://github.com/kewlbear/YoutubeDL-iOS/blob/c9f755e5a164f1c33b8b2573b789fdb070ec5b3d/Sources/YoutubeDL/YoutubeDL.swift#L433

from youtubedl.

litt1e-p avatar litt1e-p commented on May 31, 2024

great, but how to use it, may i ask for an example code?

from youtubedl.

kewlbear avatar kewlbear commented on May 31, 2024

Your original code should work. But as I said ffprobe is not there. So if the operation requires ffprobe it will probably fail.

from youtubedl.

litt1e-p avatar litt1e-p commented on May 31, 2024

you're right, it does show ffprobe error only now:

yt_dlp.utils.PostProcessingError: WARNING: unable to obtain file audio codec with ffprobe
startDownload(url:) Error Domain=App Code=1 "ERROR: Postprocessing: WARNING: unable to obtain file audio codec with ffprobe" UserInfo={NSLocalizedDescription=ERROR: Postprocessing: WARNING: unable to obtain file audio codec with ffprobe}

from youtubedl.

kewlbear avatar kewlbear commented on May 31, 2024

I've added support for ffprobe and mp3lame. You should be able to do it by upgrading YoutubeDL-iOS package dependency.

from youtubedl.

litt1e-p avatar litt1e-p commented on May 31, 2024

that is great!I will try it later. Thanks again!

from youtubedl.

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.