I want to merge two or more video files (they may be two mp4 or two 3gp, or any other format).
Filmora Go This is an amazing video editing app available for Android. The app has many features besides combining videos, from editing the sounds on videos to adding effects on videos. Filmora Go lets you merge several videos at a go, and you get to edit their transitions using smooth effects from the app.
To combine two videos, open one in the Gallery and then tap the edit button. Then tap "Add" to combine additional videos. You can also add transitions between the video clips before saving your project.
The most generic tool you can use is ffmpeg (as noted by @Jeremy above), but using it on the mobile handset will require some work; also it is LGPL licensed and some of its encoders (notably x264) are GPL.
A simpler solution, if both files you want to concatenate are using similar encoding, and are contained in file formats derived from MP4 (3GP is such), is to use a pure-java MP4 parser and concatenate the videos without touching the media stream itself. Have a look at mp4parser, an open-source parser that is pure-java, licensed under Apache license and even has an example for concatenating videos in its wiki.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With