Video Editing in Iphone - iphone

In my application user should be able to select a video from video library and also should able to trim the video and play the video in a movie player. Can any one please help me???

Look into the AVFoundation framework. As you mentioned below, you want to use the UIVideoEditorController class.
Note that what you ask is only supported by the AVFoundation in iOS 4.0 and higher.

Also check out this Apple's sample project. https://developer.apple.com/library/ios/samplecode/AVSimpleEditoriOS/Introduction/Intro.html
And for documentation https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVFoundationFramework/index.html#/library/ios/documentation/AVFoundation/Reference/AVFoundationFramework/_index.html

Related

Writing captions on an mp4 video in iOS

I have an mp4 video and a metadata xml file which contains information about captions to be added to the mp4. I want to write captions on top of this video in iOS. I got to know this can be done using HTML5's video element. I wanted to know if there any API's in iOS to do it in say, the AVFoundation or MediaPlayer framework.
Thanks.
I'm not a hundred percent sure this will answer your question, because it seems kind of vague.
But this might help you out.
http://www.3playmedia.com/2011/12/22/html5-video-captioning-explain-it-to-me/

video playing sample on iPhone using libffmpeg

can someone please provide a reference or an example on usage of libffmpeg library for playing video files not supported by apple.
Let consider mkv file.
I suppose the library decodes and passes the raw media data to AVFoundation objects to play it on device. Am I right ?
Another useful example is ffmpeg4iphone project it does have Player class which does actually playing the video and audio channel
One alternative to look at is kxmovie project on GitHub.

Can I record videos on iPhone 3G using AVFoundation?

Is it possible to record video on iphone 3g with ios 4.1 using AVFoundation?
I m able to record audio and can pick still image using AVFoundation but not able to record video.
If you see the AVFoundation reference documentation its stated that
You should typically use the
highest-level abstraction available
that allows you to perform the tasks
you want. For example:
If you simply want to play movies, you can use the Media Player
Framework (MPMoviePlayerController or
MPMoviePlayerViewController), or for
web-based media you could use a
UIWebView object.
To record video when you need only minimal control over format, use the
UIKit framework
(UIImagePickerController).
As long as a device has a camera, you should be able to record using AVFoundation, check out the AVCam demo code from WWDC 2010 to see how you can do that.

iOS Raw Video Capture - Where to start?

It's easy enough to use the system-supplied user interfaces for taking pictures and movies on supported iOS devices. How do I do raw video capture and manipulation in iOS 3 and iOS 4? I'm looking for the names of the relevant classes and methods, and possibly a tutorial or reference from Apple...
You can look at these place
AVCam sample
How to Play, Record, and Edit Videos in iOS
Audio & Video Starting Point
AVCaptureSession preference
Wrapper library by Andrew
If you're looking for tuts, there are a lot here.
There good start from Apple with a lots of links that can help. See Audio & Video Starting Point.
You can't do raw video capture on iOS anymore (there used to be hack for iOS3, but now that's it's official in iOS4, they disallowed the hack).
And on iOS 4 - I believe this is the best start:
http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/03_MediaCapture.html
(Read a little, then browse to Processing Frames of Video)
Cheers,
Oded.

How to record videos from an iphone App

Does anyone know how to record videos from an iphone app without making it to close..
it would be greatly helpful, if any one provides the sample code...
Maybe you can see the Apple note:
How to capture video frames from the camera as images using AV Foundation