Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-14-2008, 01:17 PM
Administrator
 
Join Date: Jun 2008
Location: Arizona
Posts: 395
Send a message via AIM to mxweas Send a message via Yahoo to mxweas Send a message via Skype™ to mxweas
Default Video Recording on iPhone!

There are a few video recording applications currently available for iPhone but none of them are open source. After poking around with different UIKit class's I've found a method for recording from the camera in real time.

The basic concept is to use the CameraController class's previewView as the input source and use UIWindow's methods of creating a CGImageRef from a rect on the screen to build an array of frames which can then be played back as a video! Though this method plays back video seamlessly, if the array gets too large (100 frames/10 seconds) during playback the app will crash due to an overuse of memory. I will be trying to get an open source example going that can write to the disk soon.

I've uploaded a sample fully commented XCode project for everyone to enjoy. Tell me what you think.

Max

EDIT: I've added a compiled .app for those who just want to see its functionality.
Attached Files
File Type: zip VideoRecordingDemo.zip (77.8 KB, 402 views)
File Type: zip VideoRecordingDemo.app.zip (21.8 KB, 203 views)
Reply With Quote
  #2 (permalink)  
Old 07-14-2008, 03:14 PM
optimo's Avatar
Junior Member
 
Join Date: Jun 2008
Posts: 9
Default

why zip file? why not lay the whole thing out here?

very nice, btw
Reply With Quote
  #3 (permalink)  
Old 07-17-2008, 08:52 PM
Junior Member
 
Join Date: Jul 2008
Posts: 13
Default

Very nice. I think you're going to have some problem porting it over to the SDK, well as an appstore app anyway.

Phanfare had an app that specifically used one of the PrivateFrameworks, PhotoLibrary I think specifically, for CameraController just to give a better picture taking experience (Because we all know UIImagePickerController sucks), and their app has now been removed.
Reply With Quote
  #4 (permalink)  
Old 07-18-2008, 10:10 AM
Administrator
 
Join Date: Jun 2008
Location: Arizona
Posts: 395
Send a message via AIM to mxweas Send a message via Yahoo to mxweas Send a message via Skype™ to mxweas
Default

I don't plan to make an app with this, it was just a demo of how it could be done.

Max
Reply With Quote
  #5 (permalink)  
Old 07-23-2008, 12:36 AM
Junior Member
 
Join Date: Jul 2008
Posts: 2
Default GraphicsServices & LayerKit Frameworks missing!!!

Hello Max, Can you please help me add the two frameworks as I am not able to find them. I am new to this and not able to proceed further. Any help regarding the same is greatly appreciated.
I am using Xcode 3.1 (Windows Based Application) and Mac OS X 10.5.4

Btw, great job with the app. Its really helpful.

Please let me know if you need any more details.
Thanks a lot in advance.
Cheers
Naveen
Reply With Quote
  #6 (permalink)  
Old 07-23-2008, 12:38 AM
Administrator
 
Join Date: Jun 2008
Location: Arizona
Posts: 395
Send a message via AIM to mxweas Send a message via Yahoo to mxweas Send a message via Skype™ to mxweas
Default

I'm sorry, this code was meant for iPhone firmware 1.1.4 and it will not work on 2.0 or anythink sdk related.

Max
Reply With Quote
  #7 (permalink)  
Old 07-23-2008, 01:18 AM
Junior Member
 
Join Date: Jul 2008
Posts: 2
Default GraphicsServices & LayerKit Frameworks missing!!!

Hello Max, Can you please tell me if it was removed in the latest version of the SDK or they have an equivalent?
Thanks!
Naveen
Reply With Quote
  #8 (permalink)  
Old 07-23-2008, 01:20 AM
Administrator
 
Join Date: Jun 2008
Location: Arizona
Posts: 395
Send a message via AIM to mxweas Send a message via Yahoo to mxweas Send a message via Skype™ to mxweas
Default

I believe in the SDK all you can do now is tell the phone to pull up the camera app to take a picture, but nothing more.

Max
Reply With Quote
  #9 (permalink)  
Old 10-15-2008, 12:11 PM
Junior Member
 
Join Date: Oct 2008
Posts: 1
Default

Great work MAX!!

and If anyone know how to save the image buffer into the video format with include sound (such as .mp4).

Thank you!
Reply With Quote
  #10 (permalink)  
Old 12-02-2008, 11:57 PM
Junior Member
 
Join Date: Dec 2008
Posts: 3
Default can see the preview

hi all

I download this app and upload to my iphone(no compilation) and it shows the black intro page and nothing more. Is there anything wrong.
Reply With Quote
Reply

Tags
iphone, open source, realtime, recording, 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


All times are GMT. The time now is 04:59 AM.