Question

I just want to merge a mp3 file and image file into mp4 video format. I have done google on this topic and found some third parties libraries such as FFMPEG,Jcodec etc and i am unable to use these libraries. So please help me out from this problem.

Was it helpful?

Solution

I havent tried this on Android. But on PC you can use this to create the mp4 file using ffmpeg

The following worked for me

ffmpeg -i download.jpg -r 1/100 -i test.mp3 -s 720x480 out.mp4

https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video

ffmpeg images-to-video script anyone?

OTHER TIPS

Here is the FFmpeg ported for android:

https://github.com/guardianproject/android-ffmpeg-java

you can call commands via JNI wrapper.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top