li24361 / sorryjava Goto Github PK
View Code? Open in Web Editor NEW给动图加字幕的sorry项目的java版本
Home Page: https://txtxtx.com.cn
License: Apache License 2.0
给动图加字幕的sorry项目的java版本
Home Page: https://txtxtx.com.cn
License: Apache License 2.0
环境怎么安装,求指导?
centerOS怎么玩。。
还有那些乱七八糟的命令怎么玩
ftl文件获取不到
jar包也获取不到
$ mvn package -DskipTests
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------------< com.lzh:sorry-java >-------------------------
[INFO] Building sorryJava 1.4.0
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sorry-java ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ sorry-java ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to C:\sorryJava\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.445 s
[INFO] Finished at: 2018-04-25T11:49:54+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project sorry-java: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
大佬,我jdk也有配置在环境变量,git clone 下来后 用mvn这个命令来打包的时候失败了,麻烦指教一下,谢谢
docker run --rm -itd --name sorryjava -e QCLOUD_ENABLE=false -p 8888:8888 sorry-java:v1.4报错
Unable to find image 'sorry-java:v1.4' locally
Pulling repository docker.io/library/sorry-java
docker: Error: image library/sorry-java:v1.4 not found.
我执行那个docker build -t sorry-java:v1.4 .的时候最后一行出现
Step 9 : COPY ./target/sorry-java-1.4.0.jar /opt/site/app.jar
lstat target/sorry-java-1.4.0.jar: no such file or directory这个
[AVFilterGraph @ 0x1c95c40] No such filter: 'ass'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
windows下没有问题,但是到服务器出现这个问题,是ffmpeg安装的姿势不对?
如题,QQ108925289,多谢大佬
在直接运行jar包以后远程网页访问ip并不能打开网页,百度了一些资料,我是不是应该自己打包成war包然后用tomcat来运行?还是我端口哪些没有打开?我用的是阿里云,系统centOS7,希望得到一个回复。能稍微指点方向即可。谢谢
生成的gif打不开
如题,能否放在github上
如何获取template.ftl文件呢,如果想要自己制作的话需要怎么操作
我弄完一点,现在搞得很尴尬,东西不知道放哪。求教!
系统Centos7.4
用的下面这几条命令:
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
有以下提示:
Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libass.so.5()(64bit)
Error: Package: libavdevice-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libopenal.so.1()(64bit)
Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libschroedinger-1.0.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
百度了好久都没找到解决方法,麻烦指导一下!
在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
windows下获取到的路径地址是反斜杠
cmd下ffmpeg 只能认第一个反斜杠的路径
GifService.java中应把assPath gifPath videoPath中的反斜杠替换成正斜杠
window 系统,执行FFmpeng 命令 是 ass 文件 不能是绝对路径,绝对路径会报错:
[Parsed_ass_0 @ 000001d20187acc0] Shaper: FriBidi 1.0.4 (SIMPLE)
[Parsed_ass_0 @ 000001d20187acc0] Using font provider directwrite
[Parsed_ass_0 @ 000001d20187acc0] ass_read_file(..ae1bb83b38e9402485c83ef3455b64f5.ass): fopen failed
[Parsed_ass_0 @ 000001d20187acc0] Could not create a libass track when reading file '..ae1bb83b38e9402485c83ef3455b64f5.ass'
[AVFilterGraph @ 000001d27fe4bec0] Error initializing filter 'ass' with args '..ae1bb83b38e9402485c83ef3455b64f5.ass'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
从我的测试来看,giflossy 对于gif的压缩时间需要大概在2~3s,如果此项目部署在服务器端,延迟较严重。
请添加关于mac系统安装ffmpeg的详细操作描述,mac系统下无法使用yum工具安装,需要安装类似yum的工具如:brew:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
然后使用命令安装ffmpeg:
$ brew install ffmpeg
你好,这个是不是只能通过视频生成gif,能不能通过gif图片生成新的gif图片
SubTitles的getset方法没写,QcloudService的getset方法没写...还有我是springboot直接运行的..\opt\site\cache\sorry这个文件应该创建到哪里...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.