1

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.

Tajinder
  • 33
  • 5

2 Answers2

2

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?

Community
  • 1
  • 1
AnilMS
  • 83
  • 3
1

Here is the FFmpeg ported for android:

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

you can call commands via JNI wrapper.

M Abdul Sami
  • 1,522
  • 1
  • 12
  • 16