on OS X API, you use an AVAssetWriter object to write media data to a new file of a specified audiovisual container type, such as a QuickTime movie file or an MPEG-4 file, with support for automatic interleaving of media data for multiple concurrent tracks
Questions tagged [avassetwriter]
529 questions
0
votes
1 answer
Alpha channel gone when converting UIImage to CVPixelBufferRef
I'm using this code to create a movie from different uiimages with an AVAssetWriter. The codes works great but the problem is that the Alpha channel is gone when I add the images to the writer. I can't figure out if the alpha doesn't exists in the…

Michiel Timmerman
- 353
- 1
- 3
- 11
0
votes
1 answer
CVPixelBufferCreate in RubyMotion
I'm attempting to recreate some of the functionality from https://github.com/Lockerios/VideoFromImage and discussed in this post: ASSETWriterInput for making Video from UIImages on Iphone Issues
In the pixelBufferFromCGImage:size method, I have the…

Nader Hendawi
- 375
- 1
- 7
- 17
0
votes
1 answer
Can we merge two video in AVFoundation for implementing pause and play feature functionality
Can we merge two video for implementing pause/play feature in screen recording type application in cocoa.
I did't write code yet. Because first I want to be conform about it that this can be possible.
First start video recording on pressing "Play…

Gauri rawat
- 109
- 1
- 10
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))…

rahulg
- 2,183
- 3
- 33
- 47
0
votes
2 answers
How to create Square Video using AVAssetWriter with IOS SDK?
I want to create square video using AVAssetWriter(GPUImageMovieWriter) in IOS SDK.If i resize the video output settings as 640*640 and i got result is 640*640 size video with resolution is 480*640.how to change preset for square video output.Please…

Ramkumar Paulraj
- 1,841
- 2
- 20
- 40
0
votes
1 answer
AVAssetWriter Error Code cannot create file
My friend is getting this error on his device after assetwriter is created-
Log: AVAssetWriter: 0x1e051900, outputURL = file://localhost/var/mobile/Applications/625EA2D8-0B32-41D3-ADFE-64EA5CF47CCE/Documents/AppData/Temp/12-07-13%2011:30:07.mp4,…

user2504522
- 63
- 1
- 6
0
votes
0 answers
Video creation using Array of images in iOS
I am trying to create a video from an array of images.
I created a video but I have a problem in presentation time i.e CMTime.
I am using following code to create a video
int frameCount = 1;
// Adding images here to buffer
for( int i =…

subhash Amale
- 325
- 3
- 4
- 14
0
votes
1 answer
AVAssetWriter can merge two video files
Do not tell me to use AVAssetExportSession, thank you.
I tried this, but failed.
for (int i =0; i < count; i++) {
assetWriterInput = nil;
assetWriterInput = [AVAssetWriterInput assetWriterInputWithMediaType:AVMediaTypeVideo…

bing
- 1
- 1
0
votes
1 answer
How can I save my video to a special folder in the photo album?
I have an iPhone app that streams video to our Wowza server.
I'd like to implement a new feature that collects my video frames and on completion, saves that recording to a local folder, which will be specially titled and stored in the device's photo…

user
- 3,388
- 7
- 33
- 67
0
votes
1 answer
GPUImageMovieWriter starting new recording
Can i reuse an existing GPUImageMovieWriter (after calling finishRecording) or is there a method to pause and resume the recording?
I get error if i call startRecoding after a finishRecording.
Terminating app due to uncaught exception…

Daddycat Tan Yin See
- 951
- 1
- 8
- 9
0
votes
1 answer
How to store per frame data in a movie file on iOS that can be opened by Matlab?
I am performing processing on the camera output on the iPhone that I can only perform on the device. I now need to store each processed frame together with some additional information that has been provided by the processing step. Ultimately I need…

twerdster
- 4,977
- 3
- 40
- 70
0
votes
1 answer
Audio AVAssetWriter mute
I'm trying to record audio with AVAssetWriter, and I'm getting weird skips in the output file.
I've crossed checked the code with another app that does work - anybody witness this inconistant behavior?
10x!

Oded Ben Dov
- 9,936
- 6
- 38
- 53
0
votes
0 answers
AVAssetWriter: Using an alternate encoding
I have written an application to step through (and alter) each frame of a video using AVFramework's AVAssetReader and AVAssetWriter. It works great, but I need to be able to encode the video to MPEG4.
Is there a way to change the output encoding…

Tim L
- 1
- 1
0
votes
0 answers
AVAssetWriter change of quality on the fly
Hey I am currently working with the AVAssetWriter and the AVAssetWriterInput.
In my project I would like to use the hardware acceleration of the iPhone.
Is it possible to use the AVAssetWriter to create compressed images and change the quality on…

Webchen
- 51
- 1
- 3
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