简体   繁体   English

通过Android中的图片创建mjpeg视频

[英]create mjpeg video from pictures in Android

I have a small application that stream pictures from a device using android. 我有一个小型应用程序,可使用android从设备流式传输图片。 I'm able to take pictures and save into sdcard and now I have been willing to do some video recording with that. 我可以拍照并保存到sdcard中,现在我愿意用它进行一些视频录制。 I have done it using IOS: I save the pictures into an array and for each pictures, I create a mjpeg video with these combined pictures. 我已经使用IOS做到了:我将图片保存到一个数组中,并为每张图片创建一个包含这些组合图片的mjpeg视频。

I have thought of using pure java to do so, but most of the import libraries cannot be supported in Android. 我曾经考虑过使用纯Java来做到这一点,但是大多数导入库在Android中均不受支持。 I have tried to use this: https://github.com/lessthanoptimal/BoofCV/blob/master/main/io/src/boofcv/io/video/CreateMJpeg.java 我试图使用此: https : //github.com/lessthanoptimal/BoofCV/blob/master/main/io/src/boofcv/io/video/CreateMJpeg.java

But it cannot be played for some unknown reason. 但是由于某些未知原因无法播放。

I'm out of ideas. 我没主意了。 Please help me. 请帮我。

Thank you 谢谢

You can use MJPEGGenerator.java to create an AVI from a set of jpg images 您可以使用MJPEGGenerator.java从一组jpg图像中创建一个AVI。

This is example of using MJPEGGenerator in russian language. 这是在俄语中使用MJPEGGenerator的示例 Use translate.google.com to understand. 使用translate.google.com了解。

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

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