简体   繁体   English

如何在 Android webRTC 上启用 H264

[英]How to enable H264 on Android webRTC

How to enable H264 on Android WebRTC.如何在 Android WebRTC 上启用 H264。
PeerConnection to createOffer there was no h264 description in SDP. PeerConnection to createOffer在 SDP 中没有 h264 描述。

Google's current WebRTC implementation only supports hardware H.264 decoding and encoding on Android, and with select chipsets only. Google 当前的 WebRTC 实现仅支持 Android 上的硬件 H.264 解码和编码,并且仅支持部分芯片组。 So if a particular device doesn't have hardware H.264 support or has an unsupported chipset, you'll only get VP8/VP9.因此,如果特定设备不支持硬件 H.264 或具有不受支持的芯片组,您将只能获得 VP8/VP9。

Google blocks their own software codecs by default, for some reason, so if you don't have hardware decoding in your chipset (or if you use an emulator), you will get no h264 codecs when webrtc checks for them.由于某种原因,默认情况下 Google 会阻止自己的软件编解码器,因此如果您的芯片组中没有硬件解码(或者如果您使用模拟器),那么当 webrtc 检查它们时,您将不会获得 h264 编解码器。

If you go into the webrtc code and remove "OMX.google" from https://chromium.googlesource.com/external/webrtc/+/HEAD/sdk/android/src/java/org/webrtc/MediaCodecUtils.java#33 then create a custom build of webrtc for android based off that code, the software encoder will be unblocked.如果您进入 webrtc 代码并从https://chromium.googlesource.com/external/webrtc/+/HEAD/sdk/android/src/java/org/webrtc/MediaCodecUtils.java#33 中删除“OMX.google”然后根据该代码为 android 创建一个自定义构建的 webrtc,软件编码器将被解锁。

Edit: Removed proprietary information that I mistakenly thought I could link to 😬编辑:删除了我错误地认为我可以链接到的专有信息😬

H.264 在 Android M57 上的 Chrome 中与 WebRTC 配合使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM