Медиа3 Трансформер

Transformer — это API для редактирования медиафайлов, включая преобразование между форматами (транскодирование), внесение изменений, таких как обрезка фрагмента из более длинного видео, кадрирование части видеокадра, применение пользовательских эффектов и другие операции редактирования. Он является частью Jetpack Media3 .

Transformer is compatible with Android 6.0 Marshmallow (API level 23) and higher, and includes workarounds to get more consistent behavior across Android versions and different devices. The API is implemented on top of MediaCodec for hardware-accelerated video decoding and encoding, and OpenGL for graphical modifications. Transformer supports format conversions and several types of edits out of the box, but you can also customize or replace various components in the pipeline entirely if you need more control. For example, video encoding works with default settings, but you can also pass custom video encoder settings or replace the encoder factory to get complete control over how encoders are used.

Узнайте, как использовать Transformer в своем приложении, на странице « Начало работы» , и попробуйте демо-версию приложения .