cmsamplebufferref Questions

4

Solved

I am trying to create a copy of a CMSampleBuffer as returned by captureOutput in a AVCaptureAudioDataOutputSampleBufferDelegate. The problem I am having is that my frames coming from delegate meth...
Chalaza asked 24/10, 2017 at 10:46

1

I'm using captureOutput:didOutputSampleBuffer:fromConnection: in order to keep track of the frames. For my use-case, I only need to store the last frame and use it in case the app goes to backgroun...
Euryale asked 10/10, 2015 at 21:38

4

Solved

I try to write ios camera, and I took some part of code from apple: - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(...
Hellenism asked 2/6, 2016 at 14:0

3

I am using an AVSampleBufferDisplayLayer to display CMSampleBuffers which are coming over a network connection in the h.264 format. Video playback is smooth and working correctly, however I cannot ...

1

Solved

Scenario: I am writing an iOS app to try decode a videoFile.mp4. I am using AVAssetReaderTrackOutput with AVAssetReader to decode frames from the video file. This works very well. I get each & ...
Donnelly asked 28/1, 2018 at 11:45

5

Solved

I am using AVFoundation and getting the sample buffer from AVCaptureVideoDataOutput, I can write it directly to videoWriter by using: - (void)writeBufferFrame:(CMSampleBufferRef)sampleBuffer { CM...
Elasmobranch asked 13/12, 2011 at 17:35

0

I'am splitting the recording into different files while recording... The problem is, captureOutput video and audio sample buffers doesn't correspond 1:1 (which is logical) - (void)captureOutput:(...

2

This has bothering me for a while. i have video convert to convert video into “.mp4” format. But there is a crash that happens on some video but not all. here is the crash log *** Terminating app...
Yarborough asked 16/2, 2016 at 7:7

1

I want to display some CMSampleBuffer's with the AVSampleBufferDisplayLayer, but it freezes after showing the first sample. I get the samplebuffers from the AVCaptureVideoDataOutputSampleBuffer d...
Abran asked 24/2, 2015 at 15:49

1

Solved

I am trying to take a video file read it in using AVAssetReader and pass the audio off to CoreAudio for processing (adding effects and stuff) before saving it back out to disk using AVAssetWriter. ...
Linhliniment asked 19/7, 2015 at 19:33

1

I developed and iOS application which will save captured camera data into a file and I used (void) captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuff...
Predisposition asked 27/3, 2015 at 8:23

1

Solved

I'm trying to add a watermark/logo on a video that I'm recording using AVFoundation's AVCaptureVideoDataOutput. My class is set as the sampleBufferDelegate and receives the CMSamplebufferRefs. I a...
Horme asked 4/7, 2014 at 14:14

1

I noticed in the iOS documentation for AVAssetWriterInput you can pass nil for the outputSettings dictionary to specify that the input data should not be re-encoded. The settings used for encodi...
Semasiology asked 26/3, 2013 at 3:53

2

I'm working with AVFoundation for capturing and recording audio. There are some issues I don't quite understand. Basically I want to capture audio from AVCaptureSession and write it using AVWriter...

1

Solved

I have a program that views a camera input in real-time and gets the color value of the middle pixel. I use a captureOutput: method to grab the CMSampleBuffer from an AVCaptureSession output (which...

1

I am trying to crop and scale a CMSampleBufferRef based on user's inputs, on ratio, the below code takes a CMSampleBufferRef, convert it into a CVImageBufferRef and use CVPixelBuffer to crop the in...
Nostology asked 19/12, 2011 at 12:34

1

Solved

How do you convert CMSampleBufferRef to NSData? I've managed to get the data for an MPMediaItem by following Erik Aigner's answer on this thread, however the data is of type CMSampleBufferRef. I...
Hamamatsu asked 18/12, 2011 at 18:54
1

© 2022 - 2024 — McMap. All rights reserved.