我正在致力于创建我的第一个 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.
我有依赖性吗?
是的,我愿意!我拥有所有依赖项。我在创建项目时导入了它们。
图片:
是什么导致了该错误以及如何解决它?
最佳答案
来自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/