当前位置:网站首页>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
边栏推荐
- POJ 3414 pots (bfs+ clues)
- What are the requirements of UL 2043 test for drive housing in the United States?
- Aitm 2-0003 horizontal combustion test
- Research and development efficiency improvement practice of large insurance groups with 10000 + code base and 3000 + R & D personnel
- ClickHouse 复制粘贴多行sql语句报错
- Clion configures Visual Studio (MSVC) and JOM multi-core compilation
- Clion-MinGW编译后的exe文件添加ico图标
- 使用WebAssembly在浏览器端操作Excel
- Binary search
- MySQL deep paging optimization with tens of millions of data, and online failure is rejected!
猜你喜欢
Pytorch实战——MNIST数据集手写数字识别
事项研发工作流全面优化|Erda 2.2 版本如“七”而至
Using webassembly to operate excel on the browser side
五层网络协议
第05章_存储引擎
Open source SPL eliminates tens of thousands of database intermediate tables
ClickHouse 复制粘贴多行sql语句报错
基于flask写一个接口
MySQL deep paging optimization with tens of millions of data, and online failure is rejected!
显示屏DIN 4102-1 Class B1防火测试要求
随机推荐
MySQL 千万数据量深分页优化, 拒绝线上故障!
Deep merge object deep copy of vant source code parsing
Influence of oscilloscope probe on measurement bandwidth
Golang(1)|从环境准备到快速上手
Clion-MinGW编译后的exe文件添加ico图标
postgis 安装地理信息扩展
Reading and writing operations of easyexcel
Web Service简单入门示例
Longest swing sequence [greedy practice]
AITM2-0002 12s或60s垂直燃烧试验
XML建模
PHP deserialization +md5 collision
Modifiers of attributes of TS public, private, protect
Binary search
判断横竖屏的最佳实现
Sequence alignment
Postgres establish connection and delete records
Selenium's method of getting attribute values in DOM
R语言【数据管理】
Material design component - use bottomsheet to show extended content (II)