Questions tagged [avcomposition]

72 questions
0
votes
1 answer

Trimming a video, while keeping quality

I am trimming an existing (stored in the gallery) video into smaller chunks; but I find the resulting video quality to be too degraded: var chunkNumber = 1 let startTime = CMTime(seconds: 0.0, preferredTimescale: CMTimeScale(600.0)) let theDuration…
coco
  • 2,998
  • 1
  • 35
  • 58
0
votes
1 answer

Audio video merge with main video sound

I can merge a video with another audio nicely. But I also need main video sound in final output video. That means I want to set main video sound with low volume. How can I do this? -(void)mergeAndSave { //Create AVMutableComposition Object which…
MMR- Saad
  • 11
  • 7
0
votes
1 answer

AVAsset with separate video and audio urls (iOS)

Is it possible to create an AVAsset object with two urls, one for the audio and the other one for the video track? I have tried it with an AVMutableComposition but it seems to load the entire content first and buffer it somewhere before the…
0
votes
1 answer

How to edit AVMutableCompositionTrack with multiple segment?

I have function that adds multiple segments in a AVMutableCompositionTrack in a video editor for iPhone. I am using following method [self.compositionVideoOneTrack insertTimeRange:video_timeRange ofTrack:[[videoAsset…
0
votes
1 answer

AVPlayer does not play back AVComposition with more than 2 clips

I am attempting to stitch together video assets using AVComposition based on the code here: https://developer.apple.com/library/mac/samplecode/AVCompositionDebugViewer/Introduction/Intro.html On OSX it works perfectly, however on iOS when playing…
user3265561
  • 812
  • 7
  • 22
0
votes
1 answer

Editing video-timing in AVComposition

I have an AVComposition containing multiple video and audio tracks. So far, it's pure programmatically, no GUI. I want the user to be able to push one track a couple of frames back or forth on will, by clicking a button. e.g: a button titled "-10…
Sti
  • 8,275
  • 9
  • 62
  • 124
0
votes
0 answers

While merging audio, both the audio come linearly though I want it to overlay

So, I try to use the following code in a 'for' loop to overlay the audio, but they are coming in linearly, with the last attached audio coming in first. [compositionAudioTrack insertTimeRange:CMTimeRangeMake(kCMTimeZero, CMTimeMake(5, 1))…
0
votes
1 answer

AVPlayerItemVideoOutput file cannot be used in AVComposition IOS7

I have a fully working app in IOS6 that breaks in IOS7 when using AVComposition. Here is the problem: In a previous view controller, I capture the users screen using AVPlayerItemVideoOutput & AVAssetWriterInputPixelBufferAdaptor to generate a video…
kungfoo
  • 597
  • 5
  • 16
0
votes
1 answer

ios AVMutuableComposition Track List and debugging

Can someone point me in the right direction to help me debug why my AVMutuableComposition for an AVPlayerItem in ios 6.1 does not load the track list correctly. What I am doing is creating an AVMutableCompositionTrack and adding Time ranges to it…
vallete
  • 21
  • 4
0
votes
1 answer

AVPlayer playback rate for AVComposition

I am using an AVPlayer to handle playback of multiple assets by putting them all in an AVMutableComposition. Everything works for normal playback, i.e. [player play], but when I try something like [player setRate:0.5], only one of the tracks in the…
0
votes
1 answer

Simple AVFoundation troubleshooting Situation

I have an app that has some video editing tools. I mix photos and videos and I am running into an odd issue. When i arrange a video composition with a video, then a photo, then back to the video it plays fine until the transition back to the video…
box86rowh
  • 3,415
  • 2
  • 26
  • 37
0
votes
1 answer

AVSynchronizedLayer doesn't match AVAssetExportSession output, Why?

The problem is this: I have a AVMutableVideoComposition which has a titleLayer (CATextLayer). I want to display to the user a preview containing this title, using AVPlayerLayer and AVSynchronizedLayer. I setup the layer like this: -…
Horatiu Paraschiv
  • 1,750
  • 2
  • 15
  • 37
1 2 3 4
5