FreeJ scripting

Class VideoEncoder

Object
   |
   +--VideoEncoder

class VideoEncoder


The Video Encoder compresses video to save in a file or stream on the net (using the Ogg/Vorbis/Theora codec) and can be configured to save the compressed video in a file (playable later) or stream che compressed video on the internet for live playback (using icecast2)

Example: // create a video encoder object // values 1-100 video quality video bitrate audio quality audio_bitrate encoder = new VideoEncoder(10, 64000, 5, 24000); encoder.stream_host("giss.tv"); encoder.stream_port(8000); encoder.stream_title("testing new freej"); encoder.stream_username("source"); encoder.stream_password("2t645"); encoder.stream_mountpoint("freej-test.ogg"); register_encoder(encoder); encoder.start_stream(); // encoder.start_filesave("prova.ogg");

Defined in VideoEncoder.js

Author: Xiph.org, Kysucix, Jaromil


Constructor Summary
VideoEncoder(<int> video_quality, <int> video_bitrate, <int> audio_quality, <int> audio_bitrate)
            This object compresses the video output of FreeJ
 
Method Summary
 void start_filesave(<string> file_name)
           The Encoder object starts processing when this method is called.
 void start_stream()
           The Encoder object starts processing when this method is called.
 void stop_filesave()
           Stop saving into the file.
 void stop_stream()
           Stop sending video on the net.
 void stream_homepage(homepage)
          
 void stream_host(address)
           Configure the network address for the icecast server we want to stream to.
 void stream_mountpouint(mountpoint)
          
 void stream_password(password)
          
 void stream_port(port)
          
 void stream_title(title)
          
 void stream_username(username)
          

Constructor Detail

VideoEncoder

VideoEncoder(<int> video_quality, <int> video_bitrate, <int> audio_quality, <int> audio_bitrate)

Method Detail

start_filesave

void start_filesave(<string> file_name)

start_stream

void start_stream()

stop_filesave

void stop_filesave()

stop_stream

void stop_stream()

stream_homepage

void stream_homepage(homepage)

stream_host

void stream_host(address)

stream_mountpouint

void stream_mountpouint(mountpoint)

stream_password

void stream_password(password)

stream_port

void stream_port(port)

stream_title

void stream_title(title)

stream_username

void stream_username(username)

FreeJ scripting

| FreeJ scripting documentation is Copyleft (C) 2000 - 2007 dyne.org foundation. Verbatim copying and distribution of this entire page is permitted in any medium, provided this notice is preserved.
Send inquiries & questions to dyne.org's hackers.
Documentation generated by JSDoc on Thu May 29 20:56:52 2008