Questions tagged [cmsamplebufferref]
71 questions
0
votes
0 answers
Understanding CMSampleBuffer & didOutputSampleBuffer
I'm trying to understand how does CMSampleBuffer works. Eventually i'm looking for the most efficient way to change the CMSampleBuffer pixels (which are at kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange format), into grayScale pixels.
The final…

Roi Mulia
- 5,626
- 11
- 54
- 105
0
votes
0 answers
A video with QuickTime play no sound, with VLC play on the sound
First I use AVCaptureSession capture vedio and audio from camero and micophone.
Then delegate method code below:
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer…

alpine
- 927
- 6
- 17
0
votes
1 answer
Writing silent CMSampleBuffer causes crash: CrashIfClientProvidedBogusAudioBufferList
i'm recording Video/Audio using AVAssetwriter and want to be able to write silent Sample Buffers. I'm not that experienced in CoreAudio, so i'm having trouble coming up with a working solution.
The idea is to keep recording video when an audio…

Legi
- 1
- 3
0
votes
1 answer
CMSampleBufferGetSampleTimingInfo: No duration?
I have a live stream, and CMSampleBufferGetSampleTimingInfo gives a duration with CMTime(value=0, timescale=0) for video.
For audio, I get 1024 samples at once, but CMSampleBufferGetSampleTimingInfo(sampleBuffer, index, &timingInfo) gives the exact…

Stefan Kendall
- 66,414
- 68
- 253
- 406
0
votes
1 answer
Get current video duration from CMSampleBufferRef
How can I get current recorded video duration from CMSampleBufferRef in delegate method
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection…

Malik Boy
- 132
- 10
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
Need help in video calling app for iOS
I am creating a simple video calling app where audio/video will stream from one device to other but problem is I don't know how video calling works especially how to get going with it in iOS .
Until now I have captured video by using…

sajwan
- 333
- 3
- 14
0
votes
1 answer
Does exist something like cvShowImage for iOS?
I'm processing images (using AVFoundation and OpenCV on iOS) and I want to simply display contents of CMSampleBufferRef (or IplImage) to screen.
Simply: I just want to display (like with OpenCV's cvShowImage()) non-converted image to see if I'm not…

user961912
- 157
- 1
- 2
- 11
-1
votes
2 answers
AVFoundation image captured is dark
On osx i use AVFoundation to capture image from a USB camera, all work fine, but the image I get is darker compared to live video.
Device capture configuration
-(BOOL)prepareCapture{
captureSession = [[AVCaptureSession alloc] init];
NSError…

Mex
- 196
- 4
- 16
-1
votes
1 answer
How could save the CMSampleBuffer to a CFArrayRef (or other container) that from didOutputSampleBuffer
I tried to save the CMSampleBuffer from didOutputSampleBuffer, as the iOS developer docs, I copy it in CFArrayRetainCallBack like blow:
static const void * ObjectRetainCallBack(CFAllocatorRef allocator, const void *value) {
CMSampleBufferRef…

Clover.P
- 26
- 2
-2
votes
1 answer
I am unable to convert this objectiveC code into swift
1.I am converting a reverse audio function of objective c into swift so that I can integrate the swift code into my program but these few lines of codes are not understandable
2.This is the following objective-c code:
CMSampleBufferRef sample;
…

Nishad Arora
- 304
- 1
- 5
- 12