Skip to content

Commit

Permalink
Readme Update
Browse files Browse the repository at this point in the history
  • Loading branch information
黄锐灏 committed Jan 30, 2019
1 parent 0da443f commit 45b8da2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
iOS 8.0 +
有需要的功能或错误欢迎issue,笔者会及时更新

======================

WAVideoBox是一款基于AVFoundation视频操作框架,用短短几行代码就可完成各种简单及至复杂的视频操作命令。使用简单,性能高超~

尤其是不同分辩率视频的组合操作,如,给A视频变速,给B视频加水印,把C视频旋转...把ABC..视频合并,再操作合并视频...循环...
Expand Down Expand Up @@ -56,8 +54,10 @@ V 1.0.2 更新

[_videoBox appendVideoByPath:_testThreePath];
[_videoBox appendVideoByPath:_testTwoPath];
[_videoBox asyncFinishEditByFilePath:filePath complete:^(NSError *error) {
// do it
[_videoBox asyncFinishEditByFilePath:filePath progress:^(float progress) {
// do it 长时间的操作可以添加进度监控
} complete:^(NSError * error) {
// do it
}];

// 混音:给视频混上其他视频/音乐的声音 (19秒视频), 耗时 < 1秒
Expand Down Expand Up @@ -88,8 +88,10 @@ V 1.0.2 更新

[_videoBox rangeVideoByTimeRange:CMTimeRangeMake(CMTimeMake(2400, 600), CMTimeMake(3600, 600))];

[_videoBox asyncFinishEditByFilePath:filePath complete:^(NSError *error) {
// do it
[_videoBox asyncFinishEditByFilePath:filePath progress:^(float progress) {
// do it 长时间的操作可以添加进度监控
} complete:^(NSError * error) {
// do it
}];

骚操作
Expand Down Expand Up @@ -121,8 +123,10 @@ V 1.0.2 更新
[_videoBox commit];
[_videoBox gearBoxWithScale:2];

[_videoBox asyncFinishEditByFilePath:filePath complete:^(NSError * error) {
// do it
[_videoBox asyncFinishEditByFilePath:filePath progress:^(float progress) {
// do it 长时间的操作可以添加进度监控
} complete:^(NSError * error) {
// do it
}];

![骚操作](https://img-blog.csdnimg.cn/20190128171430628.gif)
Expand Down
Binary file not shown.

0 comments on commit 45b8da2

Please sign in to comment.