GithubHelp home page GithubHelp logo

fpgz6 / sorry-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ferrum5/sorry-android

0.0 1.0 0.0 16.32 MB

生成为所欲为动图,灵感来自于sorry项目

Home Page: https://github.com/xtyxtyx/sorry

Java 59.83% Kotlin 40.17%

sorry-android's Introduction

Sorry-Android

img
生成为所欲为动图的安卓实现
灵感和视频模板资源来自 https://github.com/xtyxtyx/sorry
大部分是Kotlin的,一部分别的库搞来的是java

转换原理:使用MediaCodec解码,将帧转为bitmap后画上文字,写入gif

MediaCodec示例: https://bigflake.com/mediacodec/ GifDrawable: https://github.com/koral--/android-gif-drawable
AnimationGifEncoder: https://github.com/nbadal/android-gif-encoder

img

如果要加入自己的模板,在assets/templates目录下放mp4和json文件,json文件内为列表显示名称和台词时间轴

TODO  

  • 修改文字效果、位置
  • 修改输出路径
  • 自定义模板

sorry-android's People

Contributors

ferrum5 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.