Skip to content

๐ŸŒ AVFoundation

Minha Lee edited this page Dec 1, 2024 · 3 revisions

์š”์•ฝ

๋น„๋””์˜ค, ์˜ค๋””์˜ค์— ๋Œ€ํ•œ ๊ฑฐ์˜ ๋ชจ๋“  ์ž‘์—…์„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋น„๋””์˜ค: ๋น„๋””์˜ค ํŠธ๋ž™ ํ•ฉ์„ฑ, ์˜ค๋””์˜ค ํŠธ๋ž™ ์ถ”์ถœ, ์ธ๋„ค์ผ ๋˜๋Š” ๊ฐ ์‹œ์ ์˜ ์ด๋ฏธ์ง€ ์ถ”์ถœ, ํฌ๋งท, ํ™”์งˆ ๋ฐ ํฌ๊ธฐ ๋ณ€๊ฒฝ, ๋น„ํŠธ๋ ˆ์ดํŠธ์™€ ํ”„๋ ˆ์ž„ ๋ณ€๊ฒฝ, ๋น„๋””์˜ค ํšจ๊ณผ(ํ•„ํ„ฐ), ์‹ค์‹œ๊ฐ„ ์žฌ์ƒ(HLS)

์˜ค๋””์˜ค: ์˜ค๋””์˜ค ํŠธ๋ž™ ํ•ฉ์„ฑ, ์ƒ˜ํ”Œ๋ ˆ์ดํŠธ ๋ณ€๊ฒฝ, ํŠน์ˆ˜ํšจ๊ณผ ์ถ”๊ฐ€(๋ฆฌ๋ฒ„๋ธŒ, ๋”œ๋ ˆ์ด, ๋””์Šคํ† ์…˜), TTS, ํฌ๋งท ๋ณ€๊ฒฝ

AVFoundation

Work with audiovisual assets, control device cameras, process audio, and configure system audio interactions.

์˜ค๋””์˜ค ๋ฐ ๋น„๋””์˜ค ์ž์‚ฐ์„ ๋‹ค๋ฃจ๊ณ , ๊ธฐ๊ธฐ ์นด๋ฉ”๋ผ๋ฅผ ์ œ์–ดํ•˜๋ฉฐ, ์˜ค๋””์˜ค๋ฅผ ์ฒ˜๋ฆฌํ•˜๊ณ , ์‹œ์Šคํ…œ ์˜ค๋””์˜ค ์ƒํ˜ธ์ž‘์šฉ์„ ๊ตฌ์„ฑํ•ฉ๋‹ˆ๋‹ค.

AVFoundation combines several major technology areas that together encompass a wide range of tasks for inspecting, playing, capturing, and processing audiovisual media on Apple platforms.

AVFoundation์€ Apple ํ”Œ๋žซํผ์—์„œ ์˜ค๋””์˜ค๋น„์ฃผ์–ผ ๋ฏธ๋””์–ด๋ฅผ ๊ฒ€์‚ฌ, ์žฌ์ƒ, ์บก์ฒ˜ ๋ฐ ์ฒ˜๋ฆฌํ•˜๊ธฐ ์œ„ํ•œ ๊ด‘๋ฒ”์œ„ํ•œ ์ž‘์—…์„ ํฌ๊ด„ํ•˜๋Š” ์—ฌ๋Ÿฌ ์ฃผ์š” ๊ธฐ์ˆ  ์˜์—ญ์„ ๊ฒฐํ•ฉํ•œ ํ”„๋ ˆ์ž„์›Œํฌ์ž…๋‹ˆ๋‹ค.

AVFoundation updates

Learn about important changes to AVFoundation.

AVFoundation์˜ ์ค‘์š”ํ•œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์— ๋Œ€ํ•ด ์•Œ์•„๋ด…๋‹ˆ๋‹ค.


Media assets ๋ฏธ๋””์–ด ์—์…‹

Load media assets from files and streams to inspect their attributes, tracks, and embedded metadata.

ํŒŒ์ผ ๋ฐ ์ŠคํŠธ๋ฆผ์—์„œ ๋ฏธ๋””์–ด ์—์…‹์„ ๋กœ๋“œํ•˜์—ฌ ์†์„ฑ, ํŠธ๋ž™ ๋ฐ ํฌํ•จ๋œ ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ๋ฅผ ๊ฒ€์‚ฌํ•ฉ๋‹ˆ๋‹ค.

