Questions tagged [avmutablevideocomposition]
9 questions
1
vote
0 answers
Play video synthesized by AVMutableComposition in AVPlayer with error
I am creating an IOS video editing tool by AVMutableComposition.
If I combine multiple videos in a single video mutabletrack, it works fine. However, when I create mutabletrack per video and synthesize the video and play it in AVPlayer, only sound…

robert hook
- 11
- 2
1
vote
0 answers
Swift AVFoundation instructions don't set the opacity
I have a function that merges videos. All videos merge properly and the first two videos will play perfectly but then only the audio for the third video plays. I am assuming the video is there, but it is just blocked by the second video. I am…

Shawn Haghnazari
- 106
- 5
1
vote
0 answers
How to combine multiple videos with AVMutableComposition without loosing audio sync?
I'm trying to write video exporter which can combine N videos and place them side by side. Below example is with 3 videos.
Videos are recorded WebRTC streams of speakers, and each has a bit different frame rate, possibly also recorded with variable…

Matej Ukmar
- 2,157
- 22
- 27
0
votes
0 answers
How to merge Two or more videos as overlay on main video using AVMutableComposition in iOS Swift
I am working on merging two or more videos as an overlay on the main background video with AVMutableComposition in Swift.
This is my code for video overlay.
func overlayOnBackVideo(mainVideoURL:URL,overlayVideoURL:URL,completion:@escaping…
0
votes
0 answers
Apply video rotation with AVVideoCompositionLayerInstruction and fit to render size
I want to implement a video rotation feature in a video editor application where the user can rotate the video by 0, 90, 180, or 270 degrees. How can I properly center the rotated video using AVMutableVideoCompositionLayerInstruction?
I have…

Rehal amrinder
- 1
- 1
0
votes
1 answer
how to blur specific area of video
I am creating a function where we blur a video specific part. I have two views. One is for show video in videoview and other view shows the area of blur but area of blur is not placed at the right place.
First of all, I want to blur a specific area…
0
votes
1 answer
Swift -AVMutableVideoCompositionLayerInstruction Misalignment when Merging Videos
I followed the Ray Wenderlich to merge videos. The finished result is 1 merged video where portrait videos are at the top of the screen and landscape videos are at the bottom of the screen. In the image below the portrait videos plays first and then…

Lance Samaria
- 17,576
- 18
- 108
- 256
0
votes
1 answer
How to combine (hstack) multiple videos side by side with AVMutableVideoComposition?
I'm trying to combine 3 videos into single video where videos are cropped and put side by side in hstack.
Here is my current solution which puts only the first video 3 times (repeating) side by side. I can not figure out what am I doing…

Matej Ukmar
- 2,157
- 22
- 27
0
votes
1 answer
How to improve AVAssetExportSession saving performance
I'm using AVAssetExportSession to save video with some text / image overlays on it.
It's working pretty fine except It takes way to much time to save new video, I've seen other apps that do it much faster like 2-4x faster. So I'm wondering is there…

Діма Комар
- 482
- 6
- 31