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
--------------------------------
How to Use the RealProducer Plus
--------------------------------
To begin encoding files with the RealProducer command
line, you need to become familiar with the RealProducer
Plus options.
Type the following command in a terminal window:
realproducer --Help
You will see the options displayed on your screen.
Usage: realproducer [ options ]
Example: realproducer -i foo.wav -b "My American Journey" -o journey.rm
Options: ( defaults in parentheses )
-i infile name Input File
-y encode audio 1 - Encode audio
0 - Do not encode audio
-z encode video 1 - Encode video
0 - Do not encode video
Note - by default RealProducer
encodes all media streams present
-o outfile name Output File (output.rm)
-s server[:port]/resource Server URL
-u username Username for Live Connection
-p password Server Password for Live Connection
-l audio device index Live Audio Input Device / Port
(e.g: 3:0)
-n video device index Live Video Input Device / Port
(e.g: 4:0)
-t target audience Comma Delimited Target Audience 0-5 (0)
0 - 28 Kbps Modems
1 - 56 Kbps Modems
2 - Single ISDN
3 - Dual ISDN
4 - Corporate LAN
5 - LAN/T1 - High
-a audio format Audio Format 0-3
0 - Voice Only (default)
1 - Voice with Background Music
2 - Music
3 - Stereo Music
-v video quality Video Quality 0-3
0 - Normal Motion Video (default)
1 - Smoothest Motion Video
2 - Sharpest Image Video
3 - Slide Show
-f file type Single Rate or SureStream 0-1 (1)
0 - Single Rate
0 - Single Rate
1 - SureStream
-b title Clip Title
-h author Clip Author
-c copyright Clip Copyright
-k boolean (0 or 1) Enable Mobile Play (0)
-r boolean (0 or 1) Enable Selective Record (0)
-g player version Player Compatibility 5-6 (6)
5 - RealPlayer 5.0 or Greater
6 - RealPlayer G2
-w a/v emphasis SureStream Emphasize Audio/Video 0-1
0 - Emphasize Audio
1 - Emphasize Video
-m config file Target Audience Configuration File
-j left,top,width,height Set Image Cropping (0,0,0,0)
-x duration Maximum Encoding Duration (hh:mm:ss)
-e x Image Size to be Encoded (160x120)
(columns must be a multiple of 4)
--help Display This Message.
--version Display Version.
--force-overwrite Force overwriting of existing output file.
--temp-dir=dir Set temporary directory to dir.
Capture devices:
Available devices formats: (9 total)
0. File format Audio File Reader (extensions *.wav, *.au)
1. File format Quicktime File Reader (extensions *.mov)
2. V4L1 Video capture plug-in (/dev/video0) Real Networks, Inc.
Port 0: Television (2:0)
Port 1: Composite1 (2:1)
Port 2: S-Video (2:2)
3. V4L1 Video capture plug-in (/dev/video1) Real Networks, Inc.
Port 0: Television (3:0)
Port 1: Composite1 (3:1)
Port 2: S-Video (3:2)
4. V4L1 Video capture plug-in (/dev/video2) Real Networks, Inc.
5. V4L1 Video capture plug-in (/dev/video3) Real Networks, Inc.
6. Linux/OSS audio capture plug-in (/dev/dsp) RealNetworks, Inc.
Port 0: Microphone (6:0)
Port 1: Line In (6:1)
Port 2: CD (6:2)
7. Linux/OSS audio capture plug-in (/dev/dsp1) RealNetworks, Inc.
Port 0: Microphone (7:0)
Port 1: Line In (7:1)
Port 2: CD (7:2)
8. X11 window capture plug-in. Real Networks, Inc.
Port 0: Window capture (8:0)
- Version:
- $Id: g2encoderUnix.java,v 1.9 2002/04/29 10:54:18 pierre Exp $
- Author:
- Daniel Ockeloen, Marcel
|
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 = "<name>" - input filename
outputname = "<name>" - output filename
encodeAudio = "false/true" - should audio be encoded
encodeVideo = "false/true" - should video be encoded
server = "<name>:port/resource" - name of server
username = "<name>" - username on server
password = "<password>" - password on server
------------------------------------------------------------------------------------------------------------
audioDevice = "<num:num>" - 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 |
g2encoderUnix
public g2encoderUnix()
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 = "<name>" - input filename
outputname = "<name>" - output filename
encodeAudio = "false/true" - should audio be encoded
encodeVideo = "false/true" - should video be encoded
server = "<name>:port/resource" - name of server
username = "<name>" - username on server
password = "<password>" - password on server
------------------------------------------------------------------------------------------------------------
audioDevice = "<num:num>" - start encoder by hand w/ help, encoder will tell the avail. ports
videoDevice = "<num:num>" - 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 = "<name>"
author = "<name>"
copyright = "<name>"
enableMobile = "false/true"
enableRecord = "false/true"
playerVersion = "[5/6]"
emphasize = "false/true"
cropping = "xt,yt,xd,yd"
duration = "hh:mm:ss.m"
imageSize = "<num>x<num>"
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 build 1.6.5.20030923