Coder Social home page Coder Social logo

Comments (8)

madphysicist avatar madphysicist commented on May 19, 2024 1

@leandromoreira I'm assuming you meant @michalSolarz.

from ffmpeg-libav-tutorial.

leandromoreira avatar leandromoreira commented on May 19, 2024

What I'd recommend is (what you're already aware 🤓 ) to follow along the ffmpeg's dash demuxer source code and try to see where you would add the code and then patch it and build it (or even try to submit it to FFmpeg)

I really don't know if the scenario where you just offer the buffer io (avio) and try to proxy the manifest and decrypt the segments is easier. =/

from ffmpeg-libav-tutorial.

michalSolarz avatar michalSolarz commented on May 19, 2024

Hmm, thats the way I would like to follow but I don't know how to use my newly created demuxer code. How could I force ffmpeg to use it? Because for now the only way of overriding something I've found was using custom read_data function. Am I missing something? What is a recommended way of using custom demuxer implementation?

from ffmpeg-libav-tutorial.

leandromoreira avatar leandromoreira commented on May 19, 2024

I'm under the impression that if you override the current implementation and build/compile ffmpeg from scratch it'll work.

I think if you plan to add a new demuxer you can inspire yourself by looking in patches how people added (in this case a codec but it looks similar I suppose) or grep with git the addition of a new demuxer.

from ffmpeg-libav-tutorial.

leandromoreira avatar leandromoreira commented on May 19, 2024

Here's the addition of dav1d (av1 codec) https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/beaa350e24167f4ff31275a6114693f5ce7cd409 so you might help you

from ffmpeg-libav-tutorial.

michalSolarz avatar michalSolarz commented on May 19, 2024

Hi, I've managed to find some nice example of dash player in libdash sources and now I'm following it and reimplementing my own player so I probably won't add it directly in ffmpeg but add decryption after buffering chunk. But thanks for help :)

from ffmpeg-libav-tutorial.

leandromoreira avatar leandromoreira commented on May 19, 2024

@madphysicist that's awesome, if you can just share it on github so more people might learn as you did.

from ffmpeg-libav-tutorial.

michalSolarz avatar michalSolarz commented on May 19, 2024

@leandromoreira here is a libdash repository: https://github.com/bitmovin/libdash and one day I'll probably create a PR

from ffmpeg-libav-tutorial.

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.