{"id":22353750,"url":"https://github.com/rosberry/ffmpeg","last_synced_at":"2025-03-26T12:27:52.339Z","repository":{"id":88763750,"uuid":"293715873","full_name":"rosberry/ffmpeg","owner":"rosberry","description":"Wrapper over ffmpeg","archived":false,"fork":false,"pushed_at":"2021-07-01T03:42:36.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T13:43:04.542Z","etag":null,"topics":["golang","library"],"latest_commit_sha":null,"homepage":"","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/rosberry.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":"2020-09-08T06:02:36.000Z","updated_at":"2022-10-17T02:27:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea8b901e-8c2c-4f10-8ab4-38b5749067c0","html_url":"https://github.com/rosberry/ffmpeg","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/rosberry%2Fffmpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosberry%2Fffmpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosberry%2Fffmpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosberry%2Fffmpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rosberry","download_url":"https://codeload.github.com/rosberry/ffmpeg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245652729,"owners_count":20650545,"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":["golang","library"],"created_at":"2024-12-04T13:09:39.397Z","updated_at":"2025-03-26T12:27:52.323Z","avatar_url":"https://github.com/rosberry.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FFMPEG\n\nLibrary wrapper over ffmpeg.\n\n## Install\n```golang\nimport \"github.com/rosberry/ffmpeg\"\n```\n\n## Usage\nInit:\n```golang\nff := ffmpeg.New().SetPath(\"lib/ffmpeg\")\n```\n\n\n*Functions:*\n\nGet duration with encoding\n```golang\nfunc (f *FFMpeg) Duration(filePath string) (*time.Duration, error)\n```\n\nGet duration without encoding (not for all codecs)\n```golang\nfunc (f *FFMpeg) SimpleDuration(filePath string) (*time.Duration, error)\n```\n\nTrim video\n```golang\nfunc (f *FFMpeg) TrimVideo(filePath string, toFilePath string, start int, duration int) error\n```\n\nGet file bitrate\n```golang\nfunc (f *FFMpeg) Bitrate(filePath string) (*string, error)\n```\n\nGet file title\n```golang\nfunc (f *FFMpeg) Title(filePath string) (*string, error)\n```\n\nGet file size\n```golang\nfunc (f *FFMpeg) Size(filePath string) (uint, uint, error)\n```\n\nCreate video thumbnail\n```golang\nfunc (f *FFMpeg) CreateThumbnail(filePath string, toFilePath string, width int, height int) error\n```\n\n## About\n\n\u003cimg src=\"https://github.com/rosberry/Foundation/blob/master/Assets/full_logo.png?raw=true\" height=\"100\" /\u003e\n\nThis project is owned and maintained by [Rosberry](http://rosberry.com). We build mobile apps for users worldwide 🌏.\n\nCheck out our [open source projects](https://github.com/rosberry), read [our blog](https://medium.com/@Rosberry) or give us a high-five on 🐦 [@rosberryapps](http://twitter.com/RosberryApps).\n\n## License\n\nThis project is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosberry%2Fffmpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frosberry%2Fffmpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosberry%2Fffmpeg/lists"}