HarmonyOS 视频编码使用surface 作为输入,是怎么携带pts的呢

HarmonyOS 视频编码使用surface 作为输入,是怎么携带pts的呢

HarmonyOS
2024-08-11 15:16:05
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
zxjiu

目前可以靠avbuffer携带pts。

OH_AVBuffer_SetBufferAttr,OH_AVBuffer_GetBufferAttr 来存和取 
typedef struct OH_AVCodecBufferAttr { 
  /* Presentation timestamp of this Buffer in microseconds */ 
  int64_t pts; 
  /* The size of the data contained in the Buffer in bytes */ 
  int32_t size; 
  /* The starting offset of valid data in this Buffer */ 
  int32_t offset; 
  /* The flags this Buffer has, which is also a combination of multiple {@link OH_AVCodecBufferFlags}. */ 
  uint32_t flags; 
} OH_AVCodecBufferAttr;
分享
微博
QQ
微信
回复
2024-08-12 14:10:20
相关问题
求鸿蒙视频编码解码具体demo
6240浏览 • 1回复 待解决
HarmonyOS如何获取视频第一帧作为封面
197浏览 • 1回复 待解决
HarmonyOS 页面数据携带返回问题
126浏览 • 1回复 待解决
视频都支持哪些编码格式
414浏览 • 1回复 待解决
怎么使用player播放网络音频
3379浏览 • 1回复 待解决
怎么拿子查询作为判断?
2043浏览 • 1回复 待解决
TextInput怎么输入中文
2598浏览 • 0回复 待解决
相机surface可以直接到encoder吗
1531浏览 • 1回复 待解决