Combine 2 .mp4 videos - android

How do i combine two .mp4 videos?
I saw in google that I need to use mp4parser but the thing is, i don't know how to use it.
I downloaded and added the mp4parser library to my project in eclipse.
Can anyone give me a tutorial or any link for a beginner like me. Thank you o

Clone this repo https://sandeep-agrawal#bitbucket.org/sandeep-agrawal/video-merger.git
It is triming videos in clips and merging them.

Related

Build light weight FFMPEG lib for android

I need to make movie (MP4) using sequence of bitmaps. I am using Jcodec it's working fine but if i share the video which one is builded using Jcodec, it's not supported by whatsapp. So i plan to make the movie from ffmpeg (Prebuilt libraries https://github.com/tanersener/mobile-ffmpeg) it's working fine. But my universal apk size was increased up to (50mb). I just need to make movie from sequance of images so i don't need any external libraries and audio features also. So please help me someone to build the ffmpeg for only convert the sequance images to video only.
Thank you.
You can remove some packages like an opus.
probably you don't need all future.
you should change this file

Import FFMPEG Library to Android

First, I'm new in this Import thing
I've compiled latest version of ffmpeg with NDK r14b,
and managed to get some Library after compiling(like libavutil.so,libavcodec.so,libavfilter.so,etc)
Click here for pic
but im a bit confused importing it to my android project.
First, I want to make an Audio editing app that can merge several mp3 file at specific time, and adjust volume (Increase or Decrease its sound) mp3 file.
I've read about ffmpeg recently, since most people recommended to use this Library.
For merging :
-https://superuser.com/questions/1092291/merge-many-audio-files-with-specific-positions/1092346#1092346
For adjust volume :
-Decode MP3, then increase the audio volume, and then encode the new audio
What i want to ask is:
-from guardian's ffmpeg project and WritingMinds ffmpeg lib (can't post the link since i got not enough rep and this 2 are often mentioned in stackoverflow), does this 2 Libraries have what i needed? I'm a bit confused in this thing. An explanation would be a help.
-from http://ffmpeg-android.blogspot.co.id/ i cant run the ndk-build command at the last part. How should i use it?
Thank you in advance!

Android : library that download many sort of files

I'm trying to find a good library that download files like images, .css or even video (.avd). I found Glide for the images but if possible I would like a library that do both. Do you know a good one ? Thank in advance :)
One: https://github.com/lingochamp/FileDownloader
Two: https://github.com/AigeStudio/MultiThreadDownloader
There are loads out there. Google is the place to be instead of SO.

How to read an AVI file in OpenCV for Android

I need to read an AVI file in Android and process its frames. I know its C++ way but not the android one! Can someone help me and give a start point. I'm using opencv 2.4.5.
You can try to compile OpenCV with FFMPEG for Android.
Video IO is not officially supported but if I remember correctly this patch worked: http://code.opencv.org/issues/2546 At least you can use it as a good starting point.
You can use javacv, it has ffmpeg and opencv wrappers with examples.
I don't think that it is implemented yet (at least it wasn't six months ago). You might want to split you video into frames and open those frames instead of the video file (have a look at this thread).
i'm not sure if it's useful , but take a look at this:
http://www.stanford.edu/class/ee368/Android/Tutorial-2-OpenCV-for-Android-Setup-Macintosh-API11.pdf

How to get video frames from mp4 video using ffmpeg in android?

I have successfully compiled and build ffmpeg library in android after 3,4 days research work.
Now I want to grab frames from video. But I don't know which ffmpeg method with command to be called from java class to grab the all frames. Any one have idea about it? or I want to overlay 2 videos. Is there any direct method available in ffmpeg to merge two videos one over another? If yes, how to call it from java class?
compile ffmpeg.c and invoke its main() via jni.
For more details see how to Use FFMPEG on Android .
Also refer this github project. And this tutorial too will help you.
I hope this will help you.

Categories

Resources