Coder Social home page Coder Social logo

Comments (3)

sethdeckard avatar sethdeckard commented on August 23, 2024 1

Hi @waterjump, I see what you were trying to do now. As you already realized it's outside the scope of this project since this library doesn't actually do anything with the MPEG-TS segments referenced in a media playlist and you would need to know the media information (codecs, bitrate, etc) to generate the attributes for a variant/master playlist. However, there are some other tools that can help you with just that. You might want to take a look at variantplaylistcreator, one of the CLI tools Apple makes available for working with HLS stuff.

Here's all of them: https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/UsingHTTPLiveStreaming/UsingHTTPLiveStreaming.html

from m3u8.

sethdeckard avatar sethdeckard commented on August 23, 2024

HI @waterjump, I'm a little confused by your request. A PlaylistItem represents the EXT-X-STREAM / EXT-X-I-FRAME-STREAM-INF tags in a master playlist, how do you build a instance of PlaylistItem from the attributes in a Playlist? Assuming the Playlist is a media playlist which would look something like this:

#EXTM3U
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-VERSION:4
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-DISCONTINUITY-SEQUENCE:8
#EXT-X-ALLOW-CACHE:NO
#EXT-X-TARGETDURATION:12
#EXTINF:11.344644,
1080-7mbps00000.ts
#EXT-X-DISCONTINUITY
#EXTINF:11.261233,
1080-7mbps00001.ts
#EXTINF:7.507489,
1080-7mbps00002.ts

Let me know if I've overlooked something in your request, which wouldn't surprise me. :-)

from m3u8.

waterjump avatar waterjump commented on August 23, 2024

Hi Seth,

Thanks for your quick response. After typing out several hundred words detailing my issue, I realized that the tags found in a media playlist are not congruent to the tags about a media playlist in the context of a master playlist, so it doesn't make sense to transmute between the two types like I thought it would. Basically, I rubber-ducked it and saved you a lot of reading I hope.

Closing

from m3u8.

Related Issues (9)

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.