Comparison between AVCaptureMovieFileOutput and AVAssetWriter
source link: https://tinyfool.org/2023/06/146/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Comparison between AVCaptureMovieFileOutput and AVAssetWriter – Tinyfool's blogSkip to the content
AVCaptureMovieFileOutput and AVAssetWriter are both APIs for recording video on iOS / Mac devices, are both int AVFoundation, but they have some differences.
AVCaptureMovieFileOutput is a high-level API that directly records video and audio data from AVCaptureSession into a MOV file. This API is very easy to use, just set some properties and call the startRecording(to:recordingDelegate:)
method to start recording. AVCaptureMovieFileOutput also provides some common features, such as sharing recorded video and audio resources, making it ideal for scenarios where you need to quickly record video and save it to the device.
AVAssetWriter is a low-level API that allows developers to stream audio and video data into a specified output file. Developers need to create an AVAssetWriter instance first and then use AVAssetWriterInput objects to represent audio and video data input sources. Compared to the many properties that need to be set for AVCaptureMovieFileOutput, AVAssetWriter requires more manual configuration to achieve the desired recording experience. But it also allows developers to have complete control over the video recording and encoding process, which can be used for various filters, animations, and custom encoding during recording.
In summary, AVCaptureMovieFileOutput and AVAssetWriter have their own applicable scenarios, and which API to choose depends on the specific requirements and the degree of control the developer needs over video recording.
- Tags AVFoundation
Leave a Reply Cancel reply
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Recommend
-
96
-
14
We’ve all seen the good QA director in their natural habitat, a creature who spends their time bathing in the light of an LED monitor...
-
13
A categorical comparison between FP and OOP Jan 20, 2017 • Marco Perone Category theory is the branch of mathematics abstracting on the concept of
-
33
本文讲解了数字音频、PCM 音频格式和 AAC 音频格式这些理论知识,然后讲解在 iOS 上通过 AudioToolbox 中的 Audio Converter Services 来将 PCM 编码为 AAC。
-
10
Published on 6 April 2021 in css Use case comparison between CSS Grid and Flexbox Responsive design is a must-have in web design right now. And that c...
-
3
Comparison between signed and unsigned integer expressions 2009 05 01 Many times I find myself comparing size_t with int; for example, when I need to check that a vector isn’t bigge...
-
4
Prechelt Phone Number Encoding This project implements the phone number encoding described by Lutz Prechelt in his article for the COMMUNICATIONS OF THE ACM (October 1999/Vol. 42, No. 10),
-
10
Functional Programming Part 0: A Comparison Between Programming ParadigmsRelationship between languages, paradigms and conceptsThis article is a...
-
3
Performance comparison between isoalloc 1.0.0 and 1.1.0 struct recently released the version 1.1.0: of
-
4
LEGAL OUTLOOK: A Comparison Between Decentralized Autonomous Organizations (DAOs) and Limited Liability Companies (LLCs) An LLC is a private company to which the own...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK