gpt4 book ai didi

java - Xuggler 生成错误消息

转载 作者:行者123 更新时间:2023-12-02 07:22:42 26 4
gpt4 key购买 nike

我正在致力于创建我的第一个 Xuggler 媒体应用程序。我通过观看他们关于如何创建第一个媒体应用程序的视频进行编码。

代码

package demo;

import com.xuggle.xuggler.IContainer;

public class GetContainerInfo {
public static void main(String[] args) {
if(args.length!=1){
throw new IllegalArgumentException("no file");
}
IContainer container = IContainer.make();
if(container.open(args[0],IContainer.Type.READ,null)<0){
throw new IllegalArgumentException("could not open");
}
}
}

错误

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

我有依赖性吗?

是的,我愿意!我拥有所有依赖项。我在创建项目时导入了它们。
图片:
enter image description here

是什么导致了该错误以及如何解决它?

最佳答案

来自SLF4J manual :

> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J:
> See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
> details.

This warning is printed because no slf4j binding could be found on your class path. The warning will disappear as soon as you add a binding to your class path. Assuming you add slf4j-simple-1.7.2.jar so that your class path contains: slf4j-api-1.7.2.jar slf4j-simple-1.7.2.jar ...

关于java - Xuggler 生成错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14013035/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com