JFFMPEG + JMF + RTP



Hi,
I'm an Italian Student...
I'm trying to improve a Java project about VoIP to use new Codecs
instead than default-JMF Codecs... I choose JFFMPEG to make it...
My project -in his first stage- is able to:
-Individuate capture device (cam)
-Construct a processor using the default-codec (H.263_RTP)
-Streaming cam on RTP (in realtime)

With my modifies, it's able to:
-Individuate capture device (cam)
-Construct a processor without "configuration fase" (to avoid Codec
settings)
-Obtain Buffer from DataSource...
then STOP!

I want Buffer-type because to use Codec Interface it's necessary the
process(Buffer,Buffer) method implemented by every Jffmpeg-codec but,
-maybe I'm wrong- Jffmpeg has only Decoder of MPEG4,DIVX, etc, and not
Encoder! I say this because, whit the call:
enc.getSupportedInputFormats() - I obtain -> "DIV3" or "DIVX" or
other...
and with
enc.getSupportedOutputFormats() - I obtain -> "RGB" only!!!
why???
what must I do to encode RGB cam-streaming in MPEG4???
Can anybody post some example about Jffmpeg? Can anybody help me?
If you want I can post my code... please help me!

PS: another questione: how it's possible to convert Buffer to
DataSource to reconstruct a DataSink for RTP???

francesco

.