video.jmf
Class Transcode

java.lang.Object
  extended by video.jmf.Transcode
All Implemented Interfaces:
javax.media.ControllerListener, javax.media.datasink.DataSinkListener

public class Transcode
extends java.lang.Object
implements javax.media.ControllerListener, javax.media.datasink.DataSinkListener

A sample program to transcode an input source to an output location with different data formats.


Constructor Summary
Transcode()
           
 
Method Summary
 void controllerUpdate(javax.media.ControllerEvent evt)
          Controller Listener.
 void dataSinkUpdate(javax.media.datasink.DataSinkEvent evt)
          Event handler for the file writer.
 boolean doIt(javax.media.MediaLocator inML, javax.media.MediaLocator outML, javax.media.Format[] fmts, int start, int end)
          Given a source media locator, destination media locator and an array of formats, this method will transcode the source to the dest into the specified formats.
static java.lang.String getAudioFormatString()
           
static void main(java.lang.String[] args2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transcode

public Transcode()
Method Detail

doIt

public boolean doIt(javax.media.MediaLocator inML,
                    javax.media.MediaLocator outML,
                    javax.media.Format[] fmts,
                    int start,
                    int end)
Given a source media locator, destination media locator and an array of formats, this method will transcode the source to the dest into the specified formats.


controllerUpdate

public void controllerUpdate(javax.media.ControllerEvent evt)
Controller Listener.

Specified by:
controllerUpdate in interface javax.media.ControllerListener

dataSinkUpdate

public void dataSinkUpdate(javax.media.datasink.DataSinkEvent evt)
Event handler for the file writer.

Specified by:
dataSinkUpdate in interface javax.media.datasink.DataSinkListener

getAudioFormatString

public static java.lang.String getAudioFormatString()

main

public static void main(java.lang.String[] args2)