VideoToolbox硬件编解码H.264视频流错误码

Posted wainiwann

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VideoToolbox硬件编解码H.264视频流错误码相关的知识,希望对你有一定的参考价值。

如果你不能找到在VTD中的错误代码我决定只包括他们在这里。 (同样,所有这些错误,并更可以在里面VideoToolbox在Project Navigator中找到。本身)。
 您将获得无论是在VTD中解码回调,或当您创建VTD会话,如果你做了错误,这些错误代码之一。
kVTPropertyNotSupportedErr    = -12900,
kVTPropertyReadOnlyErr     = -12901,
kVTParameterErr       = -12902,
kVTInvalidSessionErr     = -12903,
kVTAllocationFailedErr     = -12904,
kVTPixelTransferNotSupportedErr   = -12905, // c.f. -8961
kVTCouldNotFindVideoDecoderErr   = -12906,
kVTCouldNotCreateInstanceErr   = -12907,
kVTCouldNotFindVideoEncoderErr   = -12908,
kVTVideoDecoderBadDataErr    = -12909, // c.f. -8969
kVTVideoDecoderUnsupportedDataFormatErr = -12910, // c.f. -8970
kVTVideoDecoderMalfunctionErr   = -12911, // c.f. -8960
kVTVideoEncoderMalfunctionErr   = -12912,
kVTVideoDecoderNotAvailableNowErr  = -12913,
kVTImageRotationNotSupportedErr   = -12914,
kVTVideoEncoderNotAvailableNowErr  = -12915,
kVTFormatDescriptionChangeNotSupportedErr = -12916,
kVTInsufficientSourceColorDataErr  = -12917,
kVTCouldNotCreateColorCorrectionDataErr = -12918,
kVTColorSyncTransformConvertFailedErr = -12919,
kVTVideoDecoderAuthorizationErr   = -12210,
kVTVideoEncoderAuthorizationErr   = -12211,
kVTColorCorrectionPixelTransferFailedErr = -12212,
kVTMultiPassStorageIdentifierMismatchErr = -12213,
kVTMultiPassStorageInvalidErr   = -12214,
kVTFrameSiloInvalidTimeStampErr   = -12215,
kVTFrameSiloInvalidTimeRangeErr   = -12216,
kVTCouldNotFindTemporalFilterErr  = -12217,
kVTPixelTransferNotPermittedErr   = -12218,


除了上述VTErrors,我认为这是值得补充说,则在尝试李维的例子遇到CMFormatDescription,CMBlockBuffer,CMSampleBuffer错误。
kCMFormatDescriptionError_InvalidParameter = -12710,
kCMFormatDescriptionError_AllocationFailed = -12711,
kCMFormatDescriptionError_ValueNotAvailable = -12718,
kCMBlockBufferNoErr        = 0,
kCMBlockBufferStructureAllocationFailedErr  = -12700,
kCMBlockBufferBlockAllocationFailedErr   = -12701,
kCMBlockBufferBadCustomBlockSourceErr   = -12702,
kCMBlockBufferBadOffsetParameterErr    = -12703,
kCMBlockBufferBadLengthParameterErr    = -12704,
kCMBlockBufferBadPointerParameterErr   = -12705,
kCMBlockBufferEmptyBBufErr      = -12706,
kCMBlockBufferUnallocatedBlockErr    = -12707,
kCMBlockBufferInsufficientSpaceErr    = -12708,
kCMSampleBufferError_AllocationFailed    = -12730,
kCMSampleBufferError_RequiredParameterMissing  = -12731,
kCMSampleBufferError_AlreadyHasDataBuffer   = -12732,
kCMSampleBufferError_BufferNotReady    = -12733,
kCMSampleBufferError_SampleIndexOutOfRange  = -12734,
kCMSampleBufferError_BufferHasNoSampleSizes  = -12735,
kCMSampleBufferError_BufferHasNoSampleTimingInfo = -12736,
kCMSampleBufferError_ArrayTooSmall    = -12737,
kCMSampleBufferError_InvalidEntryCount   = -12738,
kCMSampleBufferError_CannotSubdivide    = -12739,
kCMSampleBufferError_SampleTimingInfoInvalid  = -12740,
kCMSampleBufferError_InvalidMediaTypeForOperation = -12741,
kCMSampleBufferError_InvalidSampleData   = -12742,
kCMSampleBufferError_InvalidMediaFormat   = -12743,
kCMSampleBufferError_Invalidated     = -12744,
kCMSampleBufferError_DataFailed     = -16750,
kCMSampleBufferError_DataCanceled     = -16751,

===================================================================
参考:http://qanda.ren/15-1303

以上是关于VideoToolbox硬件编解码H.264视频流错误码的主要内容,如果未能解决你的问题,请参考以下文章

iOS 视频硬解码

iOS-VideoToolbox硬编码H264

iOS8系统H264视频硬件编解码说明

视频编解码·学习笔记3. H.264视频编解码工程JM的下载与编解码

H.264视频编解码器——参考软件JM的下载与编解码

H.264/AVC视频编解码技术详解十熵编码算法:CAVLC原理