sannies / mp4parser

A Java API to read, write and create MP4 files
Apache License 2.0
2.76k stars 566 forks source link

Does mp4parser able to create a video of sequential image on a common background, mixed with a audio and limit to some duration #318

Open mwshubham opened 6 years ago

mwshubham commented 6 years ago

I was working on FFMpeg for past few weeks in order to generate the required functionality which is as follows:

i. Concat images as slideshow ii. Add a frame/background throughout the image sequence iii. Apply an audio file. iv. Set duration of an image to be shown in the video. v. Apply transitions aka animation on images or video throughout. vi. Draw text over video as an overlay or may be on image.

I am able to achieve all of the functionality via FFMpeg via one pass. However, They time of processing is still high and still there are some problem in adding frames or transtion.

Do you suggest of using mp4parser library for the requirement/usecase.

Following is my work with FFMpeg https://stackoverflow.com/questions/51156379/ffmpeg-merge-images-with-audio-for-specific-duration https://stackoverflow.com/questions/51192759/ffmpeg-add-background-image-during-the-process-of-video-creation

HBiSoft commented 5 years ago

I would recommend looking into MediaCodec if you want to enhance the speed/performance.