Media reading and writingย ๋ฏธ๋””์–ด ์ฝ๊ธฐ ๋ฐ ์“ฐ๊ธฐ

Read images from video, export to alternative formats, and perform sample-level reading and writing of media data.

๋น„๋””์˜ค์—์„œ ์ด๋ฏธ์ง€๋ฅผ ์ฝ๊ณ , ๋‹ค๋ฅธ ํ˜•์‹์œผ๋กœ ๋‚ด๋ณด๋‚ด๊ณ , ๋ฏธ๋””์–ด ๋ฐ์ดํ„ฐ์˜ ์ƒ˜ํ”Œ ์ˆ˜์ค€ ์ฝ๊ธฐ ๋ฐ ์“ฐ๊ธฐ๋ฅผ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Media types and utilities ๋ฏธ๋””์–ด ํƒ€์ž… ๋ฐ ์œ ํ‹ธ๋ฆฌํ‹ฐ

Identify the types of content and file formats that AVFoundation supports.

AVFoundation์ด ์ง€์›ํ•˜๋Š” ์ฝ˜ํ…์ธ  ๋ฐ ํŒŒ์ผ ํ˜•์‹์„ ์‹๋ณ„ํ•ฉ๋‹ˆ๋‹ค.

Video settingsย ๋™์˜์ƒ ์„ค์ •

Configure video processing settings using standard key and value constants.

ํ‘œ์ค€ ํ‚ค ๋ฐ ๊ฐ’ ์ƒ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋น„๋””์˜ค ์ฒ˜๋ฆฌ ์„ค์ •์„ ๊ตฌ์„ฑํ•ฉ๋‹ˆ๋‹ค.

Audio settingsย ์˜ค๋””์˜ค ์„ค์ •

Configure audio processing settings using standard key and value constants.

ํ‘œ์ค€ ํ‚ค ๋ฐ ๊ฐ’ ์ƒ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์˜ค๋””์˜ค ์ฒ˜๋ฆฌ ์„ค์ •์„ ๊ตฌ์„ฑํ•ฉ๋‹ˆ๋‹ค.


Media playback ๋ฏธ๋””์–ด ์žฌ์ƒ

Manage the playback of media assets and interstitial content, independent of how you present that content in your interface.

๋ฏธ๋””์–ด ์—์…‹๊ณผ ์ค‘๊ฐ„ ์‚ฝ์ž… ์ฝ˜ํ…์ธ (์ค‘๊ฐ„ ๊ด‘๊ณ  ๋“ฑ)์˜ ์žฌ์ƒ์„ ๊ด€๋ฆฌํ•˜๋ฉฐ, ํ•ด๋‹น ์ฝ˜ํ…์ธ ๋ฅผ ์ธํ„ฐํŽ˜์ด์Šค์—์„œ ์–ด๋–ป๊ฒŒ ํ‘œ์‹œํ•˜๋“ ์ง€ ๊ด€๊ณ„์—†์ด ์žฌ์ƒ์„ ์ œ์–ดํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Offline playback and storage ์˜คํ”„๋ผ์ธ ์žฌ์ƒ ๋ฐ ์ €์žฅ

Download streamed content to disk to allow offline playback, and define policies to automatically remove downloaded assets.

์ŠคํŠธ๋ฆฌ๋ฐ๋œ ์ฝ˜ํ…์ธ ๋ฅผ ๋””์Šคํฌ์— ๋‹ค์šด๋กœ๋“œํ•˜์—ฌ ์˜คํ”„๋ผ์ธ ์žฌ์ƒ์„ ํ—ˆ์šฉํ•˜๊ณ , ๋‹ค์šด๋กœ๋“œํ•œ ์ž์‚ฐ์„ ์ž๋™์œผ๋กœ ์ œ๊ฑฐํ•˜๋„๋ก ์ •์ฑ…์„ ์ •์˜ํ•ฉ๋‹ˆ๋‹ค.

Streaming and AirPlay ์ŠคํŠธ๋ฆฌ๋ฐ ๋ฐ AirPlay

Stream content wirelessly to other devices using AirPlay, and handle requests involving FairPlay-protected assets.

AirPlay๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋‹ค๋ฅธ ์žฅ์น˜๋กœ ์ฝ˜ํ…์ธ ๋ฅผ ๋ฌด์„ ์œผ๋กœ ์ŠคํŠธ๋ฆฌ๋ฐํ•˜๊ณ , FairPlay๋กœ ๋ณดํ˜ธ๋˜๋Š” ์—์…‹๊ณผ ๊ด€๋ จ๋œ ์š”์ฒญ์„ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Sample buffer playback ์ƒ˜ํ”Œ ๋ฒ„ํผ ์žฌ์ƒ

