GithubHelp home page GithubHelp logo

Comments (7)

Momo707577045 avatar Momo707577045 commented on June 4, 2024 1

I had fixed this problem by adding an muxjs.mp4.Transmuxer option 「duration」,can specify mp4 duration。
read PR #354 for more detail
the fixed result you can see my fork https://github.com/Momo707577045/mux.js

from mux.js.

gesinger avatar gesinger commented on June 4, 2024

Hey @shellvon , thanks for submitting the issue. Right now the duration value for fragmented mp4s should be ignored by the browsers, which is why we haven't added it. We'll take another look at the spec though to see if we'll run into any trouble by setting it (and if it might be a good idea).

If you just want to calculate the duration outside of the normal transmuxer flow, you should be able to use inspect https://github.com/videojs/mux.js/blob/master/lib/tools/ts-inspector.js#L490 to grab start and end values of a segment.

from mux.js.

shellvon avatar shellvon commented on June 4, 2024

@gesinger Thanks for your reply. inspect is a good choice to calculate the duration. I also know the correct duration according to the m3u8 file (parsed by m3u8-parser). but i have not way to change the correct duration to the tracks data until generate the mp4 file. Is there any API for this purpose ?

from mux.js.

gesinger avatar gesinger commented on June 4, 2024

Sorry for the delay, there is not an API for this right now @shellvon .

from mux.js.

shellvon avatar shellvon commented on June 4, 2024

All right ,thank you all the same, @gesinger.
Is there any discussion result now? I am still waiting for your good news.

from mux.js.

EternityForest avatar EternityForest commented on June 4, 2024

I believe that this is actually really important, because Chrome seems to use the duration as a heuristic to determine whether to enable low latency mode in MSE.

from mux.js.

HereOrCode avatar HereOrCode commented on June 4, 2024

Any updates?

from mux.js.

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.