video_normalizer_android 0.1.2
video_normalizer_android: ^0.1.2 copied to clipboard
Android implementation of the video_normalizer plugin, built on Jetpack Media3 Transformer. No bundled FFmpeg and no native libraries.
0.1.2 #
- Fixed: every transcode failed with
output_validation_failed("videoProfile expected main, was high") on phones whose H.264 encoder offers the High profile. Media3's encoder factory replaced the requested profile with High. The plugin now configures the video encoder itself, with exactly the profile and level it verified. - Changed: a Dolby Vision recording on a device without a Dolby Vision
decoder is handed to the HEVC or H.264 decoder as plain HEVC or H.264.
Media3 passed the Dolby Vision profile and level numbers to that decoder,
which mean something else there. This is meant to fix
transcoding_failed(ERROR_CODE_DECODING_FAILED) for such recordings on phones with a MediaTek decoder; it could not be confirmed on such a phone. - Changed: when a video decoder fails on a source that its declared
capabilities do not cover (10-bit HEVC, the frame size, the frame rate),
the error is
unsupported_video_codecwith the reason indetails['reason'], instead oftranscoding_failed. - Tested on the API 34 emulator only. No phone was attached: that a hardware encoder now writes Main, and that the Dolby Vision recording now decodes, are not tested.
0.1.1 #
- Lower minimum SDK: Flutter 3.47.6 and Dart 3.13 (was Flutter 3.50 and Dart 3.14). No code change. Built and smoke-tested on an emulator from an app created with Flutter 3.47.6 (AGP 9.1.0, Gradle 9.3.1, Kotlin Gradle Plugin 2.4.0).
0.1.0 #
First development version.
- Jetpack Media3 Transformer 1.11.1; no native library, no FFmpeg, no permission.
- Analysis with
MediaExtractorand an MP4 box scanner; settings confirmed against the device's encoders before decoding; scaling, frame-rate reduction, audio mix-down, metadata filtering; the index is moved to the front for recordings of any length; the output is validated before it is returned. content://URIs are read without copying.- Builds with AGP 9's built-in Kotlin and with the Kotlin Gradle Plugin. Compatible with 16 KB page sizes.
- Integration tested on emulators only (API 34; release build also on API 35 with 16 KB pages). HDR tone mapping and hardware encoders are not tested.