使用j个codeC SequenceEn codeR [英] Using jcodec SequenceEncoder
问题描述
我需要从图像箱子的视频,我看到ĴcodeC,我认为这是我需要的: HTTP://j$c$cc.org/
I need to crate video from images, I have seen jcodec and I think it is what I need: http://jcodec.org/
我如何添加J任务$ C $抄送给我的项目?我看到有一个版本的Android。 纠正我,如果我worng,但我加的的ĴcodeC-0.1.5.jar 的以我的libs文件夹的项目。 然后添加的的 SequenceEn coder.java 的和的 BitmapUtil.java 的从 Ĵcodec-android-0.1.7.zip 的以我的包,但是当我补充一下:
How I add jcodec to my project? I seen there is a version for android. Correct me if I worng, but I added jcodec-0.1.5.jar to my project in libs folder. Then added SequenceEncoder.java and BitmapUtil.java from jcodec-android-0.1.7.zip to my package but when I add:
public void encodeImage(Bitmap bi) throws IOException
{
encodeNativeFrame(BitmapUtil.fromBitmap(bi));
}
它给了我的错误在的包com.example.seqtest 的并问我配置构建路径。
It gives me error on package com.example.seqtest and asks me to configure build path.
那么,如何使用它,如何能图片我输入序列?你能为我提供一些例子吗?
So how I use it, How can I input sequence of images? Can you provide me some example?
推荐答案
这是你怎么做
1)下载Ĵ$ C $从cc-android-0.1.7.zip 的http:// Ĵcodec.org /
2)解压下载的文件,你会得到的ĴcodeC 文件夹,这是一个Android项目。
2) Unzip the downloaded file and you will get JCodec folder which is an android project.
3)导入ĴcodeC 项目在Eclipse。如果您收到任何错误,解决它通过右击该项目属性 - > Android的 - >选择Build目标和preSS确定
。
3) Import that JCodec project in your Eclipse. If you get any error, solve it by right clicking on the project Properties -> Android -> Select the Build target and press OK
.
4)现在你ĴcodeC库的设置就完成了。
4) Now your JCodec library setup is done.
5)创建一个新的Android应用程序项目。(你的实际项目)
5) Create a new android application project.(your actual project)
6)右键单击该项目,属性 - > Android的 - >图书馆 - >添加 - >添加歼codeC图书馆 - >应用 - >确定
6) Right click on the project, Properties -> Android -> Library -> Add -> Add the JCodec Library -> Apply -> OK
7)现在你的项目链接到J codeC库,你可以开始编码。
7) Now your project is linked to JCodec library and you can start coding.
您可以从这个链接下载ĴcodeC示例应用程序<一href="http://j$c$cc.org/downloads/j$c$cc-samples-android-0.1.7.zip">http://j$c$cc.org/downloads/j$c$cc-samples-android-0.1.7.zip
You can download JCodec sample app from this link http://jcodec.org/downloads/jcodec-samples-android-0.1.7.zip
同样,你必须进行步骤6的示例程序too.And 无需添加ĴcodeC-0.1.5.jar
来库文件夹。
Again you have to carry out step 6 for sample app too.And no need to add jcodec-0.1.5.jar
to libs folder.
这篇关于使用j个codeC SequenceEn codeR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!