avassetwriter Questions

1

I have an app that is like Vine or Instagram Video and I am trying to delete the last recorded segment. I am using AVAssetWriter and appending the sample buffer to the asset writer input when recor...
Willson asked 24/1, 2014 at 18:1

0

This is an extension to an unanswered question I had before: AVCaptureSession is not recording audio from the mic in Swift I'm very unclear how I can write both video that is being modified in rea...
Kopple asked 11/4, 2018 at 21:15

1

Solved

Me and my team are trying to re-encode a video file to a more "gify" feeling by changing the video frame rate. We are using the following properties for the AVAssetWriterInput: let videoSettings:[...
Sexagenary asked 12/3, 2018 at 12:55

1

Solved

Our app is using AVFoundation to capture video, display, manipulate, and export the video using its sample buffers. I am trying to understand what the CMSampleBufferGetPresentationTimeStamp(_:) CMT...
Faucher asked 25/11, 2015 at 19:40

3

I'm using PBJVision to implement tap-to-record video functionality. The library doesn't support orientation yet so I'm in the process of trying to engineer it in. From what I see, there are three w...
Hydraulic asked 30/3, 2014 at 15:25

2

Solved

I have this code that resizes a video from 1280 x 720 to 640 x 360 But i want a resize with no crop. Is there a way to do a full resize the don't crop ? Here's the code class func resizer(inputU...
Staurolite asked 15/2, 2016 at 6:15

1

I am trying to extract audio track from .mp4 video file and convert to .m4a audio file with this outputSettings using AVAssetWriter class AudioChannelLayout channelLayout; memset(&channelLayou...
Gibeonite asked 10/10, 2017 at 14:26

0

I record videos with AVAssetWriter. The user can send the video, then I call finishWriting, or cancel the recording, then I call cancelWriting. How I record: func captureOutput(_ captureOutput: A...

4

Solved

I am trying to combine a single video with a single image. This is not trying to combine many images into a single video such as create movie from [UIImage], Swift How do I export UIImage array ...
Racemic asked 27/6, 2016 at 5:11

2

Solved

Let me see if I understood it correctly. At the present most advanced hardware, iOS allows me to record at the following fps: 30, 60, 120 and 240. But these fps behave differently. If I shoot at ...
Justificatory asked 12/4, 2017 at 9:14

3

Solved

I'm developing a video compression functionally; my ideas are below: Getting resolution and bit-rate of video. Check resolution of video. If it larger 640x480, I will compress this video in half...

7

Solved

I am at my wits end here despite the good information here on StackOverflow... I am trying to write an OpenGL renderbuffer to a video on the iPad 2 (using iOS 4.3). This is more exactly what I am ...
Nonpareil asked 27/6, 2011 at 21:14

3

We are trying to understand how to control/specify the frame rate for videos that we are encoding with AVAssetReader and AVAssetWriter. Specifically, we are are using AVAssetReader and AVAssetWrite...
Hobbism asked 4/6, 2013 at 6:21

0

Im using this wildly popular library for recording segments of video like Vine: https://github.com/rFlex/SCRecorder It works great and in the demo it adds a watermark to all videos created, but th...
Giffer asked 3/5, 2016 at 19:13

2

I'm using GPUImage in my application and trying to filter video. Live video filtering is working well. The trouble comes up when I try to read a video into memory from the filesystem and apply filt...
Blastema asked 24/3, 2014 at 21:32

1

Solved

What's the right way to add an image overlay to a video created with AVAssetWriter? It's possible to do so with AVAssetExportSession, but this question is about how to do so with AVAssetWriter so ...
Sucking asked 15/2, 2016 at 22:12

1

Solved

Based on this SO post, the code below rotates, centers, and crops a video captured live by the user. The capture session uses AVCaptureSessionPresetHigh for the preset value, and the preview layer...

2

Solved

I'm trying to record segments of audio and recombine them without producing a gap in audio. The eventual goal is to also have video, but I've found that audio itself creates gaps when combined wit...
Krystinakrystle asked 24/11, 2015 at 21:2

1

I want to record a series of clips that when played together via a video player or ffmpeg -f concat play back seemlessly. In either scenario right now, I'm getting a very noticeable audio hiccup a...
Candycecandystriped asked 20/11, 2015 at 14:47

1

Solved

I'm trying to take an AVCaptureSession and encode to mp4. It seems like this should be straightforward, and I'm trying to encode a single 960x540 video stream; I'm not worried about audio for the p...
Laroy asked 18/11, 2015 at 0:57

3

Solved

I'am creating a video from an array of images. The purpose of my work is to create a .mov video with no compression. I have see in developer library that it exist a key "AVVideoCompressionPropertie...
Camise asked 2/7, 2012 at 15:27

3

Solved

I have been struggling with this problem for over a week. I hope someone sees what I'm doing wrong. I am attempting to use the finishWritingWithCompletionHandler: method since the finishWriting met...
Shaylynn asked 8/2, 2013 at 4:48

1

Solved

I'm working on a personal iOS project that requires full screen videos (15 seconds in length) to be uploaded to a backend over a 4G connection. While I can take videos just fine, the output size of...
Budding asked 16/1, 2015 at 15:58

1

I have an AudioTapProcessor attached to AVPlayerItem. which will call static void tap_ProcessCallback(MTAudioProcessingTapRef tap, CMItemCount numberFrames, MTAudioProcessingTapFlags flags, Audio...
Stringed asked 8/4, 2015 at 12:31

2

I have a video recording app for the iPhone. I am using AVAssetWriter for writing the recorded video data to a file. I am also interested in embedding custom metadata to the file. For eg: I want to...
Larianna asked 25/4, 2011 at 10:46

© 2022 - 2025 — McMap. All rights reserved.