一、iOS11支持

硬解流程

二、具体处理
视频文件的“格式描述”(CMFormatDescriptionRef)可通过以下两种方法创建:
CMVideoFormatDescriptionCreate
CMVideoFormatDescriptionCreateFromHEVCParameterSets
CMVideoFormatDescriptionCreateFromH264ParameterSets
前者接受extradata,后者接受参数集(Parameter Sets)。
三、格式兼容
参考2014 wwdc的介绍,增加Elementary Stream格式(Annex-B)的转换支持。

hvcC格式处理
extradata size check
NAL size 3 to 4 check
annex-b格式处理
参14496-15,转hvcC
ff_isom_write_hvcc
网友评论