Android MediaCodec H264编码设置Main Profile & High Profile

本文探讨了在Android上使用H264的Main Profile (MP) 和 High Profile (HP) 进行硬件编码的原因,由于其能有效降低视频码率。主要内容包括Android平台从6.0到7.0对MP的支持变化,以及平台厂商如高通、MTK等对HP的支持情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. 为什么要用Main Profile & High Profile

在Android上硬编码视频码率远远高于软编码,原因是Android只支持H264 Baseline。MP(Main Profile )& HP(High Profile)可以大幅减少视频的码率。关于H264 Profile参见:H264 Profile

2. Android平台对MP & HP的支持情况

2.1 Android

Google声称在Android 6.0就已经支持MP,但是6.0的源代码中还是强制使用Baseline:

    if (h264type.eProfile != OMX_VIDEO_AVCProfileBaseline) {
        ALOGW("Use baseline profile instead of %d for AVC recording",
            h264type.eProfile);
        h264type.eProfile = OMX_VIDEO_AVCProfileBasel
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值