![]() ![]() Merge/Concatenate multiple video files into single video file val videoList = arrayListOf(videoSmall1, video, video2) VideoMerger.with(context!!). setOutputFileName("merged_" + System.currentTimeMillis() + ".mp4"). Merge an audio over video file AudioVideoMerger.with(context!!). setPosition(TextOnVideo.POSITION_CENTER_BOTTOM) //Can be selected. addBorder(true) //This will add background with border on text. setText("Text Displayed on Video!!") //Text to be displayed. setOutputFileName("textOnVideo_" + System.currentTimeMillis() + ".mp4"). resize()Īdd Text overlay on video with specified text attributes TextOnVideo.with(context!!). ![]() setOutputFileName("resized_" + System.currentTimeMillis() + ".mp4"). ![]() Resize a video in specified dimensions VideoResizer.with(context!!). setOutputFileName("movie_" + System.currentTimeMillis() + ".mp4"). Make a MP4 movie with provided images & audio in mp3 MovieMaker.with(context!!). setOutputFileName("trimmed_" + System.currentTimeMillis() + ".mp4"). Trim a video with specified timestamps VideoTrimmer.with(context!!). setSegmentTime("00:00:15") //Split into 15 seconds segment. Split a video in equal segments VideoSplitter.with(context!!). Files are saved in local storage directory and can be directly accessed from there. You can add your resources as well, but keep extensions and make sure naming conventions are same as used in this project to avoid any I/OExceptions.Įach example will preview result in a dialog. Examples of using FFMpeg library on Android with Kotlinįor Video, Audio and Image/GIF operations.Īpp is pre loaded with audio, video, images, font resources which are useful for experimenting with FFmpeg library. ![]()
0 Comments
Leave a Reply. |