mp4parser icon indicating copy to clipboard operation
mp4parser copied to clipboard

Issue In Merging video clips

Open umerabidin opened this issue 7 years ago • 1 comments

HI, I am appending video clips using Append Example class but this time the issue I am facing after appending is videos append successfully but when I play that video only first clips runs and stuck the rest of all. Whats the problem please help me in it. Thanks

umerabidin avatar Jul 30 '18 18:07 umerabidin

Hi, Google's ISO parser has some issues regarding merging different videos. I suggest you try this library instead, it's very easy to use: KotlinFFMpeg

Merge/Append Video Example:

    val videoList = arrayListOf<File>(videoSmall1, video, video2)

    VideoMerger.with(context!!)
                     .setVideoFiles(videoList) //Video Files list
                     .setOutputPath("PATH_TO_OUTPUT_VIDEO")
                     .setOutputFileName("merged_" + System.currentTimeMillis() + ".mp4")
                     .setCallback(this@MainActivity)
                     .merge()`

umair13adil avatar Aug 01 '18 12:08 umair13adil