from philippe26@wanadoo.fr
Hello
Looks like there is a bug in
jffmpeg-0.2.0 [show only this release]
Where : jffmpeg-0.2.0.jar
Class:MP42Codec
Method : public Format[] getSupportedInputFormats()
It is supposed to be a decoder for MP42 but
identifies itselfs as a DIVX ( or DIV3 , can't remember )
decoder.
Then , although plugins have been loaded ,
JMF can't ply the movie:
I suspect a copy/paste error.
Bugfix:
public class MP42_Codec extends MP42Codec
{
public MP42_Codec()
{
}
public MP42_Codec(int i, int i1)
{
super(i, i1);
}
public Format[] getSupportedInputFormats()
{
VideoFormat formatWithBadName = (VideoFormat)
super.getSupportedInputFormats()[0];
VideoFormat inputFormat = new VideoFormat("MP42",
formatWithBadName.getSize(),
formatWithBadName.getMaxDataLength(),
formatWithBadName.getDataType(),
formatWithBadName.getFrameRate());
VideoFormat [] supportedFormat = {inputFormat};
return supportedFormat;
}
}
In return, can you do me a favor?
Where are and how can we install the
native version of your library?
I don't see any dll and , as most of java developpers,
i am not really motivated in compiling c/c++ code.
Just having to set a java.library.path properties that
points to a .dll would be perfect :-)
Cheers
Philippe