Create custom controllers to play and synchronize the timing of sample buffer streams.

์ปค์Šคํ…€ ์ปจํŠธ๋กค๋Ÿฌ๋ฅผ ๋งŒ๋“ค์–ด ์ƒ˜ํ”Œ ๋ฒ„ํผ ์ŠคํŠธ๋ฆผ์˜ ํƒ€์ด๋ฐ์„ ์žฌ์ƒํ•˜๊ณ  ๋™๊ธฐํ™”ํ•ฉ๋‹ˆ๋‹ค.


Capture setup ์บก์ฒ˜ ์„ค์ •

Configure built-in cameras and microphones, and external capture devices, for media capture.

๋ฏธ๋””์–ด ์บก์ฒ˜๋ฅผ ์œ„ํ•ด ๋‚ด์žฅ ์นด๋ฉ”๋ผ์™€ ๋งˆ์ดํฌ, ์™ธ๋ถ€ ์บก์ฒ˜ ์žฅ์น˜๋ฅผ ๊ตฌ์„ฑํ•ฉ๋‹ˆ๋‹ค.

Photo captureย ์‚ฌ์ง„ ์บก์ฒ˜

Capture high-quality still images, Live Photos, and supporting photo data.

๊ณ ํ’ˆ์งˆ ์Šคํ‹ธ ์ด๋ฏธ์ง€, Live Photo ๋ฐ ์ง€์›ํ•˜๋Š” ์‚ฌ์ง„ ๋ฐ์ดํ„ฐ๋ฅผ ์บก์ฒ˜ํ•ฉ๋‹ˆ๋‹ค.

Audio and video captureย ์˜ค๋””์˜ค ๋ฐ ๋น„๋””์˜ค ์บก์ฒ˜

Capture audio and video directly to media files, or capture streams of media for direct access to media sample buffers.

์˜ค๋””์˜ค ๋ฐ ๋น„๋””์˜ค๋ฅผ ๋ฏธ๋””์–ด ํŒŒ์ผ๋กœ ์ง์ ‘ ์บก์ฒ˜ํ•˜๊ฑฐ๋‚˜ ๋ฏธ๋””์–ด ์ƒ˜ํ”Œ ๋ฒ„ํผ์— ์ง์ ‘ ์•ก์„ธ์Šคํ•  ์ˆ˜ ์žˆ๋„๋ก ๋ฏธ๋””์–ด ์ŠคํŠธ๋ฆผ์„ ์บก์ฒ˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Additional data captureย ์ถ”๊ฐ€ ๋ฐ์ดํ„ฐ ์บก์ฒ˜

Capture additional data including depth and metadata, and synchronize capture from multiple outputs.

๊นŠ์ด ๋ฐ ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ๋ฅผ ํฌํ•จํ•œ ์ถ”๊ฐ€ ๋ฐ์ดํ„ฐ๋ฅผ ์บก์ฒ˜ํ•˜๊ณ  ์—ฌ๋Ÿฌ ์ถœ๋ ฅ์—์„œ ์บก์ฒ˜๋ฅผ ๋™๊ธฐํ™”ํ•ฉ๋‹ˆ๋‹ค.


Composite assetsย ๋ณตํ•ฉ ์—์…‹

Combine tracks and segments of tracks from multiple assets into a composite asset that you can play or process.

์—ฌ๋Ÿฌ ์ž์‚ฐ์˜ ํŠธ๋ž™๊ณผ ํŠธ๋ž™ ์„ธ๊ทธ๋จผํŠธ๋ฅผ ์žฌ์ƒํ•˜๊ฑฐ๋‚˜ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” ๋ณตํ•ฉ ์ž์‚ฐ์œผ๋กœ ๊ฒฐํ•ฉํ•ฉ๋‹ˆ๋‹ค.

QuickTime moviesย ํ€ต ํƒ€์ž„ ๋ฌด๋น„

Access the contents of a QuickTime movie file, and perform sample-level edits of its media tracks.

QuickTime ๋™์˜์ƒ ํŒŒ์ผ์˜ ๋‚ด์šฉ์— ์•ก์„ธ์Šคํ•˜๊ณ  ํ•ด๋‹น ๋ฏธ๋””์–ด ํŠธ๋ž™์˜ ์ƒ˜ํ”Œ ์ˆ˜์ค€ ํŽธ์ง‘์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Video effectsย ๋น„๋””์˜ค ํšจ๊ณผ

