{"id":13906258,"url":"https://github.com/Lensual/go-libav","last_synced_at":"2025-07-18T04:30:39.222Z","repository":{"id":57630515,"uuid":"407439908","full_name":"Lensual/go-libav","owner":"Lensual","description":"[WIP] Golang binding for FFmpeg and libav","archived":false,"fork":false,"pushed_at":"2024-01-21T19:51:19.000Z","size":450,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-07T23:47:26.281Z","etag":null,"topics":["ffmpeg","libav","libavcodec","libavformat","libavutil"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lensual.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":"2021-09-17T07:01:56.000Z","updated_at":"2024-07-29T14:31:22.000Z","dependencies_parsed_at":"2024-01-21T21:02:53.695Z","dependency_job_id":null,"html_url":"https://github.com/Lensual/go-libav","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lensual%2Fgo-libav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lensual%2Fgo-libav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lensual%2Fgo-libav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lensual%2Fgo-libav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lensual","download_url":"https://codeload.github.com/Lensual/go-libav/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226344592,"owners_count":17610172,"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":["ffmpeg","libav","libavcodec","libavformat","libavutil"],"created_at":"2024-08-06T23:01:32.135Z","updated_at":"2025-07-18T04:30:39.186Z","avatar_url":"https://github.com/Lensual.png","language":"Go","readme":"# DEPRECATED\n\n根本没有必要开发这个库。不如直接在Go项目里写C模块。对于不会C和不熟悉手动内存管理的Go开发者，不如直接调用命令。\n\n# go-libav\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/Lensual/go-libav.svg)](https://pkg.go.dev/github.com/Lensual/go-libav)\n![GitHub release (with filter)](https://img.shields.io/github/v/release/Lensual/go-libav?include_prereleases\u0026color=blue)\n![GitHub go.mod Go version (subdirectory of monorepo)](https://img.shields.io/github/go-mod/go-version/Lensual/go-libav)\n![Static Badge](https://img.shields.io/github/license/Lensual/go-libav)\n[![Go Report Card](https://goreportcard.com/badge/github.com/Lensual/go-libav)](https://goreportcard.com/report/github.com/Lensual/go-libav)\n![Static Badge](https://img.shields.io/badge/FFmpeg_version-6.1-purple)\n\n[English](./README.md) | [中文](./README_zh.md)\n\nGolang binding for [FFmpeg and libav](https://ffmpeg.org/).\n\n## Things to know\n\n1. This package is implemented using CGO and requires FFmpeg's header files and libraries for compilation.\n2. Due to well-known performance issues with CGO calls, it is recommended to use C/CPP to achieve your needs.\n\n## Getting Started\n\nPackage `go-libav/av*` are cgo bindings. Before using this package, you'd better to master the basic usage of the FFmpeg library.\n\nPackage `golibav/advance` is a secondary package to simplify use in go.\n\nNeed Golang version `1.21` and FFmpeg library version `6.1`.\n\nSet your environment variable if your library is not in the default directory.\n\n```env\n# using pkg-config\nPKG_CONFIG_PATH=\"/ffmpeg/lib/pkgconfig\"\n\n# or set compiler flags\nCGO_LDFLAGS=\"-L/ffmpeg/lib -lavcodec -lavdevice -lavfilter -lavformat -lavutil -lswresample -lswscale\"\nCGO_CFLAGS=\"-I/ffmpeg/include\"\n```\n\n## Examples\n\nCheck [advance/example](./advance/example) directory.\n\nTry examples With Docker\n\n```bash\n# Run container with Debian 13 (trixie).\nsudo docker run --rm -it debian:trixie\n# Install development environment.\napt install golang git\n# Clone project.\ngit clone https://github.com/Lensual/go-libav\n# Install FFmpeg development libraries.\napt install libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev\n# Build example like 'mux' and then run iut.\ncd go-libav/example/mux\ngo build .\n./mux ./test.mp4\n```\n\n## License\n\n[GNU Lesser General Public License version 2.1](./LICENSE)\n","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLensual%2Fgo-libav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLensual%2Fgo-libav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLensual%2Fgo-libav/lists"}