androidvideomp4parser

Merging 2 videos in android


I want to merge or mix 2 videos in android app. I tried using mp4parser but it is appending the video and I want to mix the frames. I want video to be mixed by 10 seconds from one video and 10 seconds from 2nd video.

Any piece of code would be appreciated.


Solution

  • You can use the mp4parser library to append videos. The problem is the limited documentation.

    here is the link of mp4parser lib https://code.google.com/archive/p/mp4parser/

    or

    You can use ffmpeg which is providing amazing features to the users to compress, split, merge and all kind of video/ audio editing/compressing/trancoding,etc. Version 1.1 (ffmpeg fire flower) onwards concat demuxer has been added to it, This is working fine in my android application.

    https://ffmpeg.org/

    gihub sample : https://github.com/hai046/hai_ffmpeg