使用 OpenH264 编码 H.264 视频
我目前正在尝试弄清楚如何使用 OpenH264 对视频进行编码,但我只是不知道要在 SSourcePicture
结构中放入什么内容。 iStride
字段代表什么? pData
字段代表什么?如何从 EncodeFrame 函数中实际获取编码数据?如果我将 iColorFormat
字段设置为 videoFormatBGRA
,我是否能够提供 BGRA 格式的帧,还是必须将帧转换为 YUV?
I'm currently trying to figure out how to encode video using OpenH264, but I just can't figure out what to put into the SSourcePicture
structure. What does the iStride
field represent? What does the pData
field represent? How do I actually get the encoded data back from the EncodeFrame function? If I set the iColorFormat
field to videoFormatBGRA
would I be able to provide frames in BGRA format, or do I have to convert frames to YUV?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论