光头小杨 2020-03-17 11:37 采纳率: 0%
浏览 297

macos 使用VideoToolBox编码H265一直失败

在mac上使用VideoToolBox上使用H265编码,当调用VTCompressionSessionEncodeFrame就会报下面的错误,并且在此之前设置了kCVImageBufferTransferFunctionKey,设置方法如下:

CVBufferSetAttachment(pixeBuffer,kCVImageBufferTransferFunctionKey,
kCVImageBufferTransferFunction_ITU_R_709_2,
kCVAttachmentMode_ShouldPropagate);

求解应该怎么做?

convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.
convertAttachmentToIOSurfaceStruct Error: For kCVImageBufferTransferFunctionKey, attachmentValue is invalid.

  • 写回答

1条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥20 苹果app名字侵权商标,我投诉了,但是苹果一直没回怎么办
      • ¥15 Android studio运行不成功总是报错
      • ¥15 pycharm 加载软件包列表时出错connect timed out
      • ¥15 和您碰到了同一个问题
      • ¥15 如何在微信支付V3PHP版请求中添加header?
      • ¥15 在数字信号处理中用MATLAB显示波形。
      • ¥15 keil MDK软件进行仿真调试的局限
      • ¥15 关于gateway产生临时文件夹的问题
      • ¥15 Java Broken Pipe以及OOM
      • ¥20 请问有没有RTL8211FS的参考原理图