{"id":15722369,"url":"https://github.com/defold/extension-videoplayer-mpeg","last_synced_at":"2025-10-20T04:31:45.184Z","repository":{"id":246868855,"uuid":"822413055","full_name":"defold/extension-videoplayer-mpeg","owner":"defold","description":"Native extension to play back mpeg1 video using pl_mpeg","archived":false,"fork":false,"pushed_at":"2024-09-12T20:45:50.000Z","size":13858,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-28T16:41:03.511Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/defold.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":"2024-07-01T05:35:50.000Z","updated_at":"2024-09-12T20:45:33.000Z","dependencies_parsed_at":"2024-08-18T07:24:17.394Z","dependency_job_id":"b1b1bfe9-ccdf-4a07-89f0-8a62d2e6eeed","html_url":"https://github.com/defold/extension-videoplayer-mpeg","commit_stats":null,"previous_names":["defold/extension-videoplayer-mpeg"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fextension-videoplayer-mpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fextension-videoplayer-mpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fextension-videoplayer-mpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fextension-videoplayer-mpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defold","download_url":"https://codeload.github.com/defold/extension-videoplayer-mpeg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237267937,"owners_count":19282311,"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":[],"created_at":"2024-10-03T22:07:06.117Z","updated_at":"2025-10-20T04:31:38.879Z","avatar_url":"https://github.com/defold.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# extension-videoplayer-mpeg\nNative extension to play back MPEG1 video using [pl_mpeg](https://github.com/phoboslab/pl_mpeg).\n\n## Usage\n\n```lua\nlocal buffer = resource.load(filename)\n\n-- open video\nlocal handle, err = mpeg.open(buffer, { loop = true })\nif err then\n\terror(err)\n\treturn\nend\n\n-- get video information\nlocal info = mpeg.get_info(handle)\nprint(info.width, info.height)\t-- video width and height\nprint(info.time, info.duration)\t-- current playback time and video duration\n\n-- get the buffer where video frames will be decoded\nlocal framebuffer = mpeg.get_frame(handle)\n\n-- advance playback and decode a new frame\nmpeg.decode(handle, seconds)\n\n-- seek to exactly 10 seconds and decode a new frame\nlocal exact = true\nmpeg.seek(handle, 10, exact)\n\n-- close video and release all resources\nmpeg.close(handle)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefold%2Fextension-videoplayer-mpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefold%2Fextension-videoplayer-mpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefold%2Fextension-videoplayer-mpeg/lists"}