Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6473607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:29:09+00:00 2026-05-25T06:29:09+00:00

In my Application I need to capture a video and Put a watermark on

  • 0

In my Application I need to capture a video and Put a watermark on that video. The watermark should be Text(Time and Notes). I saw a code using “QTKit” Frame work. However I read that the framework is not available for iPhone.

Thanks in Advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:29:09+00:00Added an answer on May 25, 2026 at 6:29 am

    Use AVFoundation. I would suggest grabbing frames with AVCaptureVideoDataOutput, then overlaying the captured frame with the watermark image, and finally writing captured and processed frames to a file user AVAssetWriter.

    Search around stack overflow, there are a ton of fantastic examples detailing how to do each of these things I have mentioned. I haven’t seen any that give code examples for exactly the effect you would like, but you should be able to mix and match pretty easily.

    EDIT:

    Take a look at these links:

    iPhone: AVCaptureSession capture output crashing (AVCaptureVideoDataOutput) – this post might be helpful just by nature of containing relevant code.

    AVCaptureDataOutput will return images as CMSampleBufferRefs.
    Convert them to CGImageRefs using this code:

        - (CGImageRef) imageFromSampleBuffer:(CMSampleBufferRef) sampleBuffer // Create a CGImageRef from sample buffer data
    {
    
        CVImageBufferRef imageBuffer = CMSampleBufferGetImageBuffer(sampleBuffer); 
        CVPixelBufferLockBaseAddress(imageBuffer,0);        // Lock the image buffer 
    
        uint8_t *baseAddress = (uint8_t *)CVPixelBufferGetBaseAddressOfPlane(imageBuffer, 0);   // Get information of the image 
        size_t bytesPerRow = CVPixelBufferGetBytesPerRow(imageBuffer); 
        size_t width = CVPixelBufferGetWidth(imageBuffer); 
        size_t height = CVPixelBufferGetHeight(imageBuffer); 
        CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); 
    
        CGContextRef newContext = CGBitmapContextCreate(baseAddress, width, height, 8, bytesPerRow, colorSpace, kCGBitmapByteOrder32Little | kCGImageAlphaPremultipliedFirst); 
        CGImageRef newImage = CGBitmapContextCreateImage(newContext); 
        CGContextRelease(newContext); 
    
        CGColorSpaceRelease(colorSpace); 
        CVPixelBufferUnlockBaseAddress(imageBuffer,0); 
        /* CVBufferRelease(imageBuffer); */  // do not call this!
    
        return newImage;
    }
    

    From there you would convert to a UIImage,

      UIImage *img = [UIImage imageWithCGImage:yourCGImage];  
    

    Then use

    [img drawInRect:CGRectMake(x,y,height,width)]; 
    

    to draw the frame to a context, draw a PNG of the watermark over it, and then add the processed images to your output video using AVAssetWriter. I would suggest adding them in real time so you’re not filling up memory with tons of UIImages.

    How do I export UIImage array as a movie? – this post shows how to add the UIImages you have processed to a video for a given duration.

    This should get you well on your way to watermarking your videos. Remember to practice good memory management, because leaking images that are coming in at 20-30fps is a great way to crash the app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am developing one application.In that i need to take the capture the video
In our application, we need to transfer video, we are using Camera class to
I have a SQL and VS 2008 web application that I need to capture
I'm creating a Windows video capture application and am using DirectShow for capture. As
I need to create an application/driver in Windows that captures the video stream from
I need to capture the amount of time that ASP.net takes to execute each
I am using splitviewcontroller for my ipad application in which I need to capture
I am making an application that shows the video feed in real time and
I wrote a C# code that captures video from a video capture card, and
I am creating an android application that will need to capture images from the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.