문제

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.

도움이 되었습니까?

해결책

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?

다른 팁

Here is the FFmpeg ported for android:

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

you can call commands via JNI wrapper.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top