Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID
Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.

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.
Post edited by carsonp on

Replies

  • MattWMattW Posts: 241Registered Users
    carsonp;366252 said:
    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.
    [SIGPIC][/SIGPIC]

    Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)

    -----

    Create iPhone lists with no typing: <a
  • carsonpcarsonp Posts: 8New Users
    MattW;366254 said:
    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 :)
Sign In or Register to comment.