All Projects → li24361 → Sorryjava

li24361 / Sorryjava

Licence: apache-2.0
给动图加字幕的sorry项目的java版本

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Sorryjava

Linux
🐧 以“标签”形式对Linux的命令进行的梳理
Stars: ✭ 15 (-95.11%)
Mutual labels:  centos7
docker-notes
Docker Notes For Fresh Learner
Stars: ✭ 53 (-82.74%)
Mutual labels:  centos7
HAProxy-2-RPM-builder
Build latest HAProxy binary with prometheus metrics support
Stars: ✭ 28 (-90.88%)
Mutual labels:  centos7
Avorix-Domain-Controller
A Raspberry Pi based Active Directory Domain Controller developed for business and education.
Stars: ✭ 28 (-90.88%)
Mutual labels:  centos7
amigen7
Set of tools to provide automation of tasks for creating STIG-partitioned EL7 AMIs
Stars: ✭ 33 (-89.25%)
Mutual labels:  centos7
metalnetes
Create and manage multiple Kubernetes clusters using KVM on a bare metal Fedora 29 server. Includes helm + rook-ceph + nginx ingress + the stock analysis engine (jupyter + redis cluster + minio + automated cron jobs for data collection) - works on Kubernetes version v1.16.0 - 1.16.3 was not working
Stars: ✭ 37 (-87.95%)
Mutual labels:  centos7
Centos Book
Web开发者手边的一本CentOS小书,是对 CentOS 系统知识的一个整理以及补完,当然对于其它 Linux 发行版本也有很大的参考意义,但的确针对的是目前 CentOS 的最新版本——CentOS 7
Stars: ✭ 241 (-21.5%)
Mutual labels:  centos7
el7-bpf-specs
RPM specs for building bpf related tools on CentOS 7
Stars: ✭ 38 (-87.62%)
Mutual labels:  centos7
Invidious-Updater
Automatic install and update script for Invidious
Stars: ✭ 181 (-41.04%)
Mutual labels:  centos7
RHEL7-CIS
Ansible RHEL 7 - CIS Benchmark Hardening Script
Stars: ✭ 28 (-90.88%)
Mutual labels:  centos7
ansible-role-cardano-node
Ansible role for the provisioning of Shelly Cardano binaries from source.
Stars: ✭ 20 (-93.49%)
Mutual labels:  centos7
DevCeption
Inception Style (Docker inside Vagrant inside Host) Development Environment
Stars: ✭ 13 (-95.77%)
Mutual labels:  centos7
ffmpegtoolkit
CentOS 8.x 64bit ffmpeg auto installer scripts
Stars: ✭ 62 (-79.8%)
Mutual labels:  centos7
Centos7.6-install-k8s-v1.14.2-cluster
Centos7.6部署k8s(v1.14.2)集群
Stars: ✭ 20 (-93.49%)
Mutual labels:  centos7
openssl-RPM-Builder
Build latest OpenSSL binary
Stars: ✭ 46 (-85.02%)
Mutual labels:  centos7
docker-java-centos
This is docker images of CentOS 7 with different versions of java
Stars: ✭ 50 (-83.71%)
Mutual labels:  centos7
c7pxeserver
CentOS PXE Server
Stars: ✭ 20 (-93.49%)
Mutual labels:  centos7
Lnmp
Support: Nginx 1.12/1.13 + MySQL 5.5/5.6/5.7/8.0(MariaDB 5.5/10.0/10.1/10.2/10.3) + PHP 5.4/5.5/5.6/7.0/7.1/7.2 + phpMyAdmin(Adminer)
Stars: ✭ 262 (-14.66%)
Mutual labels:  centos7
centos-script
🎉centos下工具安装脚本,包含基础环境配置,Gitlab、Docker、LDAP、MongoDB、MySQL、RabbitMQ、Supervisor、Node、Python、zsh、rar、zabbix、k8s、prometheus、grafana等🎉
Stars: ✭ 121 (-60.59%)
Mutual labels:  centos7
MyDocs
文档类项目,目前自己技术研究日常所需的文档,自己写的文档汇总
Stars: ✭ 76 (-75.24%)
Mutual labels:  centos7

思路是参考sorry,原作是ruby写的,我就撸了个java 轮子,加了一点新功能,可以生成小一点的图片

优化点:

  • 重构首页,方便移动端和PC端访问
  • 首页素材全部CDN,加快加载速度
  • 增加精简模式,可以生成几百k的用来做表情
  • 将文件剥离出程序,可以动态切换

Demo点击查看

sorryJava

sorry的java版本 操作演示

安装步骤

docker (推荐)

首先安装 docker,不会的安装请自行百度

clone代码

git clone https://github.com/li24361/sorryJava.git

后,进入到sorry-java目录下执行

docker build -t sorry-java:v1.4 .
docker run --rm -itd --name sorryjava -e QCLOUD_ENABLE=false  -p 8888:8888 sorry-java:v1.4

访问 http://localhost;8888

centos

如果没有自己的服务器,可以去腾讯云 里面个人可以免费申请7天的服务器,如果你是学生,会有更大的惊喜。现在双十一搞活动,88一年,很划算。 选用云服务器后,安装的时候选择7,然后按照下面步骤配好centos环境。

基础环境需要安装java

centOS7下ffmpeg安装

yum install epel-release -y
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
yum install ffmpeg ffmpeg-devel -y

centOS7安装字体,生成中文字幕需要,否则生成时候会报错

yum groupinstall "fonts"

在服务器上建立文件夹/opt/site/cache/sorry 下载template.mp4template.ftl放进去

以上都是必须的

可以直接下载sorry-java-1.2.0.jar 然后服务器上运行 nohup java -jar sorry-java-1.2.0.jar &

访问 http://ip:8888

windows

windows下执行压制的时候,如果ass的路径是带有盘符的,会报错,可以改成读取相对路径 自己研究代码的时候,windows下面需要安装jdk&maven&git&ffmpeg

记得将ffmpeg 配置到Path下 添加E:\ffmpeg\bin; 这里要换成你的路径

修改application.properties,换成自己电脑的文件夹,例如D:/

cache.template.tempPath=/opt/site/cache/

在自己的文件夹下建立sorry文件夹 下载template.mp4template.ftl放进去

拉取源码

git clone https://github.com/li24361/sorryJava.git

导入ide

打包并运行

mvn package -DskipTests
java -jar sorry-java-1.2.0.jar

访问 http://ip:8888

macos

通过brew安装ffmpeg

brew install ffmpeg

在mac系统终端命令行里直接执行ffmpeg没有问题,但用java调用就生成gif报错。 原因是ffmpeg在linux的shell命令行下当然能执行(如果ffmpeg在/usr/bin下),但java调用的时候并不是shell模式,所以不能直接执行

解决办法: 请用完整的ffmpeg路径,另外需要使用shell命令执行。代码示例如下:

Process exec = Runtime.getRuntime().exec(new String[]{"sh", "-c", cmd}); exec.waitFor();

以上cmd变量第一个字符(参数)必须是ffmpeg的系统安装路径,

获得此路径: which ffmpeg

有问题欢迎提issue

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].