Display speed on the video while capturing in iphone - iphone

I want to do something as follows.
When user is capturing the video from his iPhone 3G, 3GS and iphone4, he should be able to show some data on the screen which will be captured on the video it self, so when we will see the video again, he will be able to see the video along with data on screen.
Like for example we can say I want to display the speed of the vehicle when video was being captured. So when user will see this video after words, he should be able to see the speed on the video it self.
Is this possible in iPhone??? or any body having other ideas for this.
Thanks in advance...
Regards,
VIshaL

It sounds like you want to create some sort of dynamic video overlay.
This is your single best bet towards what you are asking, but I am unsure if it will lead you to the result you need as it may be too dynamic in nature.
http://blog.blackwhale.at/2009/10/custom-video-overlay-view-on-the-iphone/
I hope this helps.

Related

Get frames from video, edit and save in iPhone

I am referring this application and want to learn that how can we create like this?
Actually there is the major R&D task for me and I don't even know what to search in this topic.
I don't know , from where to start googling.
According to my understandings, the concepts is, It is getting all frames from video as Image and edit it like draw line on it and then save it, so once video is played it also contains that editing.
I had referred this iFrameExtractor but can't got success.
Please advise me how to start doing R&D on this topic..
Thanks in advance.
Ok i have a answer for your question, First of all u have to get all video from your iPhone. That can be done using ALAssetLibrary after that u have to how thee videos in UITableView. I think that should be easy for u. After selecting a video from a table view u have to play that selected video using MPMoviePlayerController or AVPlayer. After that u have to draw anything.There are number of methods of drawing anything on Videos which are:-
UIBezierPathCurve, UIGraphicsBeginImageContext, Open GLes etc etc
Thats it.try googling on it. thanks :)

iPhone Use UIImagePickerController to capture selective frames from a video

I wanted to use the UiImagePicker to record a video then let the user browse the frames using the scrollview built in the UiImagePicker and while at it, select a few frames that interest the user.
I know I can overlay a control on top of the uiimagepicker to trigger the selection
What I am not sure about is whether I have programatic access to the current frame shown by the UIImagePicker for me to extract an image out of it.
Please let me know if this is doable/possible.
Are there any other time efficient/elegant ways to achieving the above?
I had created by own view with video recording and frame selection (using AVCaptureSession, AVCaptureVideoDataOutput) but would take me quite a bit of time to polish it to make it look good like UIImagePicker plus everyone is familiar with the default camera app in the iPhone.
I hope it makes sense what I want to achieve.
I know one can kind of achieve the goal by taken a screenshot of the screen but I just want the user to click one button to capture the current show frame.
Thanks
Screenshot method did not work for frozen frame from the video recording.
Went with a custom AVFoundation based frame capture.

display two different Video-Streams at the same time

I try to display two different http/rtsp-Video-Streams at the same time on the same UIView.
So my first thought was to use the UIViews of two MPMoviePlayerController.
But the documentation says:
Note: Although you may create multiple MPMoviePlayerController objects and present their views in your interface, only one movie player at a time may play its movie.
Okey!
My second thought was to use the UIWebView.
But that also doesn't work. I can display only one stream.
I hope you can help me.
Best regards.
On iPhone, as the documentation says, only one Video can be shown at any point. Video has to be full Screen! check also:
Customizable non-full screen video player in iPhone

How to capture a motion in iphone camera

In My application as the user opens the camera, camera should capture a image as soon as there is a difference in image when compared to previous image and camera should always be in capturing mode.
This should be done automatically without any user interaction.Please Help me out as i couldn't find the solution asap.
Thanks,
ravi
I don't think the iPhone camera can do what you want.
It sounds like your doing a type of motion detection by comparing two snapshots taken at different times and seeing if something has changed between the older and the newer image. To that you need:
I don't think the iPhone can do what you want. The camera is not setup to automatically take photos and I don't think the hardware can support the level of processing needed to compare two images in enough detail to detect motion.
Hmmmm, in thinking about it, you might be able to detect motion by somehow measuring the frame differentials in the compression of video. All the video codecs save space by only registering the parts of the video that change from frame-to-frame. So, a large change in the saved data would indicate a large change in the environment.
I have no idea how to go about doing that but it might give you a starting point.
You could try using opencv for motion detection based on differences between captured frames but I'm not sure if the iPhone API allows reading multiple frames from the camera.
Look for motempl.c in the opencv distribution.
You can do a screenshot to automatically capture the image, using the UIGetScreenImage function.

iPhone playing video in custom view: Example Code Please?

I'm wanting to put together an application which plays video fullscreen with an interface overlaying it that basically chooses the video that is played underneath it (think 'Gym Babes' but nowhere near as risqé!). I don't wish to use private headers so MPMoviePlayerController is out of the question.
I've been digging through stackoverflow for a while and have come to the conclusion that I would need to use some sort of custom codec/video library that I assume would be written in C.
My question is basically has anyone had success doing this? And can anyone share any code, tutorials etc they can share?
You probably want to take a look at AVPlayerLayer: http://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVPlayerLayer_Class/Reference/Reference.html it gives you basic playback abilities with no (read fully customizable) interface…