lat_hdr_transcoder_v2 1.0.0+5 copy "lat_hdr_transcoder_v2: ^1.0.0+5" to clipboard
lat_hdr_transcoder_v2: ^1.0.0+5 copied to clipboard

It checks if the video file is in HDR format and converts HDR video to SDR video

lat_hdr_transcoder_v2 #

pub package

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

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>

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>

iOS #

isHdr supported 14+

How to use #

Check HDR format #

bool isHdr = await LatHdrTranscoderV2().isHdr(String path)

Transcoding #

Stream<double> stream = LatHdrTranscoderV2().onProgress()
stream.listen(double value) {
  print(value) // 0.0 to 1.0
}
String? sdrVideoPath = await LatHdrTranscoderV2().transcoding(String path)

Clear cache #

bool success = await LatHdrTranscoderV2().clearCache()
2
likes
150
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

It checks if the video file is in HDR format and converts HDR video to SDR video

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on lat_hdr_transcoder_v2