使用 OpenH264 编码 H.264 视频

发布于 2025-01-17 03:50:22 字数 269 浏览 3 评论 0原文

我目前正在尝试弄清楚如何使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文