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
|
VideoEncoder
VideoEncoder(<int> video_quality, <int> video_bitrate, <int> audio_quality, <int> audio_bitrate)
This object compresses the video output of FreeJ
Parameters:
video_quality
- quality of the video compression, from 1 to 100.
video_bitrate
- desired target bitrate for the video compression (not exactly matched)
audio_quality
- quality of the audio compression, from 1 to 100. If 0 then uses fixed bitrate
audio_bitrate
- constant bitrate for the audio compression, when 0 quality is specified
Returns:
a new allocated Video Encoder
Author: Xiph.org, Kysucix, Jaromil
start_filesave
void start_filesave(<string> file_name)
The Encoder object starts processing when this method is
called. Every start function should be called only after having
applied all configuration directives. start_filesave starts saving
all compressed video into the specified .OGG file.
Parameters:
file_name
- full path to the file to be saved, it is recommended to include an .ogg or .ogm extension
start_stream
void start_stream()
The Encoder object starts processing when this method is
called. Every start function should be called only after having
applied all configuration directives. start_stream sending the
compressed video on the net to the configured Icecast server.
stop_filesave
void stop_filesave()
Stop saving into the file. The Encoder object will stop processing
if this method is called and both filesave and stream are stopped.
stop_stream
void stop_stream()
Stop sending video on the net. The Encoder object will stop
processing if this method is called and both filesave and stream
are stopped.
stream_homepage
void stream_homepage(homepage)
stream_host
void stream_host(address)
Configure the network address for the icecast server we want to stream to.
Parameters:
address
- can be an name or a numeric IP address, it will appear in the internet URL to be played.
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 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