Questions tagged [avvideocomposition]

80 questions
1
vote
1 answer

I want to apply CIFilter on video and save that filter applied video. [export taking too much time]

I want to apply CIFilter on video and save that filter applied video. I am using AVMutableVideoComposition (also tried with AVVideoComposition) for apply filter on video and its working fine with AVPlayer but when i am exporting filtered video then…
Deep
  • 416
  • 6
  • 15
1
vote
0 answers

Video rotation not applying for AVAsset when setting AVAssetExportSession's videoComposition

I simply would like to rotate a video 90 degrees after capturing it. I followed the answer in this thread: iOS how to correctly handle orientation when capturing video using AVAssetWriter When my asset finishes writing, I call the method to set the…
1
vote
2 answers

AVPlayer resizeAspect works only properly on iPhone X

resizeAspect as the video gravity only works properly for me, when using an iPhone X. For some reasons, the black aspect bar gets only added to the top and not to the bottom. This is how it looks like when I'm not using an iPhone X (the image is…
thelearner
  • 1,440
  • 3
  • 27
  • 58
1
vote
1 answer

Adding watermark to video is extremely slow

I am using AVComposition to render a watermark to a video. This process takes around 15 seconds, which doesn't seem ok for a 20 seconds video. My export settings are: let exporter = AVAssetExportSession.init(asset: mixComposition, presetName:…
thelearner
  • 1,440
  • 3
  • 27
  • 58
1
vote
0 answers

AVVideoComposition doesn't add Text to video - iOS 10.3

I recently posted a question regarding exporting a video with a textOverlay (using AVVideoComposition). I am trying to apply a CATextLayer overlay to a video in swift using the following method : @IBOutlet weak var subTitle1: UITextField! …
6994
  • 107
  • 2
  • 9
1
vote
1 answer

IOS video over video merge with circle cropping

Iam making an app which does a basic video processing . Ive successfully managed to merge to video (video over video) . how can I crop the up-left small video into a circle ?
user3703910
  • 624
  • 1
  • 5
  • 25
1
vote
0 answers

The performance of AVAssetExportSession(It's too SLOW)

recently, I used AVFoundation framework to add water mark to my video, and then export the new video by AVAssetExportSession. The link below show the method and…
1
vote
1 answer

Rendering CALayers with CoreAnimations

How is it possible to render CALayer that has lots of animations to a mov file? I know how to render it with AVVideoCompositionCoreAnimationTool videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer but therefore i need a dummy video (i…
1
vote
0 answers

HEVC Intra Prediction Reference Sample Handling

I have been working on a project in implementing HEVC Intra prediction for my bachelor thesis and first step of the project is to implement the algorithm on Matlab. I found limited number of papers about the subject and I am having a hard time…
Jorc
  • 21
  • 3
1
vote
1 answer

Merging of two or more video in ios

How to combine video clips with different orientation using AVFoundation I have gone with the above answer and is going good. But i am facing a problem that audio of the video is being removed. Even all of my videos have voice. But after merging the…
Mayank Barnwal
  • 123
  • 1
  • 12
1
vote
2 answers

Invalid composition error (-11841) when trying to add CATextLayer to video

I'm trying to add text over a video but no matter what I do I get invalid composition error (-11841). I have followed tutorials, read through threads and nothing stands out as being wrong. I am combining 3 videos, and an audio track and that works…
1
vote
0 answers

AVFoundation: on-the-fly compositions?

Can AVFoundation be used to create compositions on the fly? Scenario: I have five 10-second H.264 clips that I want to play with a nice 1-second fade/transition between them. Is there a means to create a composition with the first two, begin…
zzyzy
  • 973
  • 6
  • 21
1
vote
1 answer

iOS: AVPlayerItem to AVAsset

I got 2 AVAssets, and I do have change using VideoComposition, and AudioMix for AVPlayerItem. After that, I use asset from AVPlayerItem, but VideoComposition, and AudioMix are not applied. I want the result asset to be applied by both…
1
vote
0 answers

Transition effects in single video in iPhone app

I want to add fade in/out, flip and page curl transition effects into a video created from array of images using AVAssetWriter and AVAssetComposition. I saw "Working with Media in AV Foundation" talk about this starting at around 18:00, but it shows…
BADRI
  • 643
  • 8
  • 26
0
votes
1 answer

Using AVVideoComposition for kens burn effect?

I'm current using AV Foundation to export images as videos. Now I want to add kens burn effect to these images when they are exported as a video. As far as I know, this is achievable through AVVideoComposition but I'm not sure how to start.
tommi
  • 6,883
  • 8
  • 37
  • 60