{"id":13460060,"url":"https://github.com/globocom/m3u8","last_synced_at":"2025-05-11T05:48:58.513Z","repository":{"id":3134059,"uuid":"4162438","full_name":"globocom/m3u8","owner":"globocom","description":"Python m3u8 Parser for HTTP Live Streaming (HLS) Transmissions","archived":false,"fork":false,"pushed_at":"2025-01-31T21:13:34.000Z","size":634,"stargazers_count":2149,"open_issues_count":31,"forks_count":481,"subscribers_count":147,"default_branch":"master","last_synced_at":"2025-05-11T05:48:51.559Z","etag":null,"topics":["hls","m3u8","parser","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/globocom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-04-27T20:56:32.000Z","updated_at":"2025-05-10T00:26:51.000Z","dependencies_parsed_at":"2023-07-06T01:55:38.520Z","dependency_job_id":"675c019d-97f6-4573-81ae-1562e956f937","html_url":"https://github.com/globocom/m3u8","commit_stats":{"total_commits":472,"total_committers":96,"mean_commits":4.916666666666667,"dds":0.8177966101694916,"last_synced_commit":"b6fd525e1168a850b99a6121d6756939ae04b434"},"previous_names":[],"tags_count":60,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fm3u8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fm3u8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fm3u8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fm3u8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/globocom","download_url":"https://codeload.github.com/globocom/m3u8/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253523732,"owners_count":21921818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hls","m3u8","parser","python"],"created_at":"2024-07-31T10:00:34.832Z","updated_at":"2025-05-11T05:48:58.492Z","avatar_url":"https://github.com/globocom.png","language":"Python","readme":"![image](https://github.com/globocom/m3u8/actions/workflows/main.yml/badge.svg) [![image](https://badge.fury.io/py/m3u8.svg)](https://badge.fury.io/py/m3u8)\n\n# m3u8\n\nPython [m3u8](https://tools.ietf.org/html/rfc8216) parser.\n\n# Documentation\n\n## Loading a playlist\n\nTo load a playlist into an object from uri, file path or directly from\nstring, use the `load/loads` functions:\n\n```python\nimport m3u8\n\nplaylist = m3u8.load('http://videoserver.com/playlist.m3u8')  # this could also be an absolute filename\nprint(playlist.segments)\nprint(playlist.target_duration)\n\n# if you already have the content as string, use\n\nplaylist = m3u8.loads('#EXTM3U8 ... etc ... ')\n```\n\n## Dumping a playlist\n\nTo dump a playlist from an object to the console or a file, use the\n`dump/dumps` functions:\n\n``` python\nimport m3u8\n\nplaylist = m3u8.load('http://videoserver.com/playlist.m3u8')\nprint(playlist.dumps())\n\n# if you want to write a file from its content\n\nplaylist.dump('playlist.m3u8')\n```\n\n# Supported tags\n\n-   [\\#EXT-X-TARGETDURATION](https://tools.ietf.org/html/rfc8216#section-4.3.3.1)\n-   [\\#EXT-X-MEDIA-SEQUENCE](https://tools.ietf.org/html/rfc8216#section-4.3.3.2)\n-   [\\#EXT-X-DISCONTINUITY-SEQUENCE](https://tools.ietf.org/html/rfc8216#section-4.3.3.3)\n-   [\\#EXT-X-PROGRAM-DATE-TIME](https://tools.ietf.org/html/rfc8216#section-4.3.2.6)\n-   [\\#EXT-X-MEDIA](https://tools.ietf.org/html/rfc8216#section-4.3.4.1)\n-   [\\#EXT-X-PLAYLIST-TYPE](https://tools.ietf.org/html/rfc8216#section-4.3.3.5)\n-   [\\#EXT-X-KEY](https://tools.ietf.org/html/rfc8216#section-4.3.2.4)\n-   [\\#EXT-X-STREAM-INF](https://tools.ietf.org/html/rfc8216#section-4.3.4.2)\n-   [\\#EXT-X-VERSION](https://tools.ietf.org/html/rfc8216#section-4.3.1.2)\n-   [\\#EXT-X-ALLOW-CACHE](https://datatracker.ietf.org/doc/html/draft-pantos-http-live-streaming-07#section-3.3.6)\n-   [\\#EXT-X-ENDLIST](https://tools.ietf.org/html/rfc8216#section-4.3.3.4)\n-   [\\#EXTINF](https://tools.ietf.org/html/rfc8216#section-4.3.2.1)\n-   [\\#EXT-X-I-FRAMES-ONLY](https://tools.ietf.org/html/rfc8216#section-4.3.3.6)\n-   [\\#EXT-X-BITRATE](https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis#section-4.4.4.8)\n-   [\\#EXT-X-BYTERANGE](https://tools.ietf.org/html/rfc8216#section-4.3.2.2)\n-   [\\#EXT-X-I-FRAME-STREAM-INF](https://tools.ietf.org/html/rfc8216#section-4.3.4.3)\n-   [\\#EXT-X-IMAGES-ONLY](https://github.com/image-media-playlist/spec/blob/master/image_media_playlist_v0_4.pdf)\n-   [\\#EXT-X-IMAGE-STREAM-INF](https://github.com/image-media-playlist/spec/blob/master/image_media_playlist_v0_4.pdf)\n-   [\\#EXT-X-TILES](https://github.com/image-media-playlist/spec/blob/master/image_media_playlist_v0_4.pdf)\n-   [\\#EXT-X-DISCONTINUITY](https://tools.ietf.org/html/rfc8216#section-4.3.2.3)\n-   \\#EXT-X-CUE-OUT\n-   \\#EXT-X-CUE-OUT-CONT\n-   \\#EXT-X-CUE-IN\n-   \\#EXT-X-CUE-SPAN\n-   \\#EXT-OATCLS-SCTE35\n-   [\\#EXT-X-INDEPENDENT-SEGMENTS](https://tools.ietf.org/html/rfc8216#section-4.3.5.1)\n-   [\\#EXT-X-MAP](https://tools.ietf.org/html/rfc8216#section-4.3.2.5)\n-   [\\#EXT-X-START](https://tools.ietf.org/html/rfc8216#section-4.3.5.2)\n-   [\\#EXT-X-SERVER-CONTROL](https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis#section-4.4.3.8)\n-   [\\#EXT-X-PART-INF](https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis#section-4.4.3.7)\n-   [\\#EXT-X-PART](https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis#section-4.4.4.9)\n-   [\\#EXT-X-RENDITION-REPORT](https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis#section-4.4.5.4)\n-   [\\#EXT-X-SKIP](https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis#section-4.4.5.2)\n-   [\\#EXT-X-SESSION-DATA](https://tools.ietf.org/html/rfc8216#section-4.3.4.4)\n-   [\\#EXT-X-PRELOAD-HINT](https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.5.3)\n-   [\\#EXT-X-SESSION-KEY](https://tools.ietf.org/html/rfc8216#section-4.3.4.5)\n-   [\\#EXT-X-DATERANGE](https://tools.ietf.org/html/rfc8216#section-4.3.2.7)\n-   [\\#EXT-X-GAP](https://tools.ietf.org/html/draft-pantos-hls-rfc8216bis-05#section-4.4.2.7)\n-   [\\#EXT-X-CONTENT-STEERING](https://tools.ietf.org/html/draft-pantos-hls-rfc8216bis-10#section-4.4.6.64)\n\n# Frequently Asked Questions\n\n-   [FAQ](https://github.com/globocom/m3u8/wiki/FAQ)\n\n# Running Tests\n\n``` bash\n$ ./runtests\n```\n\n# Contributing\n\nAll contributions are welcome, but we will merge a pull request if, and\nonly if, it\n\n- Has tests\n- Follows the code conventions\n\nIf you plan to implement a new feature or something that will take more\nthan a few minutes, please open an issue to make sure we don't work on\nthe same thing.\n","funding_links":[],"categories":["Audio","语言资源库","资源列表","Python","HLS","HarmonyOS","Language and platform specific libraries","Awesome Python"],"sub_categories":["python","音频","Talks Presentations Podcasts","Windows Manager","Python","Audio"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobocom%2Fm3u8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglobocom%2Fm3u8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobocom%2Fm3u8/lists"}