umair13adil / mp4parser

Android App to Append Mp4 Videos or Merge Audio files with video files on your Android device.
17 stars 13 forks source link

Issue In Merging video clips #7

Open umerabidin opened 6 years ago

umerabidin commented 6 years ago

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

umair13adil commented 6 years ago

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()`