org.mmbase.service.implementations.g2encoders
Class g2encoderUnix

java.lang.Object
  |
  +--org.mmbase.service.implementations.g2encoders.g2encoderUnix
All Implemented Interfaces:
g2encoderInterface, serviceInterface

public class g2encoderUnix
extends java.lang.Object
implements g2encoderInterface

Version:
$Revision: 1.8 $ $Date: 2001/12/14 09:33:50 $
Author:
Daniel,Marcel

Constructor Summary
g2encoderUnix()
           
 
Method Summary
 boolean checkstring(java.lang.String method, java.lang.String varname, java.lang.String tocheck)
           
 int doEncode(java.lang.String cmds)
          cmds - String containing options Values are: inputname = "" - input filename outputname = "" - output filename encodeAudio = "false/true" - should audio be encoded encodeVideo = "false/true" - should video be encoded server = ":port/resource" - name of server username = "" - username on server password = "" - password on server ------------------------------------------------------------------------------------------------------------ audioDevice = "" - start encoder by hand w/ help, encoder will tell the avail.
 java.lang.String getCommand()
           
 java.lang.String getVersion()
           
static void main(java.lang.String[] args)
           
 void shutDown()
           
 void startUp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

g2encoderUnix

public g2encoderUnix()
Method Detail

startUp

public void startUp()
Specified by:
startUp in interface serviceInterface

shutDown

public void shutDown()
Specified by:
shutDown in interface serviceInterface

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface g2encoderInterface

getCommand

public java.lang.String getCommand()

doEncode

public int doEncode(java.lang.String cmds)
cmds - String containing options Values are: inputname = "" - input filename outputname = "" - output filename encodeAudio = "false/true" - should audio be encoded encodeVideo = "false/true" - should video be encoded server = ":port/resource" - name of server username = "" - username on server password = "" - password on server ------------------------------------------------------------------------------------------------------------ audioDevice = "" - start encoder by hand w/ help, encoder will tell the avail. ports videoDevice = "" - same here OR use caputureAudioDevice = "audioFile, quicktimeFile, audiodevice[1..2] [microphone/linein/cd], or windowCapture" captureVideoDevice = "quicktimeFile, videodevice[1..4] [television/composite1/s-video], or windowCapture" ------------------------------------------------------------------------------------------------------------ targetAudience = "28k,56k,singleISDN,dualISDN,lan,cable" (comma-sep if sureStream) audioFormat = "0..3" videoFormat = "0..3" sureStream = "false/true" - singleRate or SureStream title = "" author = "" copyright = "" enableMobile = "false/true" enableRecord = "false/true" playerVersion = "[5/6]" emphasize = "false/true" cropping = "xt,yt,xd,yd" duration = "hh:mm:ss.m" imageSize = "x" forceOverwrite = "false/true"
Specified by:
doEncode in interface g2encoderInterface
Parameters:
cmds - encode commands
Returns:
exitvalue of encodeprocess

main

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

checkstring

public boolean checkstring(java.lang.String method,
                           java.lang.String varname,
                           java.lang.String tocheck)


MMBase 2002