Video

With easy-to-use API, the video module is a powerful tool developed to enhance and manipulate local multimedia videos. It makes complex video editing features available for developers without much coding some features are listed here:

  • AI-based Denoising: Utilizing high-level Artificial intelligence to reduce noise in video effectively.

  • Thumbnail generation: Preview of video is crucial, thumbnail generation gives you the preview image from the timeframe you need.

  • Trimming: Split the video to your desired size and remove unwanted material.

  • Rotating: Make a video to the right orientation you need

  • Concat or Merge: Seamlessly combine multiple videos to make a single long video, to merge the video

  • Video Information: Extract video information such as resolution, duration, codec information, and other relevant metadata

Primary Benefit This enhancement offers significant improvements to the developer experience in multiple aspects:

  1. Streamlining the process of editing features like trimming and rotating seamlessly.

  2. Providing the ability to specify desired features with a single function call, granting precise control.

Ease of use Facilitates focusing on targeted tasks such as:

  1. Thumbnail generation

  2. Noise clearance

  3. Video editing

Adding Module

Run this command:

With Flutter:

 $ flutter pub add truvideo_video_sdk

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  truvideo_video_sdk: ^0.0.1

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:truvideo_core_sdk/truvideo_video_sdk.dart';

For Android :

Ensure the inclusion of the jitpack repository in the android/build. gradle file

allprojects {
    repositories {
        google()
        mavenCentral()
        maven {
            url 'https://jitpack.io'
        }
    }
}

NDK and SDK Version Requirements

  1. NDK Version: The Truvideo SDK requires a minimum NDK version of 27.0.12077973 or above.

  2. SDK Version Error: The minimum Android SDK version required is 24.

Update the NDK Version in android/app/build.gradle file.

android {
    ndkVersion "27.0.12077973"
    // Other configurations...
}

Set the Minimum SDK Version in android/app/build.gradle file.

android {
    defaultConfig {
        minSdk 24
        // Other configurations...
    }
}

For iOS :

Add a dependency for the core module in Swift Package Manager get latest version.

https://github.com/Truvideo/truvideo-sdk-ios-video.git

To add a dependency for the core module in Swift Package Manager, follow these steps:

  1. Open your Xcode project.

  2. Navigate to the "File" menu and select "Swift Packages" -> "Add Package Dependency..."

  3. In the dialog that appears, enter the URL of the package repository containing the core module.

  4. In the next step, you'll be prompted to choose the version, branch, or commit of the package you want to use. Select the appropriate option and click "Next."

  5. Xcode will then resolve the package and its dependencies.

  6. In the "Add package product to your App" dialog, make sure that the core module is selected and added to your app's target.

  7. Click on the "Finish" button to add the dependency.

For detailed instructions, you can refer to the Swift Package Manager documentation provided by Apple here.

Last updated

Was this helpful?