{"id":18821632,"url":"https://github.com/octu0/go-xevd","last_synced_at":"2026-01-18T09:30:18.010Z","repository":{"id":61624392,"uuid":"538494133","full_name":"octu0/go-xevd","owner":"octu0","description":"Go bindings for mpeg5/xevd","archived":false,"fork":false,"pushed_at":"2022-09-20T14:11:31.000Z","size":327,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-12-30T03:43:19.711Z","etag":null,"topics":["binding","evc","golang","video-codec"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/octu0/go-xevd","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/octu0.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}},"created_at":"2022-09-19T12:36:09.000Z","updated_at":"2023-03-07T07:18:35.000Z","dependencies_parsed_at":"2022-10-20T10:00:44.999Z","dependency_job_id":null,"html_url":"https://github.com/octu0/go-xevd","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/octu0%2Fgo-xevd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fgo-xevd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fgo-xevd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fgo-xevd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octu0","download_url":"https://codeload.github.com/octu0/go-xevd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758900,"owners_count":19692041,"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":["binding","evc","golang","video-codec"],"created_at":"2024-11-08T00:44:58.500Z","updated_at":"2026-01-18T09:30:17.938Z","avatar_url":"https://github.com/octu0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `go-xevd`\n\n[![License](https://img.shields.io/github/license/octu0/go-xevd)](https://github.com/octu0/go-xevd/blob/master/LICENSE)\n[![GoDoc](https://godoc.org/github.com/octu0/go-xevd?status.svg)](https://godoc.org/github.com/octu0/go-xevd)\n[![Go Report Card](https://goreportcard.com/badge/github.com/octu0/go-xevd)](https://goreportcard.com/report/github.com/octu0/go-xevd)\n[![Releases](https://img.shields.io/github/v/release/octu0/go-xevd)](https://github.com/octu0/go-xevd/releases)\n\nGo bindings for [mpeg5/xevd](https://github.com/mpeg5/xevd)  \nMPEG-5 EVC decoder.\n\n## Requirements\n\nrequires xevd [install](https://github.com/mpeg5/xevd#how-to-build) on your system\n\n```\n$ git clone https://github.com/mpeg5/xevd.git\n$ cd xevd\n$ mkdir build\n$ cd build\n$ cmake .. -DSET_PROF=BASE\n$ make\n$ make install\n```\n\n## Usage\n\n### Decode\n\n```go\nimport \"github.com/octu0/go-xevd\"\n\nfunc main() {\n\tdecoder, err := xevd.CreateDefaultBaselineDecoder()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer decoder.Close()\n\n\tf, err := os.Open(\"./testdata/src.evc\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer f.Close()\n\n\tbr := bufio.NewReader(f)\n\tif err := decoder.DecodeStream(br, func(buf *xevd.DecodeImageBuffer) {\n\t\tdefer buf.Close()\n\n\t\tfmt.Printf(\"Frame:%s Slice:%s color:%s\\n\", buf.NALUnit, buf.Slice, buf.ColorSpace)\n\t\t// =\u003e Frame:IDR Slice:I color:YCbCr420\n\n\t\tif err := saveImage(buf.Img); err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t}); err != nil {\n\t\tpanic(err)\n\t}\n}\n\nfunc saveImage(img image.Image) (string, error) {\n\tout, err := os.CreateTemp(\"/tmp\", \"out*.png\")\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tdefer out.Close()\n\n\tif err := png.Encode(out, img); err != nil {\n\t\treturn \"\", err\n\t}\n\treturn out.Name(), nil\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctu0%2Fgo-xevd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctu0%2Fgo-xevd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctu0%2Fgo-xevd/lists"}