Skip to content

BoxDengJZ/AVFoundation_ray

Repository files navigation

AVFoundation 相关的技术点

相关博客 :

AVFoundation 视频常用套路: 视频合成与导出,拍视频手电筒,拍照闪光灯

拍照聚焦和曝光,AVFoundation 简明教程 site: juejin


The first one: Video Playback

增加播放完成后, 自动退出


The second one: Capturing Media, Images

拍照

01 , check project folder QuickPlay

02, check project folder PenguinCam

Updated related API to iOS 11 like AVCapturePhotoOutput, save photo to a custom album.

自定义相册,

更新 API , 到 AVCapturePhotoOutput

corrected challenge pdf errors.


3: Capturing Media: Video

拍视频

01 , check project folder QuickPlay

02, check project folder PenguinCam

03, check project folder PenguinCam_VIdeo

第三小节,就看这个工程 3_PenguinCam_VIdeo

PenguinCam_VIdeo

2016 年 iOS 10, 拍照的 flashMode 放入 AVCapturePhotoSettings 了,AVCapturePhotoSettings 对象具有原子性, atomic, 添加支持


04: Merging Media

01 , check project folder QuickPlay

02, check project folder PenguinCam

03, check project folder PenguinCam_VIdeo

04, check project folder 4_Merging_media

第四小节,就看这个工程 4_Merging_media

修改与优化 AVMutableVideoCompositionLayerInstruction 方法, 动态设置导出路径

Merging Media


More :

  • 合成导出后的文件 , 与原始文件的 尺寸,有很多不同。 合成,合成过的文件, 需要重新处理

  • 拍照不支持,放大缩小


AVFoundation_ray

Updates Ray Wenderlich's code for AVFoundation Video, from Swift 2 to Swift 4 , iOS 9 to iOS 11,

About

Updates Ray Wenderlich's code for AVFoundation Video

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published