Error code(-12910) from VTDecompressionSessionCreate

Hi Guys

I want decode h264 raw data by VideoToolKit, When I create session(VTDecompressionSessionCreate) always return -12910,

Here is my setting as below, Dose any one can help me to resolve this issue?



NSDictionary *destinationImageBufferAttributes =[NSDictionary dictionaryWithObjectsAndKeys:

[NSNumber numberWithBool:YES],

(id)kCVPixelBufferOpenGLESCompatibilityKey,nil];


status = VTDecompressionSessionCreate(kCFAllocatorDefault, videoFormatDescr, NULL, (__bridge CFDictionaryRef)destinationImageBufferAttributes, &callback, &session);



(lldb) po videoFormatDescr

<CMVideoFormatDescription 0x16d98500 [0x337b38a0]> {

mediaType:'vide'

mediaSubType:'avc1'

mediaSpecific: {

codecType: 'avc1' dimensions: 1600 x 1600

}

extensions: {<CFBasicHash 0x16d8b8c0 [0x337b38a0]>{type = immutable dict, count = 6,

entries =>

0 : <CFString 0x338697b0 [0x337b38a0]>{contents = "SampleDescriptionExtensionAtoms"} = <CFBasicHash 0x16d9f900 [0x337b38a0]>{type = immutable dict, count = 1,

entries =>

1 : <CFString 0x16d60430 [0x337b38a0]>{contents = "avcC"} = <CFData 0x16d56810 [0x337b38a0]>{length = 75, capacity = 75, bytes = 0x01420028ffe1003867420028e900c806 ... 68ce315200000001}

}


1 : <CFString 0x338a44f8 [0x337b38a0]>{contents = "CVPixelAspectRatio"} = <CFBasicHash 0x16d71e80 [0x337b38a0]>{type = immutable dict, count = 2,

entries =>

0 : <CFString 0x338a4518 [0x337b38a0]>{contents = "VerticalSpacing"} = <CFNumber 0x16d6db20 [0x337b38a0]>{value = +1600, type = kCFNumberSInt32Type}

2 : <CFString 0x338a4508 [0x337b38a0]>{contents = "HorizontalSpacing"} = <CFNumber 0x16d8b2f0 [0x337b38a0]>{value = +1600, type = kCFNumberSInt32Type}

}


2 : <CFString 0x338a4498 [0x337b38a0]>{contents = "CVFieldCount"} = <CFNumber 0x16d3ead0 [0x337b38a0]>{value = +1, type = kCFNumberSInt32Type}

3 : <CFString 0x338a4608 [0x337b38a0]>{contents = "CVImageBufferChromaLocationBottomField"} = <CFString 0x338a4618 [0x337b38a0]>{contents = "Left"}

5 : <CFString 0x338a45f8 [0x337b38a0]>{contents = "CVImageBufferChromaLocationTopField"} = <CFString 0x338a4618 [0x337b38a0]>{contents = "Left"}

6 : <CFString 0x33869850 [0x337b38a0]>{contents = "FullRangeVideo"} = <CFBoolean 0x337b3aa0 [0x337b38a0]>{value = true}

}

}

}

This error is:

kVTVideoDecoderUnsupportedDataFormatErr = -12910 (see VTErrors.h)

There are size limitations in the HW decoders; they vary between device models.

You are running into such a limitation when you specify 1600 X 1600 dimensions.

The iPhone 5 only supports up to a maximum 1080p (1920 x 1080).

Please let us know if you have any additional questions about this topic.

Apple Developer Technical Support

Error code(-12910) from VTDecompressionSessionCreate
 
 
Q