{"id":13906237,"url":"https://github.com/vansante/go-ffprobe","last_synced_at":"2025-05-16T15:06:39.159Z","repository":{"id":39534446,"uuid":"90026109","full_name":"vansante/go-ffprobe","owner":"vansante","description":"Library to easily get the ffprobe output of a given file","archived":false,"fork":false,"pushed_at":"2024-12-11T07:41:27.000Z","size":8880,"stargazers_count":194,"open_issues_count":1,"forks_count":50,"subscribers_count":4,"default_branch":"v2","last_synced_at":"2025-04-12T14:16:12.369Z","etag":null,"topics":["ffmpeg","ffmpeg-wrapper","ffprobe","go","golang","golang-library"],"latest_commit_sha":null,"homepage":null,"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/vansante.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,"zenodo":null}},"created_at":"2017-05-02T11:29:39.000Z","updated_at":"2025-04-09T16:29:37.000Z","dependencies_parsed_at":"2024-06-18T13:44:52.527Z","dependency_job_id":"6f9cfd3a-a9af-4835-98a6-defd0d08403f","html_url":"https://github.com/vansante/go-ffprobe","commit_stats":{"total_commits":68,"total_committers":11,"mean_commits":6.181818181818182,"dds":0.4852941176470589,"last_synced_commit":"81f7fcbea8288388eb5971753fb786747f108bb6"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vansante%2Fgo-ffprobe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vansante%2Fgo-ffprobe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vansante%2Fgo-ffprobe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vansante%2Fgo-ffprobe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vansante","download_url":"https://codeload.github.com/vansante/go-ffprobe/tar.gz/refs/heads/v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254553959,"owners_count":22090417,"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","ffmpeg-wrapper","ffprobe","go","golang","golang-library"],"created_at":"2024-08-06T23:01:31.766Z","updated_at":"2025-05-16T15:06:39.140Z","avatar_url":"https://github.com/vansante.png","language":"Go","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# go-ffprobe\n\nSmall library for executing an ffprobe process on a given file and getting an easy to use struct\nrepresenting the returned ffprobe data.\n\n## Installation\n\n```\ngo get gopkg.in/vansante/go-ffprobe.v2\n```\n\n## Documentation\n\nTake a look at the autogenerated documentation:\n\nhttps://pkg.go.dev/gopkg.in/vansante/go-ffprobe.v2\n\n## Basic usage\n\nTo get a quick the quick data on a video file:\n\n```golang\nctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)\ndefer cancelFn()\n\ndata, err := ffprobe.ProbeURL(ctx, \"/path/to/file.mp4\")\nif err != nil {\n    log.Panicf(\"Error getting data: %v\", err)\n}\n```\n\nTo get the ffprobe data for a video file that is accessible via HTTP, you can use the same\ncommand, but with an HTTP URL.\n\nTo get the data of a file you have an `io.Reader` for, use:\n\n```golang\nctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)\ndefer cancelFn()\n\nfileReader, err := os.Open(\"/path/to/file.mp4\")\nif err != nil {\n    log.Panicf(\"Error opening test file: %v\", err)\n}\n\ndata, err := ffprobe.ProbeReader(ctx, fileReader)\nif err != nil {\n    log.Panicf(\"Error getting data: %v\", err)\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvansante%2Fgo-ffprobe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvansante%2Fgo-ffprobe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvansante%2Fgo-ffprobe/lists"}