简体   繁体   中英

how to create video using mediaCodec?

Is it possible to create video of series of Images present on SdCard using MediaCodec? if yes, can anyone share me the link? I want to import images from sdCard and create video from those images, any suggestions??? I want to do this programmatically. I've tried using jcodec library but the process is very slow and I want to fasten up a little bit more. Is there any chances that MediaCodec can do that in my ADT and in much faster way.

Importing images from SdCard --> making a good quality .mp4 video (faster than jcodec way).

You can try INDE Media Pack - https://software.intel.com/en-us/articles/intel-inde-media-pack-for-android-tutorials

It has transcoding\\remuxing functionality as MediaComposer class and several sample effects like JpegSubstituteEffect - it shows how substitute video frame by a picture from jpg file. You can take black video as a refefence and put images on it with a possibility to set duration, add audio track with help of audio effect etc.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM