简体   繁体   English

如何使用mediaCodec创建视频?

[英]how to create video using mediaCodec?

Is it possible to create video of series of Images present on SdCard using MediaCodec? 是否可以使用MediaCodec创建SdCard上的一系列图像视频? if yes, can anyone share me the link? 如果是,有人可以分享链接吗? I want to import images from sdCard and create video from those images, any suggestions??? 我想从sdCard导入图像并根据这些图像创建视频,有什么建议吗??? 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. 我已经尝试过使用jcodec库,但是过程非常缓慢,我想进一步说明一下。 Is there any chances that MediaCodec can do that in my ADT and in much faster way. MediaCodec是否有可能以更快的方式在我的ADT中做到这一点。

Importing images from SdCard --> making a good quality .mp4 video (faster than jcodec way). 从SdCard导入图像->制作高质量的.mp4视频(比jcodec方式快)。

You can try INDE Media Pack - https://software.intel.com/en-us/articles/intel-inde-media-pack-for-android-tutorials 您可以尝试INDE Media Pack- https: //software.intel.com/zh-cn/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. 它具有MediaComposer类的转码/重新混合功能,并具有JpegSubstituteEffect等几个示例效果-它显示了如何用jpg文件中的图片替换视频帧。 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. 您可以将黑色视频作为参考,并在其上放置图像,以设置持续时间,借助音频效果添加音轨等。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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