{"id":16714239,"url":"https://github.com/flier/pyvpx","last_synced_at":"2025-04-10T06:09:49.535Z","repository":{"id":1982234,"uuid":"2914015","full_name":"flier/pyvpx","owner":"flier","description":"Python Binding of WebM VP8 Codec","archived":false,"fork":false,"pushed_at":"2011-12-22T14:52:17.000Z","size":140,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T07:13:53.596Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"aspnet/EntityFramework","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flier.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-05T03:11:44.000Z","updated_at":"2023-04-15T18:35:15.000Z","dependencies_parsed_at":"2022-07-09T07:46:17.122Z","dependency_job_id":null,"html_url":"https://github.com/flier/pyvpx","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fpyvpx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fpyvpx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fpyvpx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fpyvpx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flier","download_url":"https://codeload.github.com/flier/pyvpx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166925,"owners_count":21058481,"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-12T20:49:59.451Z","updated_at":"2025-04-10T06:09:49.512Z","avatar_url":"https://github.com/flier.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"PyVPX is a Python Binding of the WebM VP8 Codec, it supports encode or decode a sequence of video frames\n\nYou could use a Encoder instance to encode a Image object, the image format should be vpx.VPX_IMG_FMT_I420 or vpx.VPX_IMG_FMT_YV12.\n\n    frame_count = 1\n\n    with Encoder(320, 240) as encoder:\n        with Image(320, 240) as img:\n            img.clear()\n\n            # fetch and fill the image data buffer\n\n            for kind, packet in encoder.encode(img, frame_count):\n                if kind == vpx.VPX_CODEC_CX_FRAME_PKT:\n                    print \"sent a frame packet with %d bytes\" % len(packet)\n\n            frame_count += 1\n\nYou could use a Decoder instance to decode a sequence of packets for the video frames.\n\n    data = ... # fetch the packet (readable buffer object or string)\n\n    with Decoder() as decoder:\n        for img in decoder.decode(data):\n            print \"received a %dx%d frame with %d bytes\" % (img.width, img.height, len(img.data))\n\nplease check the unit test or \u003chttps://github.com/flier/pyvpx\u003e for more detail.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflier%2Fpyvpx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflier%2Fpyvpx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflier%2Fpyvpx/lists"}