lat_hdr_transcoder
The purpose of this plugin is clear and simple
It checks if the video file is in HDR format and converts HDR video to SDR
The conversion utilizes the capabilities of the native platform (Android, iOS)
(FFMPEG is not utilized)
Be sure to check the minimum supported version
See the example app for more details
Android
transcoding
supported 29+
iOS
isHdr
supported 14+
How to use
Check HDR format
bool isHdr = await LatHdrTranscoder().isHdr(String path)
Transcoding
LatHdrTranscoder().onProgress.listen(dynamic value) {
print(value) // 0.0 to 1.0
}
String? sdrVideoPath = await LatHdrTranscoder().transcoding(String path)
Clear cache
bool success = await LatHdrTranscoder().clearCache()