Open camera in half portion of screen - iPhone - iphone

I want to ask that , can I open iPhone camera in some limited portion on view?
I have implemented bar code reader concept in my app in which I am using camera.
Now, i want to open the camera in specific area on view.
Is it possible?
If yes than how?

Search for AVFoundation framework in google search, and try to read AVFoundation programming guide from Apple.
This question might help you too,
Recording Audio and Video using AVFoundation frame by frame
Good luck!
Tutorial :
http://red-glasses.com/index.php/tutorials/ios4-take-photos-with-live-video-preview-using-avfoundation/

Related

Is it possible to programmatically capture iPhone 5S slow motion video?

I couldn't find an answer to this question, and looking at Apples own apps like iMovie on iOS, the video picker does not offer a slow motion option on the iPhone 5S.
The image picker offers very little control over the video. If you are willing to dive deeper into the APIs you can use AVFoundation to capture your video and manipulate the camera properties as you see fit.
iOS 7 introduces a new AVCaptureDeviceFormat class that will give you the maximum and minimum supported frame-rates for the capture device, and you can use these to set a custom frame rate on the camera itself. I don't have an iPhone 5S to hand so I can't actually verify whether this API goes all the way down to 120FPS.

Video Stream of NSView

I want to create a video stream of a View in iOS. For example place a View in iPhone and draw something on it and I want to create a video stream (H.264 or MP4 or any famous standard) so that I can save a video file which contain recording of my NSView and all drawing and other operations that I perform.
Any idea where to start? Is there some API available in iOS to record video iPhone screen or a specific view??
Thanks in advance.
This blog post contains a link to sample project that shows how to capture screen content on iOS and add it to an AVFoundation asset.
Download the sample project called VTMScreenRecorderTest.zip
Also take a look on the slides (the screen capture part starts at slide 44).
The capture code is based on Apple's Technical Q&A 1703.

In need of basics of AVFoundation to capture images from device camera

I want to know that how can we capture image using AVFoundation framework, I have managed to activate the camera and my Cocos2D view is over the camera and is tranparent. I have tried using some tutorials but I am unable to capture the images( Still Image). I do not want to capture the images of a video, I want a normal camera functionality of clicking the images and then saving them to the camera roll.
I am trying this since two days and I am really stuck at this, when I press the capture button the only thing I get in camera roll is blank white screen.
Please suggest me any tutorial that would cover the basics of how to use AVFoundation framework or any help will be really appreciated. :)
Thanks for your time. :)

How to record screen to video on iPhone with openGL (view preview layer) and UIkit elements?

I have searched everywhere and tried mixing and matching different bits of code but I haven't found anything that works or anyone with the same question.
Basically I want to be able to create video demos of iPhone apps that include standard UIKit elements and also the image coming from the camera (video preview layer). I don't want to use airPlay or iOS simulator to project onto the desktop then capture because I want to be able to make videos outside in public. I have successfully been able to video capture the screen with this code but with the video preview layer being blank. I read that its because its using openGL and what I'm capturing is from the CPU, not the GPU. I have successfully used GPUImage from Brad Larson to capture the video preview layer but it doesn't capture the rest of the UIView. I have seen code that combines both and converts to an image but I'm not sure if that would be too slow for realtime video capture. Can someone point me in the right direction?
It might not be the cleanest solution, but it will work nonetheless: did you consider jailbreaking? I hope Apple does sue me for this one but if you really want to record your screen then simply install a screen recorder. Enough options can be found: http://www.google.be/search?q=iphone+jailbreak+record+screen
And if you don't like it: recover your phone for a previous backup.
(for the record: I'm against jailbreaking and posting this from a productivity point of view)

Capture front video Xcode 4 whithout UIImagePickerController (auto)

I want to capture video in my app without using UIImagePickerController. my application should record the video with a hidden camera front, and only after showing the recording.
I am new to me please help me with the programming
You must use AVFoundation for what you want, check out this question
for more information on the matter.