Define standard video transition effects, synchronize layer animations with media timing, and create custom video compositors.

ํ‘œ์ค€ ๋น„๋””์˜ค ์ „ํ™˜ ํšจ๊ณผ๋ฅผ ์ •์˜ํ•˜๊ณ , ๋ ˆ์ด์–ด ์• ๋‹ˆ๋ฉ”์ด์…˜์„ ๋ฏธ๋””์–ด ํƒ€์ด๋ฐ๊ณผ ๋™๊ธฐํ™”ํ•˜๊ณ , ์‚ฌ์šฉ์ž ์ •์˜ ๋น„๋””์˜ค ์ปดํฌ์ง€ํ„ฐ๋ฅผ ๋งŒ๋“ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Audio mixingย ์˜ค๋””์˜ค ๋ฏน์‹ฑ

Define how to mix the audio levels from multiple audio tracks over an assetโ€™s duration.

์—์…‹์˜ ์žฌ์ƒ์‹œ๊ฐ„ ๋™์•ˆ ์—ฌ๋Ÿฌ ์˜ค๋””์˜ค ํŠธ๋ž™์˜ ์˜ค๋””์˜ค ๋ ˆ๋ฒจ์„ ๋ฏน์‹ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์ •์˜ํ•ฉ๋‹ˆ๋‹ค.


Audio playback, recording, and processing ์˜ค๋””์˜ค ์žฌ์ƒ, ๋…น์Œ ๋ฐ ์ฒ˜๋ฆฌ

Play, record, and process audio; configure your appโ€™s system audio behavior.

์˜ค๋””์˜ค๋ฅผ ์žฌ์ƒ, ๋…น์Œ ๋ฐ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค. ์•ฑ์˜ ์‹œ์Šคํ…œ ์˜ค๋””์˜ค ๋™์ž‘์„ ๊ตฌ์„ฑํ•ฉ๋‹ˆ๋‹ค.

Speech synthesisย ์Œ์„ฑ ํ•ฉ์„ฑ

Configure voices to speak strings of text.

ํ…์ŠคํŠธ ๋ฌธ์ž์—ด์„ ๋งํ•˜๋„๋ก ์Œ์„ฑ์„ ๊ตฌ์„ฑํ•ฉ๋‹ˆ๋‹ค.


letย AVFoundationErrorDomain: String

The error domain of AVFoundation errors.

AVFoundation ์˜ค๋ฅ˜์˜ ์˜ค๋ฅ˜ ๋„๋ฉ”์ธ์ž…๋‹ˆ๋‹ค.

structย AVError

A structure that defines the errors that framework operations can generate.

ํ”„๋ ˆ์ž„์›Œํฌ ์ž‘์—…์ด ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ๋Š” ์˜ค๋ฅ˜๋ฅผ ์ •์˜ํ•˜๋Š” ๊ตฌ์กฐ์ฒด์ž…๋‹ˆ๋‹ค.

Media assets

[Media reading and writing]

[Media types and utilities]

[Video settings]

[Audio settings]

Export Presets

[AVFileType]

[AVAssetExportSession]

[AVAssetImageGenerator]

[Linear PCM Format Settings]

Format Settings

Sample Rate Conversion Settingsย 

Encoder Settings

Time Pitch Algorithm Settings

Encoder Bit Rate Strategy Values

Media playback

Configuring your app for media playback

Controlling the transport behavior of a player AVPlayer

AVPlayerItem

AVPlayerItemTrack

AVQueuePlayer

AVPlayerLooper

Offline playback and storage

Capture setup

Audio and video capture

Audio mixing

Audio playback, recording, and processing

Composite assets

Audio Engine

iOS07 ํ”„๋กœ์ ํŠธ ์ผ์ง€

๐Ÿ“š ๋ฌธ์„œ

๐Ÿซถ๐Ÿป ํŒ€ ๊ธฐ๋ก

๐ŸŽค ํ”„๋กœ์ ํŠธ

๐Ÿ’ก ํ•ต์‹ฌ ๊ฒฝํ—˜

๐Ÿšจ ํŠธ๋Ÿฌ๋ธ” ์ŠˆํŒ…

๐Ÿ“” ํ•™์Šต ์ •๋ฆฌ

๐Ÿช„ QA

Clone this wiki locally