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.
Related
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.
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)
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/
I would like to programmatically produce a video using the microphone on the iPad (for sound) and the screen display (for visual)? Is this possible? How should I proceed?
Possible, but not easy. A rough outline:
Start capturing the audio: How do I record audio on iPhone with AVAudioRecorder?
Capture individual images of the screen as fast as you can: How to capture current view screenshot and reuse in code? (iPhone SDK)
Later, combine the two into a video. I have no clue how to do this part.
When we call MPMoviePlayerController.play method, the movie player is opened and the video is played in a separate full screen. is it possible to play a video in a custom view, that is I have an image added on a view, when this image is clicked, the image has to be removed and the video has to play there itself as the feature in iPad.
Non-full screen playback of video is possible in iPhone OS 3.2 for iPad.
If you are porting an application that uses the MPMoviePlayerController class of the Media Player framework, you must change your code if you want it to run in iPhone OS 3.2. The old version of this class supports only full-screen playback using a simplified interface. The new version supports both full- and partial-screen playback and offers you more control over various aspects of the playback.
On the full-screen question, see this section of the iPad Programming Guide for further information, and this property of MPMoviePlayerController specifically.
Bear in mind that you can still only play one video at a time, and that this is only currently possible for iPad.
Not using MPMoviePlayerController, no.
You might be able to achieve this using a custom movie player, but I haven't seen one in the wild yet, and I don't know how it would be done.