Media3 Transformer is actively under development and we are looking to hear from you! We welcome your feedback, feature requests and bug reports in the
issue tracker. Follow the
ExoPlayer blog for the latest updates.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Media3 Transformer
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Transformer 是一种用于编辑媒体的 API,包括在格式之间进行转换(转码)、应用更改(例如从较长的视频中剪辑片段、裁剪视频帧的一部分、应用自定义效果)以及其他编辑操作。它是 Jetpack Media3 的一部分。
Transformer 与 Android 6.0 Marshmallow(API 级别 23)及更高版本兼容,并包含一些变通方法,以便在不同 Android 版本和不同设备上获得更一致的行为。该 API 基于 MediaCodec 实现,用于硬件加速视频解码和编码,并基于 OpenGL 实现,用于图形修改。Transformer 开箱即用,支持格式转换和多种类型的编辑,但如果您需要更多控制权,也可以完全自定义或替换流水线中的各种组件。例如,视频编码使用默认设置,但您也可以传递自定义视频编码器设置或替换编码器工厂,以完全控制编码器的使用方式。
如需了解如何在应用中使用 Transformer,请访问入门页面,并
试用演示版应用。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-04-29。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2026-04-29。"],[],[]]