Last updated:
0 purchases
lat hdr transcoder v2
lat_hdr_transcoder_v2 #
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
Getting started #
dependencies:
lat_hdr_transcoder_v2: ^1.0.0+5
copied to clipboard
Android #
transcoding supported 29+
Add provider under
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>
copied to clipboard
create res/xml/file_paths.xml
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path
name="external"
path="." />
<external-files-path
name="external_files"
path="." />
<cache-path
name="cache"
path="." />
<external-cache-path
name="external_cache"
path="." />
<files-path
name="files"
path="." />
</paths>
copied to clipboard
iOS #
isHdr supported 14+
How to use #
Check HDR format #
bool isHdr = await LatHdrTranscoderV2().isHdr(String path)
copied to clipboard
Transcoding #
Stream<double> stream = LatHdrTranscoderV2().onProgress()
stream.listen(double value) {
print(value) // 0.0 to 1.0
}
String? sdrVideoPath = await LatHdrTranscoderV2().transcoding(String path)
copied to clipboard
Clear cache #
bool success = await LatHdrTranscoderV2().clearCache()
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.