当前位置:网站首页>Two ways to realize video recording based on avfoundation
Two ways to realize video recording based on avfoundation
2022-07-05 21:09:00 【ReyZhang】
Preface
AVCaptureSession
yes AVFoundation
Of Core class
, Used to manage Capture
object AVCaptureInput Of Video and audio input
, Coordinate Capture
Output AVCaptureOutput
.
AVCaptureOutput
There are two ways to output :
- One is to directly movieFileUrl Mode output ;
- One is based on raw data flow data Mode output of
The flow comparison diagram is as follows :
Here are two ways to record video :
Scheme 1 、AVCaptureSession + AVCaptureMovieFileOutput
1. establish AVCaptureSession
// Import AVFoundation.framework
#import
边栏推荐
- 【案例】元素的显示与隐藏的运用--元素遮罩
- ArcGIS栅格重采样方法介绍
- php中explode函数存在的陷阱
- 股票开户选择哪家证券公司比较好哪家平台更安全
- 获取前一天的js(时间戳转换)
- Research and development efficiency improvement practice of large insurance groups with 10000 + code base and 3000 + R & D personnel
- Is Kai Niu 2980 useful? Is it safe to open an account
- Determine the best implementation of horizontal and vertical screens
- postgis 安装地理信息扩展
- vant 源码解析之 utils/index.ts 工具函数
猜你喜欢
最长摆动序列[贪心练习]
LeetCode_哈希表_困难_149. 直线上最多的点数
基于flask写一个接口
Open source SPL eliminates tens of thousands of database intermediate tables
Introduction of ArcGIS grid resampling method
Clion-MinGW编译后的exe文件添加ico图标
Talk about my fate with some programming languages
Research and development efficiency improvement practice of large insurance groups with 10000 + code base and 3000 + R & D personnel
EasyExcel的读写操作
EasyExcel的讀寫操作
随机推荐
Monorepo management methodology and dependency security
获取前一天的js(时间戳转换)
【日常训练】729. 我的日程安排表 I
Selenium gets the verification code image in DOM
selenium 查找b或p标签的内容
基於flask寫一個接口
Why can't Chinese software companies produce products? Abandon the Internet after 00; Open source high-performance API gateway component of station B | weekly email exclusive to VIP members of Menon w
水泥胶黏剂BS 476-4 不燃性测试
wpf 获取datagrid 中指定行列的DataGridTemplateColumn中的控件
Phpstudy Xiaopi's MySQL Click to start and quickly flash back. It has been solved
Web Service简单入门示例
ts 之 属性的修饰符public、private、protect
Écrire une interface basée sur flask
驱动壳美国测试UL 2043 符合要求有哪些?
校招期间 准备面试算法岗位 该怎么做?
Clion-MinGW编译后的exe文件添加ico图标
PVC plastic sheets BS 476-6 determination of flame propagation properties
vant 源码解析 之深层 合并对象 深拷贝
树莓派4B上ncnn转换出来的模型调用时总是崩溃(Segment Fault)的原因
《SAS编程和数据挖掘商业案例》学习笔记# 19