Comments (3)
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.
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.
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)
- get segment from TimeItem HOT 4
- Support for Name attribute in #EXT-X-STREAM-INF HOT 1
- create mp4 file from playlist HOT 2
- M3u8::Playlist.read("path/to/file") fails silently HOT 2
- #EXT-X-ENDLIST needs to be set when the stream finishes HOT 3
- #EXT-X-PROGRAM-DATE-TIME missing? HOT 1
- Request/bug: Support iTunes' m3u8 files HOT 1
- Elegant way to find items by criteria
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from m3u8.