{"id":13467429,"url":"https://github.com/coderyi/YiVideoEditor","last_synced_at":"2025-03-26T02:31:23.059Z","repository":{"id":44355685,"uuid":"414238348","full_name":"coderyi/YiVideoEditor","owner":"coderyi","description":"YiVideoEditor is a library for rotating, cropping, adding layers (watermark) and as well as adding audio (music) to the videos.","archived":false,"fork":false,"pushed_at":"2021-10-06T14:12:20.000Z","size":232,"stargazers_count":129,"open_issues_count":1,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-20T13:32:36.159Z","etag":null,"topics":["audio","avfoundation","calayer","ios","ios-video-editor","swift","video","video-crop","video-editing","video-editor","video-processing","video-processor","videoeditor","watermark"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/coderyi.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":"2021-10-06T14:09:21.000Z","updated_at":"2024-12-31T01:49:52.000Z","dependencies_parsed_at":"2022-08-21T00:01:11.057Z","dependency_job_id":null,"html_url":"https://github.com/coderyi/YiVideoEditor","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/coderyi%2FYiVideoEditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderyi%2FYiVideoEditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderyi%2FYiVideoEditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderyi%2FYiVideoEditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderyi","download_url":"https://codeload.github.com/coderyi/YiVideoEditor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245576529,"owners_count":20638125,"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":["audio","avfoundation","calayer","ios","ios-video-editor","swift","video","video-crop","video-editing","video-editor","video-processing","video-processor","videoeditor","watermark"],"created_at":"2024-07-31T15:00:56.270Z","updated_at":"2025-03-26T02:31:23.025Z","avatar_url":"https://github.com/coderyi.png","language":"Swift","readme":"# YiVideoEditor\n\n[![CI Status](https://img.shields.io/travis/coderyi/YiVideoEditor.svg?style=flat)](https://travis-ci.org/coderyi/YiVideoEditor)\n[![Version](https://img.shields.io/cocoapods/v/YiVideoEditor.svg?style=flat)](https://cocoapods.org/pods/YiVideoEditor)\n[![License](https://img.shields.io/cocoapods/l/YiVideoEditor.svg?style=flat)](https://cocoapods.org/pods/YiVideoEditor)\n[![Platform](https://img.shields.io/cocoapods/p/YiVideoEditor.svg?style=flat)](https://cocoapods.org/pods/YiVideoEditor)\n\n\nYiVideoEditor is a library for rotating, cropping, adding layers (watermark) and as well as adding audio (music) to the videos.\n\nYiVideoEditor是一个视频编辑库。支持旋转、裁剪、增加图层（水印）、增加音频。\n\n\n## Installation\n\nYiVideoEditor is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'YiVideoEditor'\n```\n\n## Usage\n\n```\nlet videoEditor = YiVideoEditor(videoURL: videoURL)\nvideoEditor.rotate(rotateDegree: .rotateDegree90)\nvideoEditor.crop(cropFrame: CGRect(x: 10, y: 10, width: 300, height: 200))\nvideoEditor.addLayer(layer: layer)\nvideoEditor.addAudio(asset: audioAsset, startingAt: 1, trackDuration: 3)\nvideoEditor.export(exportURL: exportUrl) { [weak self] (session) in\n    guard let `self` = self else {\n        return\n    }\n    if session.status == .completed {\n        let vc = VideoViewController(videoUrl: exportUrl)\n        self.navigationController?.pushViewController(vc, animated: false)\n    }\n}\n\n```\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n\n\n\n## License\n\nYiVideoEditor is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":["Libs"],"sub_categories":["Video"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderyi%2FYiVideoEditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderyi%2FYiVideoEditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderyi%2FYiVideoEditor/lists"}