pallab-gain / xuggle

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

setCodec(ICodec.ID.H263P) does not work! #251

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Setting the H263P codec ID on a stand-alone decoder (no container) does not 
work.

Code snapshot for reproducing:
<<<<<
IStreamCoder decoder = IStreamCoder.make(IStreamCoder.Direction.DECODING);
decoder.setCodec(ICodec.ID.CODEC_ID_H263P);
if (decoder.getCodecID() == ICodec.ID.CODEC_ID_H263P)
    System.out.println("Success!");
else
    System.out.println("Failure!");
>>>>>

The expected output would be "Success!", but the actual one is "Failure!".

In addition,
<<<<<
System.out.println(
    "Codec:\t\t" + decoder.getCodec() +
    "\nCodec ID:\t" + decoder.getCodecID() +
    "\nCodec tag:\t" + decoder.getCodecTag() +
    "\nCodec type:\t" + decoder.getCodecType()
);
>>>>>
returns:
<<<<<
Codec:      null
Codec ID:   CODEC_ID_PROBE
Codec tag:  0
Codec type: CODEC_TYPE_UNKNOWN
>>>>>
(which BTW proves that "A short hand for getCodec().getType()" as 
IStreamCoder.getCodecID() is not quite exact).

Using setCodecID(ICodec.ID.H263P) instead of setCodec(ICodec.ID.H263P) returns 
the exact same output.

java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Client VM (build 17.0-b16, mixed mode, sharing)
Microsoft Windows XP [version 5.1.2600]

Original issue reported on code.google.com by nicolas....@gmail.com on 24 Sep 2010 at 12:16