Questions tagged [avmutablecomposition]

AVMutableComposition is a mutable subclass of AVComposition you use when you want to create a new composition from existing assets. You can add and remove tracks, and you can add, remove, and scale time ranges.

AVMutableComposition is a mutable subclass of AVComposition you use when you want to create a new composition from existing assets. You can add and remove tracks, and you can add, remove, and scale time ranges.

At its top-level, AVComposition is a collection of tracks, each presenting media of a specific media type, e.g. audio or video, according to a timeline. Each track is represented by an instance of AVCompositionTrack. Each track is comprised of an array of track segments, represented by instances of AVCompositionTrackSegment. Each segment presents a portion of the media data stored in a source container, specified by URL, a track identifier, and a time mapping. The URL specifies the source container, and the track identifier indicates the track of the source container to be presented.

Sources:

282 questions
1
vote
0 answers

Merge Two triangle Video to make rectangle video

I can merge two rectangular video like first picture, using AVMutableComposition. I want to merge two triangle shape video to make rectangular video like second one, also I can crop the video in to rectangle shape, but now am stuck on make the…
1
vote
0 answers

AVErrorInvalidVideoComposition on export a video

Before post my question, I will describe the reason of I'm compose a video with a single track. In short terms, I need a video with constant frame rate and I not found another ways to do that without export video and compose it with…
1
vote
0 answers

video rotation using AVMutableVideoCompositionLayerInstruction

I am merging multiple videos and I want to detect which ones are in portrait mode and rotate them in landscape so that all movies are in landscape mode... I have done everything and works perfectly except the actual rotate, I guess it's something…
Catalin
  • 1,821
  • 4
  • 26
  • 32
1
vote
1 answer

how to play an avmutablecomposition on mpmovieplayer?

i have thoroughly scanned google for this , is their a way to play avmutablecomposition on mpmovieplayercontroller , they have to be init with a URL so i guess the real question is, is their a temporary URL for avmutablecomposition or can we create…
1
vote
1 answer

with AVMutableComposition Video creation issue

i am trying to merge.mp4 and .caf file so i am using the following code, AVMutableCompositionTrack *compositionVideoTrack = [mixComposition addMutableTrackWithMediaType:AVMediaTypeVideo …
utkal patel
  • 1,321
  • 1
  • 15
  • 24
1
vote
0 answers

AVMutableComposition reduces Size and Resolution of final video

I created a video using Array of images. It creates the video successfully, then I add audio to that created video file. I create AVMuatableComposition object, I add Video and audio by creating AVAssetTracks and finally export into single video file…
subhash Amale
  • 325
  • 3
  • 4
  • 14
1
vote
1 answer

AVMutableComposition remove the video sound track

i have been trying to mix an audio (recorded) with a video (.mp4) using the AVMutableComposition, which means i need the 2 files to play in parallel after mixing, here is the code i used: temporaryRecFile is the recorded file url path audiosURL is…
Hash.Techniq
  • 55
  • 1
  • 10
1
vote
2 answers

How To merge Audio and Video in ios

I like to merge audio and video in application using AVMutableComposition and also I have used the following code in application but I am to able to get the output data. -(void) playerFunction { NSString *fileNamePath =…
btmanikandan
  • 1,923
  • 2
  • 25
  • 45
1
vote
1 answer

layer rotation: CGAffineTranslate, CGAffineRotate and AVMutableVideoCompositionLayerInstruction

for days now I am trying to solve this, apparently I just can't get affine transforms. Basically, I would like to rotate a movie multiple times by 90 degrees. There is a good example here: Rotating Video w/…
1
vote
1 answer

Avmutable composition , lost orientation when adding audio to a video made with frames

I've been working on a project of video processing. Until now I succeeded in filtering live camera feeds, capturing still images, recording video from frames, recording audio, and lately succeeded in adding audio to the video capture. But it seems…
1
vote
0 answers

AVMutableComposition Black Screen on Replay After 3rd clip

In my app I am attempting to merge video clips dynamically. I have two properties which hold the previous recording and then the next recording to be appended to the end. This is basically acting as a pause function, and then the user can play it…
anon_dev1234
  • 2,143
  • 1
  • 17
  • 33
0
votes
2 answers

Exporting Audio+Video with AVAssetExportSession, but audio not being played in iphone4 4.2.1

I'm exporting audio.caf audio file with video.mp4 video and creating a new output.mp4 composition. It works fine with iOS 5.0, but with an iPhone4 4.2.1, the composition doesn't play the audio. NSURL *outputURL = [NSURL…
0
votes
1 answer

iPhone:How to combine multiple video files into single video file

In my app on the click of the button my animation starts and video recording also starts but again I tap the same button my animation pauses and my video recording file is generated then again I tap the same button at that time animation starts but…
iPhone
  • 4,092
  • 3
  • 34
  • 58
0
votes
0 answers

How to use AVMutableComposition to create a video sequence / play one video after another?

I have a bunch of videos that I just want to play one after the other. I made sure that my AVAssets are fine, and tried to create a sequence using the following function: func makeSequence(from assets: [AVURLAsset], to previewComposition:…
0
votes
0 answers

AvMutableComposition swift uses the same video source for both the main and overlay layer

I am using AvMutableComposition swift to overlay a video inside another one. The below code renders the correct shape for the overlay, a circle, but uses the same video source for both the main and the overlay layer. func…
user22450095