What i am trying to do:
I am trying to get the start and end time of the frames chosen as in the attachement below:
What i have done so far:
- UIImagePickerController: Implemented and found that start and end time won't be returned from the delegate "didFinishPickingMediaWithInfo", if the video input is chosen from the album. Confirmed with Apple team too.
- Tried with "UIVideoEditorController" and finally couldn't get the start and end time.
- Planning to try with "AVAssetImageGenerator" to generate the thumbnails and to programmatically handle the "stick or marker" to choose the frames along with AVPlayer to have instant preview as in the IOS movie player.(as in the attachment). But its quite uneasy and complicated and not sure about its processing speed.
What i want to know:
- Apart from the above three techniques, are there any other way to have the video trimmer functionality? Any direct api's from Apple SDK?
- Can anyone give a reference links or sample codes for "AVAssetImageGenerator" based video trimmer?