juancarmena / xuggle

Automatically exported from code.google.com/p/xuggle
0 stars 0 forks source link

Codec listing fails #250

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run this code with latest version of Xuggler on Windows

for (ICodec.ID c : ICodec.ID.values()) {
    log.trace("Codec: {} {}", c.name(),  ICodec.findEncodingCodecByIntID(c.ordinal()));
}

What is the expected output? What do you see instead?
A listing of codec information is expected, this has worked with previous 4.x 
versions. What is seen instead is this stacktrace:

SLF4J: Failed toString() invocation on an object of type 
[com.xuggle.xuggler.ICodec]
java.lang.IllegalArgumentException: No enum class com.xuggle.xuggler.ICodec$ID 
with value 149
    at com.xuggle.xuggler.ICodec$ID.swigToEnum(ICodec.java:876)
    at com.xuggle.xuggler.ICodec.getID(ICodec.java:325)
    at com.xuggle.xuggler.ICodec.toString(ICodec.java:131)
    at org.slf4j.helpers.MessageFormatter.safeObjectAppend(MessageFormatter.java:276)
    at org.slf4j.helpers.MessageFormatter.deeplyAppendParameter(MessageFormatter.java:248)
    at org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:206)
    at ch.qos.logback.classic.spi.LoggingEvent.getFormattedMessage(LoggingEvent.java:287)
    at ch.qos.logback.classic.pattern.MessageConverter.convert(MessageConverter.java:26)
    at ch.qos.logback.classic.pattern.MessageConverter.convert(MessageConverter.java:23)
    at ch.qos.logback.core.pattern.FormattingConverter.write(FormattingConverter.java:36)
    at ch.qos.logback.core.pattern.PatternLayoutBase.writeLoopOnConverters(PatternLayoutBase.java:114)
    at ch.qos.logback.classic.PatternLayout.doLayout(PatternLayout.java:140)
    at ch.qos.logback.classic.PatternLayout.doLayout(PatternLayout.java:56)
    at ch.qos.logback.core.WriterAppender.subAppend(WriterAppender.java:270)
    at ch.qos.logback.core.WriterAppender.append(WriterAppender.java:120)
    at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:93)
    at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:64)
    at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:275)
    at ch.qos.logback.classic.Logger.callAppenders(Logger.java:262)
    at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:465)
    at ch.qos.logback.classic.Logger.filterAndLog_2(Logger.java:456)
    at ch.qos.logback.classic.Logger.trace(Logger.java:477)
    at Myclass.main(Myclass.java:128)

What operating system and JVM version are you using.
Windows 7 x64 with Sun JDK 1.6 x32

Attach relevant log/output files.

Original issue reported on code.google.com by mondain on 26 Aug 2010 at 4:46

GoogleCodeExporter commented 8 years ago
Are you using a custom installation FFMPEG? I am facing a similar problem:
https://groups.google.com/forum/?fromgroups#!starred/xuggler-users/ygV-gZCkqwc

Original comment by kushel...@gmail.com on 12 Jul 2012 at 9:54