Giter Site home page Giter Site logo

Comments (10)

warren-bank avatar warren-bank commented on August 23, 2024

I have a related question..

Is there any attribute in the resulting data structure to distinguish <MPD type="static" from <MPD type="dynamic"?

examples:

I'm looking at the JSON that was generated for each, and I'm not seeing any way to determine that one is VOD and the other is not. In fact, both include a minimumUpdatePeriod attribute, which (please correct me if I'm wrong) I believe should not be present in a "static" manifest.

from mpd-parser.

gesinger avatar gesinger commented on August 23, 2024

Good idea on creating more documentation around that @patrickkunka . We will look into adding some. Right now, to determine if the result is live vs VOD, you'd have to check the endList value on a playlist, where a truthy value means VOD, and its nonexistence or falsy value means live. This is because we've based the parsed object off of the m3u8-parser and https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.4

from mpd-parser.

warren-bank avatar warren-bank commented on August 23, 2024

I thought that attribute might be revealing, but for both of the manifests that I referenced (above).. the resulting data structures contain: "endList": true. Can you think of any reason that the "dynamic" dash manifest would also yield this value in the output?

from mpd-parser.

gesinger avatar gesinger commented on August 23, 2024

@warren-bank do you have a sample we can look at?

from mpd-parser.

warren-bank avatar warren-bank commented on August 23, 2024

Just did a quick skim of the code.. and this implies that the attribute value might be hard coded?

from mpd-parser.

warren-bank avatar warren-bank commented on August 23, 2024

I was using this dynamic manifest.. mainly because when I was looking for an example, I noticed that these samples use it.

from mpd-parser.

warren-bank avatar warren-bank commented on August 23, 2024

Oh ok.. an endList attribute occurs at different levels in the JSON.. each stream has its own. So I just need to get the value from the video stream.. not the top-level value. Gotcha..

from mpd-parser.

warren-bank avatar warren-bank commented on August 23, 2024

Off-topic question, but it's a quick one.. I'm curious about the name "toM3u8".. is there any functionality to generate HLS (m3u8) manifests (master and children) from a given DASH (mpd) input?

from mpd-parser.

gkatsev avatar gkatsev commented on August 23, 2024

Our internal JSON representation is sort of based off of HLS, and so we convert the MPD to that same JSON representation. We don't currently have a project that takes that JSON representation and produces an HLS or DASH output.

from mpd-parser.

warren-bank avatar warren-bank commented on August 23, 2024

Yes, that's what I thought. On the one hand, it would've been great if that functionality was included for free. On the other hand, I would've felt really dumb.. because the project in which I was using mpd-parser at the time was to do just that. (PS: seems to work nicely)

from mpd-parser.

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.