Differences between revisions 11 and 38 (spanning 27 versions)
Revision 11 as of 2005-07-11 10:11:07
Size: 2033
Editor: kysucix
Comment:
Revision 38 as of 2008-06-26 09:53:55
Size: 5294
Editor: anonymous
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
= FREEJ STREAMING =
Now with [http://freej.org freej] you can stream video on internet to an [http://icecast.org icecast] server !
You just need icecast >2.2. (download it [http://www.icecast.org/download.php here])
= STREAMING VIDEO WITH FREEJ =
<<TableOfContents(2)>> In spanish lea [[http://www.altred.net/altred/streaming|Aqui]] o [[http://wiki.slec.net/HacerStreamDeVideoConSoftwareyCodecsLibres|Aqui]]... otherwise just continue reading.
Line 6: Line 5:
Now with [[http://freej.org|freej]] you can stream video on internet to an [[http://icecast.org|icecast]] server ! You just need icecast >=2.2. (download it [[http://www.icecast.org/download.php|here]] )
Line 7: Line 7:
call it iptv, webtv, video streaming...
you can send easily audio and video trought internet.
call it iptv, webtv, video streaming... you can send easily audio and video trought internet.
Line 10: Line 9:
it's compatible with every [[http://wiki.v2v.cc/cgi-bin/trac.cgi/wiki/OggTheoraPlayer|oggtheora player]]:
Line 11: Line 11:
it's compatible with every theora player:
 * [http://www.mplayerhq.hu mplayer]
 * [http://xinehq.de/ xine]
 * [http://www.videolan.org/ vlc] (on macosx, window$)
 * [http://www.scvi.net/cortado.htm cortado] java applet
 * every window$ player installing this [http://www.illiminable.com/ogg/oggcodecs_0.69.8924.exe theora codec for windows]
 * [[http://www.mplayerhq.hu|mplayer]]
 * [[http://xinehq.de/|xine]]
 * [[http://www.videolan.org/|vlc]] (on macosx, window$)
 * [[http://www.scvi.net/cortado.htm|cortado]] java applet
 * every [[http://sam.zoy.org/photos/20001128%20-%20piaule%20de%20Sam/003%20-%20marteau%20Windows%202000.jpeg|window$]] player installing this [[http://www.illiminable.com/ogg/|theora codec for windows]]
== INSTALLING ==
If you want to stream just [[http://freej.dyne.org/?info=download|download the latest version of FreeJ]] and install it:
Line 18: Line 19:
== INSTALLING ==
If you want to stream just download this package http://dyne.org/~kysucix/tmp/freej-0.7.2-rc2.tar.bz2 or latest svn code with:
{{{
svn co svn://code.dyne.org/rastasoft/freej/freej
}}}
and
compile it with
compile it from source with
Line 27: Line 22:
./autogen.sh && make ./configure && make
Line 29: Line 24:
(use ./autogen.sh --enable-sdl_image && make if you have sdl_image library and want to load also jpg images)
Line 35: Line 29:
or install one of the binary packages provided
Line 37: Line 32:
The command line to stream is:
Since version '''0.9''' streaming is configured via scripting, the full documentation is available on
http://freej.dyne.org/docs/scripting/VideoEncoder.html

As the scripting API is progressing, some details are changing across versions, check your freej version with 'freej -v' and see the possibilities below:

Change the settings to your server configuration and run the script during your
performance (load it dynamically with ctrl-j from the console) to start streaming.

=== streaming with version 0.10 ===
Line 39: Line 44:
freej -s <resolution> -q <theora_quality>-a -i http://server:port/mountpoint.ogg -p password <file_to_load>
}}}
e.g.
{{{
freej -s 240x180 -q 10 -a -i http://dyne.org:8000/freej.ogg -p hackme /dev/video0 stallman.avi mask.png subtitle.txt

// create a jack audio input
// port name buffer size samlerate
audio = new AudioJack("alsaplayer", 2048, 44100);
// in case the port named is not already present:
// you should connect the input manually using jack

// create a video encoder object
// values 1-100 video quality video bitrate audio quality audio_bitrate
encoder = new VideoEncoder(10, 64000, 0, 24000);

// add the audio channel in the video encoded
encoder.add_audio(audio);

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('/mnt/hd1/3/video/luminescenza.ogg');
Line 46: Line 71:
And then press CTRL-s with the focus on freej window to stream. By default freej will record also on hardirs what you stream. === streaming with version 0.9 ===
Line 48: Line 73:
default quality is 16, but for low bandwidth I suggest to use a quality from 6 to 9. Here a simple example script:
{{{
Line 50: Line 76:
It's dinamic bitrate streaming, with 7 theora quality and low resolution you'll achieve a < 30Kbps video streaming. // 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("hackme");
encoder.stream_mountpoint("freej-test.ogg");
register_encoder(encoder);
Line 52: Line 87:
If you want to stream only video remove -a option. encoder.start_stream();
//// uncomment the line below to save on a local file as well:
// encoder.start_filesave("prova.ogg");
Line 54: Line 91:
== contacts ==
For any problems write to freej a dyne.org or directly to kysucix a dyne.org or joing #freej or #dyne on freenode irc network
}}}
Line 57: Line 93:
Ciao :)
Line 59: Line 94:
[http://dyne.org/~kysucix/ kysucix] === streaming with version 0.8 or older ===

Users acquainted with the 0.8 version please note the ctrl-w key doesn't works anymore,
now the stream is started from a script and scripts can be loaded dinamically.

Versions before 0.8 cannot stream! update yourself and join the online sensation!

== How to include into a WebSite ? ==
For example like that

{{{
<object ID="MediaPlayer" WIDTH="240" HEIGHT="197" CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,
4,7,1112">
<param name="autoStart" value="True">
<param name="filename" value="http://localhost/freej.ogg">
<param NAME="ShowControls" VALUE="True">
<param NAME="ShowStatusBar" VALUE="True">
<embed TYPE="application/x-mplayer2" SRC="http://localhost/freej.ogg" NAME="MediaPlayer"
WIDTH="240" HEIGHT="197" autostart="1" showcontrols="1">
</embed>
</object>
}}}
or like that

{{{
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>test</title>
</head>
<body style="top:0px;left:0px;margin:0px;padding:0px;background-color:#000000;">
<table width="100%" height="100%">
<tr>
<td align="center">
<embed src="http://localhost/freej.ogg" type="video/ogg" controller="true" autoplay="true" height="256" width="320"></embed>
</td>
</tr>
</table>
</body>
</html>
}}}

But also using the Cortado java applet which works well especially when it is embedded into iTheora

http://giss.tv offers free video streaming hosting for hacktivists to quickly satisfy your pirate TV lust, Har Har Har!


Happy hacking ;)

STREAMING VIDEO WITH FREEJ

In spanish lea Aqui o Aqui... otherwise just continue reading.

Now with freej you can stream video on internet to an icecast server ! You just need icecast >=2.2. (download it here )

call it iptv, webtv, video streaming... you can send easily audio and video trought internet.

it's compatible with every oggtheora player:

INSTALLING

If you want to stream just download the latest version of FreeJ and install it:

compile it from source with

./configure && make

install it with:

make install

or install one of the binary packages provided

USAGE

Since version 0.9 streaming is configured via scripting, the full documentation is available on http://freej.dyne.org/docs/scripting/VideoEncoder.html

As the scripting API is progressing, some details are changing across versions, check your freej version with 'freej -v' and see the possibilities below:

Change the settings to your server configuration and run the script during your performance (load it dynamically with ctrl-j from the console) to start streaming.

streaming with version 0.10

// create a jack audio input
//                    port name     buffer size  samlerate
audio = new AudioJack("alsaplayer", 2048,        44100);
// in case the port named is not already present:
// you should connect the input manually using jack

// create a video encoder object
//    values 1-100         video quality  video bitrate  audio quality  audio_bitrate
encoder = new VideoEncoder(10,             64000,        0,             24000);

// add the audio channel in the video encoded
encoder.add_audio(audio);

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('/mnt/hd1/3/video/luminescenza.ogg');

streaming with version 0.9

Here a simple example script:

// 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("hackme");
encoder.stream_mountpoint("freej-test.ogg");
register_encoder(encoder);

encoder.start_stream();
//// uncomment the line below to save on a local file as well:
// encoder.start_filesave("prova.ogg");

streaming with version 0.8 or older

Users acquainted with the 0.8 version please note the ctrl-w key doesn't works anymore, now the stream is started from a script and scripts can be loaded dinamically.

Versions before 0.8 cannot stream! update yourself and join the online sensation!

How to include into a WebSite ?

For example like that

<object ID="MediaPlayer" WIDTH="240" HEIGHT="197" CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,
4,7,1112">
<param name="autoStart" value="True">
<param name="filename" value="http://localhost/freej.ogg">
<param NAME="ShowControls" VALUE="True">
<param NAME="ShowStatusBar" VALUE="True">
<embed TYPE="application/x-mplayer2" SRC="http://localhost/freej.ogg" NAME="MediaPlayer"
WIDTH="240" HEIGHT="197" autostart="1" showcontrols="1">
</embed>
</object>

or like that

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>test</title>
</head>
<body style="top:0px;left:0px;margin:0px;padding:0px;background-color:#000000;">
<table width="100%" height="100%">
<tr>
<td align="center">
<embed src="http://localhost/freej.ogg" type="video/ogg" controller="true" autoplay="true" height="256" width="320"></embed>
</td>
</tr>
</table>
</body>
</html>

But also using the Cortado java applet which works well especially when it is embedded into iTheora

http://giss.tv offers free video streaming hosting for hacktivists to quickly satisfy your pirate TV lust, Har Har Har!

Happy hacking ;)

FreejStreaming (last edited 2012-06-26 07:17:13 by 0v0x)