草庐IT

ParameterSets

全部标签

ios - CMVideoFormatDescriptionCreateFromH264ParameterSets 问题

我尝试使用CMVideoFormatDescriptionCreateFromH264ParameterSets创建CMVideoFormatDescriptionRef但它失败并出现-12712错误(似乎没有在任何header中定义)我从一个mov文件(由iPhone相机应用程序创建)的avcC原子中获取了我的SPS和PPS:6176634301640029FFE1001067640029AC5680780227E59A8080808101000528EE04F2C0SPS似乎是:67640029AC5680780227E59A80808081...和​​PPS:28EE04F2C0

ios - Swift 中的 CMVideoFormatDescriptionCreateFromH264ParameterSets

CoreMedia/VideoToolboxAPI使用了很多指针,这在Swift中让我很困惑!SPS、PPS数据来self的h264流,我只是想为它创建一个VFD。我已经尝试了以下方法并希望它能正常工作,但我收到了-12710错误(kCMFormatDescriptionError_InvalidParameter=-12710)。这是我的Playground..我做错了什么??//usesCoreMediaFrameworkimportCoreMedia//spsandppsvariablesvarspsData:[UInt8]=[]varppsData:[UInt8]=[]//CM