Questions tagged [uivideoeditorcontroller]

A UIVideoEditorController object, or video editor, manages the system-supplied user interface for trimming video frames from the start and end of a previously recorded movie as well as reencoding to lower quality.The issue related with iOS video edit can be tagged with [tag:UIVideoEditorController]

The UIVideoEditorController manages user interactions and provides the filesystem path of the edited movie to your delegate object . The features of the UIVideoEditorController class are available only on devices that support video recording.It is declared in Apple's UIKit framework. It is available in iOS 3.1 and later.

Use a video editor when your intent is to provide an interface for movie editing. While the UIImagePickerController class also lets a user trim movies, its primary roles are choosing saved pictures and movies, and capturing new pictures and movies.

The UIVideoEditorController class supports portrait mode only. This class is intended to be used as-is and does not support subclassing. The view hierarchy for this class is private; do not modify the view hierarchy. This class does not support modifications to its appearance by use of overlay views.

Source: UIVideoEditorController Class Reference

Related SO questions:

  1. Trim video without displaying UIVideoEditorController?

  2. UIVideoEditorController canEditVideoAtPath returns false on assets from library

Related tags:

27 questions
16
votes
1 answer

UIVideoEditorController lost video resolution

I am trying to use UIVideoEditorController to edit my video, but it seems to lose my video resolution. My original video was 720 x 1280, but after using the UIVideoEditorController, the quality becomes 360 x 640. I tried to set the videoQuality to…
vodkhang
  • 18,639
  • 11
  • 76
  • 110
16
votes
4 answers

how to trim a video in swift for a particular time

I am working on a task in which I have to trim the recorded video from particular start point to particular end point as entered or selected by user. How am I supposed to do that. As I used UIVideoEditorController before but I don't want to use the…
Parv Bhasker
  • 1,773
  • 1
  • 20
  • 39
12
votes
2 answers

Trim video without displaying UIVideoEditorController?

Currently I'm working on a application which deals with the videos. In my application user can trim the video, I have a custom control for selecting the start time and end time. I need to trim the video by these two values. I tried with…
Midhun MP
  • 103,496
  • 31
  • 153
  • 200
8
votes
5 answers

UIVideoEditorController delegate method called twice

I'm using UIVideoEditorController, but the success delegate method called twice for me. However, all pointers of all passed objects tell it sends exactly the same data. let editor = UIVideoEditorController() editor.videoMaximumDuration =…
Stas Ivanov
  • 917
  • 1
  • 10
  • 22
7
votes
0 answers

UIVideoEditorController allwas change the video resolution

I am trying to trim video using UIVideoEditorController. After trimming or saving, using UIVideoEditorController lost my video resolution. I used UIImagePickerController to taking video with set resolution to…
quba88
  • 174
  • 4
  • 18
6
votes
0 answers

UIVideoEditorController videoQuality setting not working

I'm currently trying to use UIVideoEditorViewController to trim a video file previously selected from the Photos app by using UIImagePickerController. I verified that after choosing the file and before creating UIVideoEditorViewController the file…
4
votes
2 answers

How to add/modify buttons on the toolbars in UIVideoEditorController?

I am trying to add buttons to the bottom toolbar of UIVideoEditorController. Is this Possible? Can I modify/add buttons to this toolbar?
Edwin Abraham
  • 645
  • 7
  • 24
3
votes
0 answers

UIVideoEditorController keeps cancelling instead of saving

I have set up UIVideoEditorController as followed if UIVideoEditorController.canEditVideo(atPath: video.path) { let editController = UIVideoEditorController() editController.videoPath = video.path editController.delegate = self …
3
votes
1 answer

How to get the start and end time for the selected frames from the video using iOS sdk?

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…
3
votes
0 answers

UIVideoEditorController crashes on iOS 7 if video maximum duration is set

As the title states, an instance of UIVideoEditorController in an iOS 7 device causes a crash when you set the property videoMaximumDuration. This is the error that is logged in the console: "Terminating app due to uncaught exception…
Marco Mempin
  • 51
  • 1
  • 5
3
votes
2 answers

UIVideoEditorController canEditVideoAtPath returns false on assets from library

on assets from library i.e: assets-library://asset/asset.mov?id=0399CB6D-D3D9-4F4C-82B9-AC93CCE2FB16&ext=mov [UIVideoEditorController canEditVideoAtPath:videoPath] returns always NO i see this error in the console: : Video…
Or Arbel
  • 2,965
  • 2
  • 30
  • 40
2
votes
2 answers

Edit video using UIVideoEditorController

I want to trim video so i am using UIVideoEditorController but when i check can edit file then it return false for all the files, mp4,mov,m4v. So any one will please guide me what is the problem. Will you please give me the link of any tutorial of…
time
  • 65
  • 1
  • 6
2
votes
2 answers

Trimming ALAsset video using UIVideoEditorController

I am having an ALAsset object of type video. I would like to trim this video using UIVideoEditorController. Following is the code snippet: UIVideoEditorController *videoEditorController = [[UIVideoEditorController alloc]…
spd
  • 2,114
  • 1
  • 29
  • 54
2
votes
1 answer

UIVideoEditorController always compresses video on save

I'm using UIVideoEditorController to trim a video that's been selected from the camera roll using UIImagePickerController. For the image picker, I use the passthrough-mode so the video won't be compressed. When I use the un-trimmed video, it looks…
Swissdude
  • 3,486
  • 3
  • 35
  • 68
2
votes
1 answer

How to display UIVideoEditorViewController full screen in iPad

I have used UIVideoEditorViewController for trimming selected video. The problem is that the editorController has to be presented in popover style in iPad. When I running it on iPad, the editor view on pop over the left corner instead of the full…
Janice Zhan
  • 571
  • 1
  • 5
  • 18
1
2