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
iOS / iPhone - AVAssetWriter : How to use endSessionAtSourceTime:
I am using AVAssetWriter to create an MPEG4 file.
I start a video session with:
[assetWriter startSessionAtSourceTime:kCMTimeZero];
Now the video file is written fine if I finish the session with this:
[assetWriter…

Zigglzworth
- 6,645
- 9
- 68
- 107
0
votes
1 answer
Having issue with AVAssetWriterInput parameter sourceFormatHint
I am working with AVAssetWriterInput but sourceFormatHint parameter is giving this warning:
Incompatible integer to pointer conversion sending 'int' to parameter
of type 'CMFormatDescriptionRef' (aka 'const struct
opaqueCMFormatDescription…

S.J
- 3,063
- 3
- 33
- 66
0
votes
1 answer
AVAssetWriter corrupting the video trimmed by AVAssetExportSession
I am trying to trim and then compress a video file.
For trimming I am using AVAssetExportSession
For compression I am using AVAssetWriter.
If I use both codes individually every thing works fine but If I trim and then feed the trim output for…

S.J
- 3,063
- 3
- 33
- 66
0
votes
1 answer
Trouble converting array of images to MP4 file
I have an array of images that converts to an MP4 file. From what I can tell, it doesn't seem the images are being added to the video frame for the video causing it to have a zero frames in the video. How would I fix this error to correctly convert…

Chris C
- 271
- 1
- 2
- 11
0
votes
1 answer
how to specify reference frames for H264 encoding in iOS?
I'm trying to improve the video quality of my video recording app, the resulted video always have 1 reference frames (see below), while we do see videos from other apps having this value of 2, I checked apple documents and searched SO, but not able…

user2417394
- 1
- 2
0
votes
1 answer
Terminated App due to memory pressure While creating Video ios
I am create the video using the Array of images . If I select more than 40 images from gallery it gives the Error:Terminated App Due to memory pressure I am use CVPixelBufferRef to create the Video.
I write to create the video
for (int i=0;…

Milan patel
- 223
- 2
- 15
0
votes
1 answer
Converting array of images to mp4
I tried to convert an array of images to one mp4 file and it seems to work but when the video player starts to play it only shows a black view. I followed some other posts on here to convert images and this what I got. When I test it, all the…

Chris C
- 271
- 1
- 2
- 11
0
votes
1 answer
Capturing the screen and writing it to a file in iOS
I got an application that play a few UIView Animations with sounds (using AVAudioPlayer).
Can someone please show how I can capture everything that is going on inside a view and save it as a video file on the device? i wasn't able to find a single…

Chiko
- 606
- 9
- 21
0
votes
1 answer
Scale and crop CMSampleBufferRef
I am using AvFoundation & AVCaptureVideoDataOutputSampleBufferDelegate to record a video.
I need to implement Zoom functionality in the video being recorded. I am using the following delegate method.
- (void)captureOutput:(AVCaptureOutput…

iOS_DEV
- 921
- 6
- 15
0
votes
1 answer
AVAssetWriter memory error
I have few methods that are supposed to write video in mov file to temp dir, but after ~15 sec. I'm getting errors:
Received memory warning.
Received memory warning.
Received memory warning.
Received memory warning.
Then app is crashing. I'm stuck…

palusik
- 111
- 11
0
votes
1 answer
Reading from two files one after other using avassetreader
What I need is to merge two movie files. What I need is to read from the files and write the sample to a different file. How can I read form one file and after its over continue reading the 2nd file. So that I continuously receive sample buffers…

borncrazy
- 1,589
- 1
- 12
- 9
0
votes
0 answers
ios - AVAssetWriter Writes Video but does not record AUDIO
I have been successfull in making viedo (though Blur) but have been
Unsuccessful in recording audio Please Help.
I am using the following code Pls go through it ans suggest some solution
or a working tutorial.
I am Appending the Sample Buffer…

iAviatorJose
- 418
- 2
- 10
- 25
0
votes
1 answer
Application crashes in AVFoundation framework in iOS 7.0.x ONLY
I am recording video in my app. My app crashes in iOS 7.0.x only. My application is crashing while writing the captured video in file. Below is my code to setup session & toggle camera
- (BOOL) setupSessionWithPreview:(UIView *)preview…

iOSAppDev
- 2,755
- 4
- 39
- 77
0
votes
1 answer
AVAssetWriter - render a single image for 10 seconds
Trying this:
int frameCount = 30*10;
for(int i = 0; i

soleil
- 12,133
- 33
- 112
- 183
0
votes
0 answers
Synchronously call requestMediaDataWhenReadyOnQueue
I am calling this inside performBlock of my UIManagedDocument's managedObjectContext's parentContext. That is, it's on a background thread. Within the block I want to call requestMediaDataWhenReadyOnQueue synchronously. In the past , I could use…

John
- 2,672
- 2
- 23
- 29