Learning AV Foundation: A Hands-on Guide to Mastering the AV Foundation Framework

Overview

AV Foundation for iOS and OS X® Programming—Get Started Fast!

If you develop media-rich iOS or OS X apps, you can do amazing things with Apple’s AV Foundation. However, the framework is extremely large, reliant on cutting-edge language features, and poorly documented. Now, there’s a more productive way to master these immensely powerful technologies: Bob McCune’s Learning AV Foundation.

McCune’s live ...

See more details below
Paperback
$36.91
BN.com price
(Save 7%)$39.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (14) from $23.56   
  • New (13) from $23.56   
  • Used (1) from $36.90   
Sending request ...

Overview

AV Foundation for iOS and OS X® Programming—Get Started Fast!

If you develop media-rich iOS or OS X apps, you can do amazing things with Apple’s AV Foundation. However, the framework is extremely large, reliant on cutting-edge language features, and poorly documented. Now, there’s a more productive way to master these immensely powerful technologies: Bob McCune’s Learning AV Foundation.

McCune’s live presentations and GitHub projects have already helped thousands of Apple developers get started with AV Foundation. Building on his experience, McCune helps you gain true mastery by creating real-world apps, hands-on.

You’ll build a voice memo app, custom video player, video editor, and an image/video camera app. As you proceed, you’ll master all the techniques you need to write your own advanced media apps from scratch. Throughout, McCune provides carefully crafted challenges and complete starter apps—all designed to help you deepen your understanding and make the most of Apple’s breakthrough media framework.

COVERAGE INCLUDES

  • Understanding how AV Foundation fits in Apple’s media environment and each of its key areas of functionality
  • Enabling your apps with audio playback and recording features
  • Enhancing video playback to deliver a richer, more dynamic experience
  • Using AV Kit to match your user interfaces with iOS Videos or OS X QuickTime Player
  • Developing media capture apps with real-time video processing using OpenGL ES and Core Image
  • Implementing custom video players
  • Integrating advanced capture features such as video zooming, face detection, barcode scanning, and high frame rate capture
  • Mixing multiple audio tracks and automating volume control
  • Building sophisticated non-linear, non-destructive editing apps
  • Adding advanced video editing capabilities, such as video transitions and animation effects
Read More Show Less

Product Details

  • ISBN-13: 9780321961808
  • Publisher: Addison-Wesley
  • Publication date: 11/14/2014
  • Series: Learning Series
  • Edition number: 1
  • Pages: 432
  • Sales rank: 1,491,672
  • Product dimensions: 6.90 (w) x 8.90 (h) x 1.00 (d)

Meet the Author

Bob McCune is an iOS developer and instructor from Minnesota. He started developing for the Mac in 2007 and then switched to iOS when the first iPhone SDK was released in 2008. He is the owner of TapHarmonic, LLC, a small iOS consulting and training company based out of MN. Bob also founded the MN chapter of CocoaHeads in the spring of 2008 and remains the group leader to this day. Bob and his wife, Linda, have two amazing children who are who are growing up faster than he would like. He is incredibly blessed to have such a loving and supportive family.
Read More Show Less

Table of Contents

Preface xiii

Part I: AV Foundation Essentials 1

Chapter 1: Getting Started with AV Foundation 3

What Is AV Foundation? 3
Where Does AV Foundation Fit? 4
Decomposing AV Foundation 6
Understanding Digital Media 7
Digital Media Compression 13
Container Formats 18
Hello AV Foundation 19
Summary 23
Challenge 24

Chapter 2: Playing and Recording Audio 25

Mac and iOS Audio Environments 25
Understanding Audio Sessions 26
Audio Playback with AVAudioPlayer 28
Building an Audio Looper 30
Configuring the Audio Session 34
Handling Interruptions 36
Responding to Route Changes 40
Audio Recording with AVAudioRecorder 42
Building a Voice Memo App 45
Enabling Audio Metering 52
Summary 57
Chapter 3: Working with Assets and Metadata 59

Understanding Assets 59
Creating an Asset 60
Asynchronous Loading 63
Media Metadata 65
Working with Metadata 70
Building the MetaManager App 76
Saving Metadata 98
Summary 101
Challenge 101

Chapter 4: Playing Video 103

Playback Overview 103
Playback Recipe 107
Working with Time 109
Building a Video Player 110
Time Observation 118
Creating a Visual Scrubber 124
Showing Subtitles 129
Airplay 133
Summary 136
Challenge 136

Chapter 5: Using AV Kit 137
AV Kit for iOS 137
AV Kit for Mac OS X 140
First Steps 140
Control Styles 144
Going Further 147
Working with Chapters 151
Enabling Trimming 157
Exporting 159
Movie Modernization 161
Summary 165
Challenge 166

Part II: Media Capture 167

Chapter 6: Capturing Media 169

Capture Overview 169
Simple Recipe 174
Building a Camera App 175
Summary 208
Challenge 208

Chapter 7: Using Advanced Capture Features 209

Video Zooming 209
Face Detection 216
Machine-Readable Code Detection 228
Using High Frame Rate Capture 241
Processing Video 247
Understanding CMSampleBuffer 249
Summary 257
Challenge 258

Chapter 8: Reading and Writing Media 259

Overview 259
Building an Audio Waveform View 265
Advanced Capture Recording 276
Summary 293
Challenge 293

Part III: Media Creation and Editing 295

Chapter 9: Composing and Editing Media 297

Composing Media 297
Working with Time 300
Basic Recipe 303
Introducing 15 Seconds 307
Building a Composition 311
Exporting the Composition 316
Summary 321
Challenge 322

Chapter 10: Mixing Audio 323

Mixing Audio 323
Mixing Audio in the 15 Seconds App 327
Summary 333
Challenge 333

Chapter 11: Building Video Transitions 335

Overview 335
Conceptual Steps 337
15 Seconds: Adding Video Transitions 348
Summary 360
Challenge 360

Chapter 12: Layering Animated Content 361

Using Core Animation 361
Using Core Animation with AV Foundation 363
15 Seconds: Adding Animated Titles 367
Preparing the Composition 378
Summary 383
Challenge 384

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)