
tl;dr: In the previous transformer, the transcoding flow is - If a the GL's input surface (from decoder) does not have data, wait 10ms (DO_SOME_WORK) - Else, make the decoder render **ONE** frame to the GL's input surface - Wait at least 10ms, until the frame's texture is available - Then process the texture The process is quite slow, so in the new version, we do: - If a the GL's input surface (from decoder) does not have data, wait 10ms (DO_SOME_WORK) **same** - Else, make the decoder render **as many frames** to the GL's input surface - Process **as many** available textures in this DO_SOME_WORK cycle PiperOrigin-RevId: 415474722
Transformer module
Provides functionality for transforming media files.
Getting the module
The easiest way to get the module is to add it as a gradle dependency:
implementation 'com.google.android.exoplayer:exoplayer-transformer:2.X.X'
where 2.X.X
is the version, which must match the version of the other media
modules being used.
Alternatively, you can clone this GitHub project and depend on the module locally. Instructions for doing this can be found in the top level README.
Using the module
Use of the Transformer module is documented in the developer guide.