{"repo":"East196/sorrypy","free":true,"listed":false,"github":"https://github.com/East196/sorrypy","clone":"git clone https://github.com/East196/sorrypy.git","description":"GIF表情包神器sorry的python重制版","language":"Python","stars":361,"topics":["sorry","python","jinja2","ffmpeg"],"license":"Apache-2.0","category":"media-processing","readme_excerpt":"sorrypy sorry有钱真的可以为所欲为 说明 sorry是一款很有意思的应用，源自于 sorry有钱真的可以为所欲为 这个梗。 亮点 是可以换自己的梗生成gif。 可惜部署环境是ubuntu+ruby，我就重制了个全平台的python重置版博大家一笑。 荣誉首先属于xtyxtyx Hardy兄弟的NodeJs版:node-sorry也非常好用，有DEMO为证，嘎嘎。 sorry客户真的可以为所欲为 样例： Docker部署 一行搞定 如果难以直视 950.18 MB 的 Docker 镜像，请移步 普通安装部署 普通安装部署 1. 下载安装python3 2. cmd命令行安装必须包 pip install flask pillow imageio ffmpeg-python moviepy 当然也可以 pip install -r requirements.txt 3. 安装ffmpeg ffmepg官网下载安装ffmepg并加入path。 检验ffmpeg安装 尽量使用3.4以上版本，低版本可能会 无法生成 或者 生成无字幕gif 。 4. cmd中运行 5. 浏览器打开 http://127.0.0.1:8000/ 然后你就可以为所欲为了 CentOS7下ffmpeg安装 Windows下ffmpeg安装 方便起见，已直接将最新版ffmpeg.exe放入项目根目录，所以无需下载。 如果需要全局使用ffmpeg，可参考这篇文章 适配新Gif 目前，想要适配新的gif,需要改动3个文件（修改前建议备份） 其中 字幕模板template.tpl 首先使用aegisub为模板视频创建字幕，保存为sorry.template.ass aegisub教程 然后把文本替换成模板字符串 懒得换图了哈，以这个字符串为准 最后保存为template.tpl 现在这个网站就可以制作新的gif了 Note 欢迎 star fork Github & Gitee 💹 关注统计 Github","default_branch":null,"files":null,"tree":[],"storefront":"/r/East196","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/East196/sorrypy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}