Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-18-2011, 03:22 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 8
carsonp is on a distinguished road
Default Recording video in black and white

I am making an app that uses AVFoundation and an AVCaptureSession to record video. I would like to record the video in black and white either in real time or at the time of the AVExportSession. How can this be done? I've seen it in a few apps already like 8mm and UberCam.
carsonp is offline   Reply With Quote
Old 08-18-2011, 03:28 PM   #2 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 241
MattW is on a distinguished road
Default

Quote:
Originally Posted by carsonp View Post
I am making an app that uses AVFoundation and an AVCaptureSession to record video. I would like to record the video in black and white either in real time or at the time of the AVExportSession. How can this be done? I've seen it in a few apps already like 8mm and UberCam.
You average the RGB values in each frame of the video (GrayColor = R+G+B/3) to get the grayscale value of each pixel.
__________________

Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----


FourSixteen Productions
MattW is offline   Reply With Quote
Old 08-18-2011, 04:41 PM   #3 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 8
carsonp is on a distinguished road
Default

Quote:
Originally Posted by MattW View Post
You average the RGB values in each frame of the video (GrayColor = R+G+B/3) to get the grayscale value of each pixel.
Thanks for the quick reply. Could you explain a little bit more in detail here how I would go about that or point me in a direction of which code to look up the documentation on to do this?

Thanks
carsonp is offline   Reply With Quote
Reply

Bookmarks

Tags
avfoundation, black and white, iphone, video

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 391
14 members and 377 guests
7twenty7, chiataytuday, cristofercolmbos, dedeys78, fiftysixty, gmarro, iOS.Lover, jimmyon122, jonathandeknudt, pungs, raymng, stanny, tymex, UMAD
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,669
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, dedeys78
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:09 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0