Share this post on:

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

image
image
image

3. Docs

Docs for: MediaMux

Events

AfterAudioExtracted

Event invoked after getting result of ‘ExtractAudio’ function

Params

successful | boolean
response | text


AfterMergeMedia

Event invoked after getting result of ‘MergeMedia’ function

Params

successful | boolean
response | text


AfterVideoExtracted

Event invoked after getting result of ‘ExtractVideo’ function

Params

successful | boolean
response | text


AfterVideoTrimmed

Event invoked after getting result of ‘TrimVideo’ function

Params

successful | boolean
response | text


Methods

ExtractAudio

Tries to extract audio from given video file

Params

videoPath | text

audioOutputPath | text

startMs | number

endMs | number


ExtractVideo

Tries to extract video from given video file (and removes audio)

Params

videoPath | text

videoOutputPath | text

startMs | number

endMs | number


MergeMedia

Tries to merge/mux audio and video file and saves ouput file

Params

audioPath | text

videoPath | text

outputPath | text


TrimVideo

Tries to trim video with given parameters

Params

videoPath | text

videoOutputPath | text

keepAudio | boolean

startMs | number

endMs | number


4. Usages

Extract Audio
image

-1 means default settings i.e. no change in time duration

Extract Video
image

Trim Video
image

You can share this video to WhatsApp as Status

Merge Audio and Video file
image

Video duration will be equal to Audio duration and existing audio in video will be removed
Uses a modified version of mp4parser 3 library

5. Want to Buy or Donate

Paypal: paypal.me

UPI: [email protected]

Hope it helps!

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments