1. Introduction
Description: Extension to work with Audio and Video files and manipulate them like extracting audio or video from a video, trimming a video or merging an audio and video file.
Latest Version: 1
Released: April 18, 2022
Last Updated: April 18, 2022
Min Api: 19
Permission(s): android.permission.READ_EXTERNAL_STORAGE
2. Blocks
3. Docs
Docs for: MediaMux
Events
AfterAudioExtracted
Event invoked after getting result of 'ExtractAudio' function
successful | boolean
response | text
AfterMergeMedia
Event invoked after getting result of 'MergeMedia' function
successful | boolean
response | text
AfterVideoExtracted
Event invoked after getting result of 'ExtractVideo' function
successful | boolean
response | text
AfterVideoTrimmed
Event invoked after getting result of 'TrimVideo' function
successful | boolean
response | text
Methods
ExtractAudio
Tries to extract audio from given video file
videoPath | text
audioOutputPath | text
startMs | number
endMs | number
ExtractVideo
Tries to extract video from given video file (and removes audio)
videoPath | text
videoOutputPath | text
startMs | number
endMs | number
MergeMedia
Tries to merge/mux audio and video file and saves ouput file
audioPath | text
videoPath | text
outputPath | text
TrimVideo
Tries to trim video with given parameters
videoPath | text
videoOutputPath | text
keepAudio | boolean
startMs | number
endMs | number
4. Usages
Extract Audio
-1
means default settings i.e. no change in time duration
Ouput audio will be of mp4 format
Extract Video
Trim Video
You can share this video to WhatsApp as Status
Merge Audio and Video file
Video duration will be equal to Audio duration and existing audio in video will be removed
Uses a modified version of mp4parser library
5. Want to Buy or Donate
Thank you.
To pay in INR please PM me.
Hope it helps!