0

I want to combine image and audio to form a video file using FFMPEG. Without using NDK is there any way to create a Android project for FFMPEG. Please provide any Libraries and Any sample Projects it will helpful for me.

Thanks in advance.

Phani varma
  • 475
  • 5
  • 7

1 Answers1

1

ffmpeg-android work like charm, but weights about 9 mb for app... more ffmpeg options (libs) HERE

you may also check MediaMuxer class (and related) for encoding support with SDK (not NDK), but it needs relatively fresh device (API18 and above). ffmpeg a supports a bit older OS version (API16)

snachmsm
  • 17,866
  • 3
  • 32
  • 74
  • Thanks for ur reply..@snachmsm,. I found a solution for this FFMPEG, I will post my complete code once done with the sample. – Phani varma May 24 '16 at 06:07
  • @Phani varma Any update on the solution you got? Would be really helpful if you could share that how you did it? – Kingston Jul 12 '16 at 15:42
  • 2
    @TheCuriousDev https://github.com/WritingMinds/ffmpeg-android From the above URL i downloaded code and changed the path as -y -i /storage/emulated/0/images.jpg -i /storage/emulated/0/rec.wav -acodec aac -vcodec mpeg4 -s 480*320 -f mp4 -r 2 /storage/emulated/0/result.mp4" – Phani varma Jul 19 '16 at 04:43
  • @Phanivarma , how u compiled it ? – Arsen Sench Nov 15 '16 at 13:44
  • This answer contains a command for merging two sound files https://stackoverflow.com/a/46677342/2294985 – Omar HossamEldin Oct 10 '17 at 23:13