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
2
votes
1 answer

iOS/AVFoundation: How to eliminate (occasional) blank frames between different videos within an AVComposition during playback

The app I’m working on loops a video a specified # of times by adding the same AVAssetTrack (created from the original video url) multiple times to the same AVComposition at successive intervals. The app similarly inserts a new video clip into an…
2
votes
2 answers

Unable to render video with size greater than 640x640

I am using AVAssetExportSession to export a video saved in my documents directory. I wish to apply a CALayer to the video and hence am using AVMutableVideoComposition and setting necessary AVMutableVideoCompositionInstruction and video exports…
2
votes
0 answers

video Orientation changed in AVMutableComposition

I have merged four portrait videos using avmutablecomposition. But the final video orientation is changed to landscape. The dimension of the video is 720 x 1280 . I checked to solve the issue multiple times, But my solution doesn't work. Here's my…
Manoj Arun S
  • 543
  • 5
  • 17
2
votes
3 answers

Exporting Multiple Tracks: AVMutableComposition and AVAssetExportSession

I have 4 videos files which I have edited and added to a mutable composition. I am trying to use the export session to export the files, however, when I am exporting, only the first track in the list of tracks below gets…
2
votes
1 answer

Issue merging videos with AVMutableComposition

I'm recording short video segments with an iOS device and then trying to merge multiple segments into a single larger video. Everything works fine, except in the final video, between each of the clip segments it will flash the first frame of the…
2
votes
2 answers

iOS postprocessing - overlay timestamp to video and export

I am working on an application where video and time/GPS/accelerometer data is simultaneously recorded to separate files. I can play the video and have my overlay appear perfectly in realtime, but I cannot simply export this. I am wanting to…
Talic
  • 21
  • 3
2
votes
1 answer

How to use multiple tracks in an AVMutableComposition

Please see the code below. I'm trying to add a 2nd track so that I have a smaller video overlaid on top of a background video. However I can only get the background video to display in the final exported file. What am I doing wrong? And how do I…
soleil
  • 12,133
  • 33
  • 112
  • 183
2
votes
2 answers

Merge Video Side by Side in sequence mode

I merge two videos side by side in sequence mode by using AVMutableComposition, play two videos one after another, I can do this successfully. My problem is that while Playing the first video, the second video screen will display a blank screen…
2
votes
0 answers

AVAsset Permanently Changing Orientation of Video

I'm trying to merge two videos that are originally of different orientations. Video A - Portrait Orientation - 720x1280 - MOV Video B - Landscape Orientation - 640x480 - MP4 I'm starting by resizing and cropping Video A -…
2
votes
1 answer

IOS - Merge two audios and get it as a mp3 format

Here I have two audio files, I successfully combined these two audio files but its return only a .m4a format, I need the mp3 format - (BOOL) combineVoices1 { NSError *error = nil; BOOL ok = NO; NSArray *paths =…
dineshprasanna
  • 1,284
  • 4
  • 20
  • 37
2
votes
1 answer

Video recorded from EAGLView is flipped when uploaded to youtube

In my ios app, I am trying to record video of the content of EAGLView(There is no Camera involvement). I have no problem recording the video. After recording I have to add few sound tracks to the video and then have to share this video to Youtube…
2
votes
1 answer

AVFoundation export video with animation at specific time duration in previously recorded video?

I am using AVAssetExportSession to export video with my animation at specific time. It was running fine before 2 days. Now i changed something and it stopped working i don't know what is wrong with it. Sorry for too long code. Can anyone help me…
2
votes
1 answer

How to merge the Live streaming video and audio in iphone sdk

I am developing video based application in IOS. In my application I need to merge video and audio.I have merged the local video and audio file but I am not able to merge the live streaming video and audio if I try to merge them means the app is…
btmanikandan
  • 1,923
  • 2
  • 25
  • 45
2
votes
1 answer

Can't play AVMutableComposition with sound

I'm currently working on an iPhone App, that only plays the Audio Track of an .mp4. The Player starts playing, but I can't hear any sound. Here is the Code: NSURL *videoUrl = [NSURL…
Mark
  • 21
  • 2
2
votes
0 answers

IOS adding transitions between videos

I'm trying to create a video By combining two videos It works properly until I tried to add transition between videos It gives me an unplayable video file. The code : AVMutableComposition* mixComposition = [AVMutableComposition composition]; …