- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我使用 FFmpeg 包装器为用户上传的视频创建缩略图。在我的开发机器上测试时,这工作得很好。但是,每当我将我的项目打包为 .war 并部署到 Amazon Web Services 时,我都会得到以下堆栈跟踪:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.avutil
at java.lang.Class.forName0(Native Method) ~[na:1.8.0_101]
at java.lang.Class.forName(Class.java:348) ~[na:1.8.0_101]
at org.bytedeco.javacpp.Loader.load(Loader.java:472) ~[javacpp-1.2.1.jar!/:1.2.1]
at org.bytedeco.javacpp.Loader.load(Loader.java:417) ~[javacpp-1.2.1.jar!/:1.2.1]
at org.bytedeco.javacpp.avformat$AVFormatContext.<clinit>(avformat.java:2597) ~[ffmpeg-2.8.1-1.1.jar!/:1.2.1]
at org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:391) ~[javacv-1.2.jar!/:1.2]
at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:385) ~[javacv-1.2.jar!/:1.2]
at com.myapp.app.service.ICampaignService.createThumbnail(ICampaignService.java:425) ~[classes!/:0.0.44T-SNAPSHOT]
at com.myapp.app.service.ICampaignService$$FastClassBySpringCGLIB$$47736265.invoke(<generated>) ~[classes!/:0.0.44T-SNAPSHOT]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) ~[spring-aop-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) ~[spring-tx-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:280) ~[spring-tx-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) ~[spring-tx-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) ~[spring-aop-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at com.myapp.app.service.ICampaignService$$EnhancerBySpringCGLIB$$67e59894.createThumbnail(<generated>) ~[classes!/:0.0.44T-SNAPSHOT]
at com.myapp.app.controllers.CampaignController.uploadCampaign(CampaignController.java:237) ~[classes!/:0.0.44T-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221) ~[spring-web-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) ~[spring-web-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114) ~[spring-webmvc-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) ~[spring-webmvc-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) ~[spring-webmvc-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) ~[spring-webmvc-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963) ~[spring-webmvc-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
... 85 common frames omitted
这是我对 FFmpeg 包装器的 Maven 依赖项:
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacv</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>ffmpeg</artifactId>
<version>3.2.1-1.3</version>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>opencv-platform</artifactId>
<version>3.1.0-1.3</version>
</dependency>
同样,这个库在我的开发机器上运行得非常好。
开发机器:Windows 10,64 位(Works)
AWS 实例:运行 Java 8 的 64 位 Amazon Linux 2016.09 v2.2.0(导致上述问题)
我花了大约 7 个小时试图通过修改版本来解决这个问题。知道如何解决这个问题吗?
编辑
依赖树:
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:1.4.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:1.4.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:1.4.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:1.4.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:1.4.0.RELEASE:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.1.7:compile
[INFO] | | | | \- ch.qos.logback:logback-core:jar:1.1.7:compile
[INFO] | | | +- org.slf4j:jul-to-slf4j:jar:1.7.21:compile
[INFO] | | | \- org.slf4j:log4j-over-slf4j:jar:1.7.21:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.17:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:1.4.0.RELEASE:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.8.9:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:1.4.0.RELEASE:compile
[INFO] | | +- org.apache.tomcat:tomcat-jdbc:jar:8.5.4:compile
[INFO] | | | \- org.apache.tomcat:tomcat-juli:jar:8.5.4:compile
[INFO] | | \- org.springframework:spring-jdbc:jar:4.3.2.RELEASE:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.0.9.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile
[INFO] | | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] | | +- org.javassist:javassist:jar:3.20.0-GA:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.0.0.Final:compile
[INFO] | | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | | \- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] | | \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final:compile
[INFO] | +- org.hibernate:hibernate-entitymanager:jar:5.0.9.Final:compile
[INFO] | +- javax.transaction:javax.transaction-api:jar:1.2:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:1.10.2.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:1.12.2.RELEASE:compile
[INFO] | | +- org.springframework:spring-orm:jar:4.3.2.RELEASE:compile
[INFO] | | +- org.springframework:spring-tx:jar:4.3.2.RELEASE:compile
[INFO] | | \- org.slf4j:jcl-over-slf4j:jar:1.7.21:compile
[INFO] | \- org.springframework:spring-aspects:jar:4.3.2.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:1.4.0.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:4.3.2.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-config:jar:4.1.1.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-web:jar:4.1.1.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:4.3.2.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:1.4.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:1.4.0.RELEASE:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.4:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.4:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.4:compile
[INFO] | +- org.hibernate:hibernate-validator:jar:5.2.4.Final:compile
[INFO] | | +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] | | \- com.fasterxml:classmate:jar:1.3.1:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.8.1:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.8.1:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.8.1:compile
[INFO] | +- org.springframework:spring-web:jar:4.3.2.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:4.3.2.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:1.4.0.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:1.4.0.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:1.4.0.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.2.0:test
[INFO] | | \- net.minidev:json-smart:jar:2.2.1:test
[INFO] | | \- net.minidev:accessors-smart:jar:1.1:test
[INFO] | | \- org.ow2.asm:asm:jar:5.0.3:test
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.assertj:assertj-core:jar:2.5.0:test
[INFO] | +- org.mockito:mockito-core:jar:1.10.19:test
[INFO] | | \- org.objenesis:objenesis:jar:2.1:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.3.0:test
[INFO] | | \- org.json:json:jar:20140107:test
[INFO] | +- org.springframework:spring-core:jar:4.3.2.RELEASE:compile
[INFO] | \- org.springframework:spring-test:jar:4.3.2.RELEASE:test
[INFO] +- org.springframework.security.oauth:spring-security-oauth2:jar:2.0.10.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:4.3.2.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:4.3.2.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-core:jar:4.1.1.RELEASE:compile
[INFO] | | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] | +- commons-codec:commons-codec:jar:1.10:compile
[INFO] | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
[INFO] | \- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] +- org.springframework.security:spring-security-jwt:jar:1.0.4.RELEASE:compile
[INFO] | \- org.bouncycastle:bcpkix-jdk15on:jar:1.47:compile
[INFO] | \- org.bouncycastle:bcprov-jdk15on:jar:1.47:compile
[INFO] +- mysql:mysql-connector-java:jar:5.1.39:compile
[INFO] +- commons-io:commons-io:jar:2.5:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.0:compile
[INFO] +- org.bytedeco:javacv:jar:1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:opencv:jar:3.1.0-1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:flycapture:jar:2.9.3.43-1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:libdc1394:jar:2.2.4-1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:libfreenect:jar:0.5.3-1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:librealsense:jar:1.9.6-1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:videoinput:jar:0.200-1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:artoolkitplus:jar:2.3.1-1.3:compile
[INFO] | \- org.bytedeco.javacpp-presets:flandmark:jar:1.07-1.3:compile
[INFO] +- org.bytedeco:javacpp:jar:1.3:compile
[INFO] +- org.bytedeco.javacpp-presets:ffmpeg:jar:3.2.1-1.3:compile
[INFO] +- org.bytedeco.javacpp-presets:opencv-platform:jar:3.1.0-1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:opencv:jar:android-arm:3.1.0-1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:opencv:jar:android-x86:3.1.0-1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:opencv:jar:linux-x86:3.1.0-1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:opencv:jar:linux-x86_64:3.1.0-1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:opencv:jar:linux-armhf:3.1.0-1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:opencv:jar:linux-ppc64le:3.1.0-1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:opencv:jar:macosx-x86_64:3.1.0-1.3:compile
[INFO] | +- org.bytedeco.javacpp-presets:opencv:jar:windows-x86:3.1.0-1.3:compile
[INFO] | \- org.bytedeco.javacpp-presets:opencv:jar:windows-x86_64:3.1.0-1.3:compile
[INFO] +- com.paypal.sdk:rest-api-sdk:jar:1.13.0:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.21:compile
[INFO] | \- com.google.code.gson:gson:jar:2.7:compile
[INFO] +- com.squareup.okhttp3:okhttp:jar:3.4.1:compile
[INFO] | \- com.squareup.okio:okio:jar:1.9.0:compile
[INFO] +- javax.mail:mail:jar:1.4:compile
[INFO] | \- javax.activation:activation:jar:1.1:compile
[INFO] \- com.amazonaws:aws-java-sdk:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-support:jar:1.11.58:compile
[INFO] | \- com.amazonaws:jmespath-java:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-simpledb:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-servicecatalog:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-servermigration:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-simpleworkflow:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-storagegateway:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-route53:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-s3:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-importexport:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-sts:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-sqs:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-rds:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-redshift:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-elasticbeanstalk:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-glacier:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-iam:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-datapipeline:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-elasticloadbalancing:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-elasticloadbalancingv2:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-emr:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-elasticache:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-elastictranscoder:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-ec2:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-dynamodb:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-sns:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-budgets:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-cloudtrail:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-cloudwatch:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-logs:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-events:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-cognitoidentity:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-cognitosync:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-directconnect:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-cloudformation:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-cloudfront:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-kinesis:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-opsworks:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-ses:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-autoscaling:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-cloudsearch:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-cloudwatchmetrics:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-codedeploy:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-codepipeline:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-kms:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-config:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-lambda:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-ecs:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-ecr:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-cloudhsm:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-ssm:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-workspaces:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-machinelearning:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-directory:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-efs:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-codecommit:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-devicefarm:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-elasticsearch:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-waf:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-marketplacecommerceanalytics:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-inspector:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-iot:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-api-gateway:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-acm:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-gamelift:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-dms:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-marketplacemeteringservice:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-cognitoidp:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-discovery:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-applicationautoscaling:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-snowball:jar:1.11.58:compile
[INFO] +- com.amazonaws:aws-java-sdk-core:jar:1.11.58:compile
[INFO] | +- commons-logging:commons-logging:jar:1.1.3:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.2:compile
[INFO] | | \- org.apache.httpcomponents:httpcore:jar:4.4.5:compile
[INFO] | +- software.amazon.ion:ion-java:jar:1.0.1:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.8.1:compile
[INFO] | \- joda-time:joda-time:jar:2.9.4:compile
[INFO] +- com.amazonaws:aws-java-sdk-models:jar:1.11.58:compile
[INFO] \- com.amazonaws:aws-java-sdk-swf-libraries:jar:1.11.22:compile
将 Linux 升级到 2.4、将 javacpp 降级到 1.2.1 并运行 mvn clean 后出现错误:
java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.avutil
at java.lang.Class.forName0(Native Method) ~[na:1.8.0_111]
at java.lang.Class.forName(Class.java:348) ~[na:1.8.0_111]
at org.bytedeco.javacpp.Loader.load(Loader.java:472) ~[javacpp-1.2.1.jar!/:1.2.1]
at org.bytedeco.javacpp.Loader.load(Loader.java:417) ~[javacpp-1.2.1.jar!/:1.2.1]
at org.bytedeco.javacpp.avformat$AVFormatContext.<clinit>(avformat.java:2819) ~[ffmpeg-3.2.1-1.3.jar!/:1.2.1]
at org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:391) ~[javacv-1.3.jar!/:1.3]
at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:385) ~[javacv-1.3.jar!/:1.3]
到目前为止我尝试了什么
git clone
在 Linux VM 上并在那里运行 mvn install
最佳答案
经过多次版本切换和 Maven 清理,我终于让它工作了。无需在 Linux VM 上克隆。
关于Java.lang.NoClassDefFoundError 在 Linux 上作为打包的 .war 部署时由 FFmpeg 引起(在开发机器上工作),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41331988/
我正在尝试使用 ldash 等选项和 http_opts ,正如 dash muxer 文档所描述的,但 FFmpeg 无法识别它们。我正在使用最新发布的 ffmpeg v4.2.2 版本。我在 ff
假设我们有许多想要与 -vcodec 副本(或等效语法)合并的视频记录。无需重新编码,不会损失质量。并且很少有记录(minor set),有另外的编解码器,参数等等。所以我们可以使用 ffprobe
有没有办法安装 ffmpeg 没有root访问权限?使用 ./configure 无法做到这一点来自 git 克隆 git://source.FFmpeg.org/fFFmpeg.git 最佳答案 是
在应用程序中直接使用 FFmpeg 与使用 Ffmpeg 命令行有什么区别? 最佳答案 没有:FFmpeg 命令行只是一个使用 FFmpeg API 的应用程序。当然,在使用该应用程序时,您仅限于已实
我正在使用以下命令对文件(下面的媒体信息)进行编码: ffmpeg -i AHomeMovie.mkv -map 0 -c copy -c:v libx264 -preset veryslow -cr
我正在制作一张圣诞贺卡,我需要将视频嵌入到右侧(边框内)的卡片中,并在左侧显示一些文本。 为简单起见,假设我有一个带有透明孔的盒子。我想在那个洞里显示视频。 我正在使用 ffmpeg-python很高
我正在使用 laravel ffmpeg 为视频创建缩略图,但是当我运行代码时,它返回给我 Call to undefined method FFMpeg\FFMpeg::fromDisk() 我不知
我为我的 nvidia 下载了 cuda 驱动程序 但它仍然不使用我的 GPU,它仍然使用 cpu。 我怎样才能让它使用GPU。 我也听说过硬件加速,但那不起作用。 它必须是 h.264 最佳答案 你
尝试剪切视频的多个部分时,我遵循此问题的解决方案 Cut multiple parts of a video with ffmpeg .但问题是,如果我剪切多次(比如大约 20 次或更多),视频和音频
所以我最近开始在我打算在商业上分发的应用程序中实现 ffmpeg。而且我很难理解整个许可过程。 我见过的最常回答的问题似乎是关于 x264,它需要 x264.org 的付费许可才能在商业上使用它(对吗
我使用 ffmpeg 更改视频文件的分辨率,转换到另一个位置后,视频持续 0 秒,但最初持续 2 分钟 我的ffmepg代码: ffmpeg -i input.mp4 -filter:v scale=
如上: FFMPEG 不支持在没有第三部分库的情况下加载外部过滤器是否有特定原因? (像弗莱0r) 我必须重新编译整个包来添加一个新的过滤器! 最佳答案 只有开发人员可以肯定地回答,但我会冒安全风险和
我收到了一个编码器,我需要用 FFMPEG 编译,我是新手,所以我不知道如何用 ffmpeg 添加/编译它。编码器是JSV,我的服务器是ubuntu 14.04。 我已经开始阅读这篇 https://
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许在 Stack Overflow 上提出有关通用计算硬件和软件的问题。您可以编辑问题,使其成为
我正在制作一个利用 ffmpeg 重新混合和转码视频文件的程序。我想使用 ffmpeg -codecs和 ffmpeg -formats (或通过 ffmpeg 可用的任何其他命令)来检查我可以在哪些
这个问题在这里已经有了答案: ffmpeg moving text drawtext (1 个回答) 3年前关闭。 我正在使用此命令使用 ffmpeg 将文本从一个地方移动到另一个地方 ffmpeg
为什么 ffmpeg/ffprobe 为流和整个文件提供不同的比特率值? 当我使用 ffprobe 分析 mp3 文件时,它会在第一行和第二行给出不同的比特率。 有谁知道,有什么区别? // File
如何在ffmpeg中使用drawtext在视频上绘制多色文本? 示例:我想突出句子中的专有名词, “XYZ公司股价上涨91%” 高亮 XYZ 白色 黄色 用绿色突出显示 91% 如果您有任何其他方法不
我想让我的不和谐机器人播放音乐,但我不断收到“找不到 FFMPEG”错误。 我的机器人主要是由 ping 制成的,所以我不会上传那部分。音乐代码应该是这个。 const Discord = requi
我需要帮助在 ffmpeg drawtext 过滤器中正确/(完全)显示德语变音符号“äüö”。我现在不能说我的无能是由于缺乏 ffmpeg 专业知识或机器配置,还是两者兼而有之。非常感谢您的意见。
我是一名优秀的程序员,十分优秀!