{"id":13907647,"url":"https://github.com/alfg/mp4","last_synced_at":"2025-04-09T13:08:46.619Z","repository":{"id":45938197,"uuid":"145272259","full_name":"alfg/mp4","owner":"alfg","description":":movie_camera: Basic MP4 reader in Go! CLI + Golang Package for ISO/IEC 14496-12 - ISO Base Media File Format","archived":false,"fork":false,"pushed_at":"2021-11-26T09:33:31.000Z","size":3744,"stargazers_count":128,"open_issues_count":6,"forks_count":22,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T07:57:46.247Z","etag":null,"topics":["iso14496","media","mp4","mpeg-4","parser","quicktime","video"],"latest_commit_sha":null,"homepage":"https://github.com/alfg/mp4","language":"Go","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/alfg.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":"2018-08-19T04:14:17.000Z","updated_at":"2025-03-12T12:11:21.000Z","dependencies_parsed_at":"2022-08-12T12:40:21.144Z","dependency_job_id":null,"html_url":"https://github.com/alfg/mp4","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfg%2Fmp4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfg%2Fmp4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfg%2Fmp4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfg%2Fmp4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alfg","download_url":"https://codeload.github.com/alfg/mp4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045233,"owners_count":21038553,"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":["iso14496","media","mp4","mpeg-4","parser","quicktime","video"],"created_at":"2024-08-06T23:02:04.015Z","updated_at":"2025-04-09T13:08:46.594Z","avatar_url":"https://github.com/alfg.png","language":"Go","readme":"# MP4\nBasic MP4 reader in Go!\n\nCLI and library for ISO/IEC 14496-12 - ISO Base Media File Format\n\nhttps://godoc.org/github.com/alfg/mp4\n\n[![Build Status](https://travis-ci.org/alfg/mp4.svg?branch=master)](https://travis-ci.org/alfg/mp4) \n[![Build status](https://ci.appveyor.com/api/projects/status/63ky9q869j8xetst?svg=true)](https://ci.appveyor.com/project/alfg/mp4)\n[![GoDoc](https://godoc.org/github.com/alfg/mp4?status.svg)](https://godoc.org/github.com/alfg/mp4)\n[![Go Report Card](https://goreportcard.com/badge/github.com/alfg/mp4)](https://goreportcard.com/report/github.com/alfg/mp4)\n\n## Usage\n\n```\ngo get -u github.com/alfg/mp4\n```\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"os\"\n    \"github.com/alfg/mp4\"\n)\n\nfunc main() {\n    file, err := os.Open(\"test/tears-of-steel.mp4\")\n    if err != nil {\n        panic(err)\n    }\n    defer file.Close()\n\n    info, err := file.Stat()\n    if err != nil {\n        panic(err)\n    }\n    size := info.Size()\n\n    mp4, _ := mp4.OpenFromReader(file, size)\n    file.Close()\n    fmt.Println(file.Ftyp.Name)\n    fmt.Println(file.Ftyp.MajorBrand)\n}\n```\n\nSee [examples/](/examples/) for more examples.\n\n## Develop \n\n```\ngit clone https://github.com/alfg/mp4.git\ngo run example\\example.go\n```\n\nOr build the CLI:\n```\ngo build -o mp4info cmd\\mp4info\\mp4info.go\nmp4info -i test\\tears-of-steel.mp4\n```\n\n## Documentation\n* [GoDocs](https://godoc.org/github.com/alfg/mp4)\n\n## License\nMIT\n","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falfg%2Fmp4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falfg%2Fmp4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falfg%2Fmp4/lists"}