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:
Streamlining the process of editing features like trimming and rotating seamlessly.
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:
Thumbnail generation
Noise clearance
Video editing
Adding Module
npm install @trunpm/truvideo-capacitor-video-sdk --registry=https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=<YOUR_TOKEN>Import the following dependency in your file, here you will use these function.
Video Information
The
TruVideoVideoSdkhas agetVideoInfofunction provides video info such as resolution, duration, codec information and relevant metadata.
MediaInfo Type
Compare Video
The
TruVideoVideoSdkhas acompareVideosfunction compare multiple videos and returns the boolean accordingly as the concat video needs to have the same characteristics i.e it return true videos are compatible with concat otherwise not.
Edit Video
The TruVideoVideoSdk has a editVideo function that takes a filePath & resulthPath
Thumbnail Generation
Preview of video is crucial, thumbnail generation gives you the preview image from the timeframe you need.
The TruVideoVideoSdk has a generateThumbnail function this method takes the videoPath, resultPath, position, width, height as input and places the image at the resulting path.
Noise Cancellation
We are utilizing high-level Artificial intelligence for noise cancellation over the input video. It’s useful for video containing background noises.
This function takes video path, result path, and callback and places a new video to the resulting path after clearing noise
Concat Videos
Concatenation uses a specific algorithm to merge multiple videos one after another to make one video efficiently and make a completely new video. This method takes the video list, and result path to place a new video and place a new video and place the video at the given result path.
Merge Videos
The TruVideoVideoSdk has a mergeVideos function have same functionality as concat to merge multiple videos to make one another video but there is an advantage over contact to merge all video does not have to be of same configuration.
This method takes video URIs list, and result path to place a new video and place the video at the given result path
Encode Video
The TruVideoVideoSdk has a encodeVideo function constructs to carry out a an encoding operation. This operation enables modification to a video by altering one or more of its attribute, such as:-
Resolution via width and height parameters
Video codec (options: .h264, .h265)
Audio codec (options: .aac, .mp3, .ac3)
Frame rate (options: 24fps, 25fps, 30fps, 50fps, 60fps)
BuilderResponse
GetAllRequest
This function will provide all the requests created for Encode, Concat and Merge Builder
Input Params
Function Utilisation
GetRequestById
This function will return exact request associated with the id
Last updated
Was this helpful?