文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>icecast服务器

icecast服务器

时间:2006-07-13  来源:lzhw_lucky

icecast不仅支持声音流还支持视频流(实时的用FreeJ来搭键)

FreejStreaming

STREAMING VIDEO WITH FREEJ

If you can read spanish read here ... 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

The command line to stream is:

freej -s <resolution> -T <theora_quality> -V <vorbis_quality> -i http://server:port/mountpoint.ogg -p password <file_to_load> 

e.g.

freej -s 240x192 -T 7 -V 3 -i http://dyne.org:8000/freej.ogg -p hackme /dev/video0 stallman.avi mask.png subtitle.txt 

And then press CTRL-w to stream. By default freej will record also on hardisk what you stream.

default quality is 16, but for low bandwidth I suggest to use a quality from 6 to 9.

It's variable bitrate streaming, with 7 theora quality and low resolution you'll achieve a < 30Kbps video streaming.

If you want to stream only video add -a option.

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> 

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

Ciao

ps. This is a wiki! feel free to edit it!

kysucix

相关阅读 更多 +
排行榜 更多 +
龙珠格斗火柴人

龙珠格斗火柴人

飞行射击 下载
荒野恐龙猎手安卓版

荒野恐龙猎手安卓版

飞行射击 下载
超凡坦克英雄

超凡坦克英雄

飞行射击 下载