Questions tagged [video-toolbox]

The Video Toolbox framework (VideoToolbox.framework) includes direct access to hardware video encoding and decoding in iOS and OSX.

117 questions
0
votes
1 answer

VTCompressionSession Bitrate/Datarate overshooting

I have been working on an H264 hardware accelerated encoder implementation using VideoToolbox's VTCompressionSession for a while now, and a consistent problem has been the unreliable bitrate coming out of it. I have read many forum posts and looked…
LarryW
  • 89
  • 9
0
votes
0 answers

IOS from NSData to NALUs and video buffers

I want to start working on a low level video player, at this stage, Iam able to download the videos from the server cache them, play them with AVPlayer. what I want to do is to remove the AVPlayer, replace it with low level API's (AVFoundation,…
user3703910
  • 624
  • 1
  • 5
  • 25
0
votes
1 answer

What is difference between AV Foundation and VideoToolboox?

When to use AV Foundation and when to use Video ToolBox? Can anyone please explain something about it?
mahbubcseju
  • 2,200
  • 2
  • 16
  • 21
0
votes
0 answers

Using CIImage or CGImage as direct input videotoolbox

I'm try to make a feature that apply filter frame capture from camera and stream via network. Because of bad performance while apply filter in CMSampleBuffer or CVPixelBuffer (CPU side), i try to convert data from CMSampleBuffer (raw from camera…
0
votes
0 answers

UIImage Size Property Returning Pixel Dimensions Instead of Points

I'm taking a CVImageBufferRef from the camera output, then converting it to a CGImageRef with VideoToolbox, then converting that to a UIImage. Weird thing is.... when I check the size of the UIImage, it's printing out the pixel width NOT the point…
Gukki5
  • 497
  • 6
  • 22
0
votes
0 answers

encoding and decoding using VideoToolBox

I'm writing a Mac app that encodes AVCaptureVideoDataOutput with H264 using videotoolbox framework. VTCompressionSessionRef session; OSStatus ret = VTCompressionSessionCreate(NULL, (int)width, (int)height, kCMVideoCodecType_H264, NULL, NULL, NULL,…
0
votes
1 answer

VideoToolBox Decoding image display is flickring in Yosemite OSX

I have used videoToolBox for encoding and decoding data, so once we got data for decode directly we are passing to AVSampleBufferDisplayLayer here is the code snippet -(CVPixelBufferRef)decode:(AVPacket*)vp { CVPixelBufferRef…
PR Singh
  • 653
  • 5
  • 15
0
votes
1 answer

VTCompressionSessionEncodeFrame: last seconds are lost?

I am using VTCompressionSessionEncodeFrameWithOutputHandler to compress pixel buffers from camera into raw h264 stream. I am using kVTEncodeFrameOptionKey_ForceKeyFrame to be sure that every output from VTCompressionSessionEncodeFrame is not…
IPv6
  • 405
  • 4
  • 17
0
votes
2 answers

Converting NSDictionary to CFDictionary in VideoToolbox

What's the difference between const void *keys[] = { kCVPixelBufferPixelFormatTypeKey }; OSStatus pixelFormatType = kCVPixelFormatType_32BGRA; CFNumberRef pixelFormatTypeRef = CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type,…
viz
  • 1,247
  • 16
  • 27
0
votes
1 answer

How to set frame rate when using iOS VTCompression to encode video

In my work, I try to use iOS VideoToolBox to encode my video from capture. It worked . But when I try to set the fps, it can not work, the video encode stream's fps always is 30. In my code, I used this code to try to set fps (but it not…
A. Leo
  • 1
  • 2
0
votes
1 answer

Memory leak on IOS9-VTDecompressionSessionDecodeFrame

I use the Video tool box, to decode h264 data on IOS8.x. When this code run on IOS 9.x, I got a memory leak every time I call VTDecompressionSessionDecodeFrame, and I can't see any memory leak in Instruments tool! here is the…
xiao
  • 1
  • 1
0
votes
2 answers

VideoToolbox can't decode MFT encoded H264 properly

Did anyone experience an issue where VideoToolbox can't decode Media Foundation Transform (MFT) encoded H264 properly? The decoded frame has green block distortion more than half of the frame. I tried Livy Stork's example for decoding MFT encoded…
Jetdog
  • 91
  • 1
  • 2
  • 6
1 2 3 4 5 6 7
8