If you can't find the error code in VTD I decided to just include them here. (Again, all these errors and more can be found inside the Videotoolbox in Project Navigator.) itself). You will get one of these error codes either in VTD decoding callbacks, or when you create a VTD session if you make an error.
Kvtpropertynotsupportederr = -12900,kvtpropertyreadonlyerr = -12901,kvtparametererr = -12902,kVTInvalidSessio Nerr = -12903,kvtallocationfailederr = -12904,kvtpixeltransfernotsupportederr = -12905,//C.F. -8961kvtcouldnot Findvideodecodererr = -12906,kvtcouldnotcreateinstanceerr = -12907,kvtcouldnotfindvideoencodererr = -12908,kVTVideoD Ecoderbaddataerr = -12909,//c.f. -8969kvtvideodecoderunsupporteddataformaterr = -12910,//C.F. -8970kvtvideodecoderm Alfunctionerr = -12911,//c.f. -8960kvtvideoencodermalfunctionerr = -12912,kvtvideodecodernotavailablenowerr = 1291 3,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,
In addition to the above vterrors, I think it is worth adding that in trying Levi's example encountered Cmformatdescription,cmblockbuffer,cmsamplebuffer error.
Kcmformatdescriptionerror_invalidparameter = -12710,kcmformatdescriptionerror_allocationfailed =-12711, kcmformatdescriptionerror_valuenotavailable = -12718,kcmblockbuffernoerr = 0,kcmblockbufferstructureallocationfail Ederr = -12700,kcmblockbufferblockallocationfailederr = -12701,kcmblockbufferbadcustomblocksourceerr = -12702,kCMBlo Ckbufferbadoffsetparametererr = -12703,kcmblockbufferbadlengthparametererr =-12704, Kcmblockbufferbadpointerparametererr = -12705,kcmblockbufferemptybbuferr = -12706,kcmblockbufferunallocatedblocker r = -12707,kcmblockbufferinsufficientspaceerr = -12708,kcmsamplebuffererror_allocationfailed = -12730,kCMSampleBu ffererror_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,k cmsamplebuffererror_datacanceled =-16751,
===================================================================
Reference: http://qanda.ren/15-1303
Videotoolbox Hardware codec H. Video Stream error code