VideoToGif
Video转Gif
Install / Use
/learn @Wudelin/VideoToGifREADME
VideoToGif
目前效率偏低,在找寻新的方案! How to use?
- 1.设置输出环境(gif文件保的路径)<br>
- 2.实例化GifTransform<br>
- 3.调用内部方法即可<br>
- 4.读写权限
transform = new GifTransform(file.getAbsolutePath());
transform.setQuality(80);
transform.setScaleX(1);
transform.setScaleY(2);
transform.setOnTransformProgressListener(new OnTransformProgressListener()
{
@Override
public void onProgress(int current, int total)
{
Log.e(TAG, "current : " + current);
}
});
final boolean result = transform.transformFromVideo(afd,0,5 * 10000,2000);
参考 : https://github.com/boybeak/GifMaker
相关方法以及参数:
方法 | 含义 ------------- | ------------- transformFromVideo | 从video转换 setQuality | 设置gif质量 setScaleX/setScaleY | 宽高缩放比例
参数 | 含义 ------------- | ------------- startMillSecond | 从视频的哪个时间点开始 endMillSecond | 结束时间 periodMillSecond | 每隔此周期时间转换一次
效果

Download
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.Wudelin:VideoToGif:1.0.0'
}
Related Skills
qqbot-channel
351.4kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.6k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
351.4kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
arscontexta
3.1kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
