ubuntu 搭建Darwin Streaming Server6.03

来源:互联网 发布:unity3d 昼夜交替 编辑:程序博客网 时间:2024/06/10 04:41

参考文档

http://blog.csdn.net/sanjinxiong/article/details/7190247

http://wangheng.org/install-darwin-streaming-server-6-0-3-on-linux.html




Darwin StreamingServer简称DSSDSSApple公司提供的开源实时流媒体播放服务器程序。使用这个程序可以方便的在机子上搭建出一个多媒体的服务器。

1、下载

资料下载地址:

http://download.csdn.net/download/a7411053/4588411

里面包含6.03的源码和2个补丁

源码也可以到官网下载:

http://dss.macosforge.org/downloads/DarwinStreamingSrvr6.0.3-Source.tar

我使用csdn的下载地址

2、解包

将下载的rar文件解包,再把里面的源码包也解开

我用的图形化的操作,就不写命令行了

3、c++编译环境

$ sudo apt-get install build-essential 

4、增加用户,不填加,后面执行会报错

$sudo addgroup -system qtss  

$sudo adduser -system -no-create-home -ingroup qtss qtss  

5、打补丁

$ cd DarwinStreamingSrvr6.0.3-Source/

$patch -p1 < ../dss-6.0.3.patch

$ patch -p1 < ../dss-hh-20080728-1.patch 

6、

$./Buildit
$./buildtarball 生成DarwinStreamingSrvr-Linux.tar.gz
7、修改install文件
$tar -zxvf DarwinStreamingSrvr-Linux.tar.gz $cd DarwinStreamingSrvr-Linux

备份:
$cp Install Install.old
修改
Install文件 : M-->m
================
/usr/sbin/useradd -M qtss > /dev/null 2>&1
--->
/usr/sbin/useradd -m qtss > /dev/null 2>&1
8、执行
$sudo ./Install
*************************
In order to administer the Darwin Streaming Server you must create an administrator user [Note: The administrator user name cannot contain spaces, or single or double quote characters, and cannot be more than 255 characters long].Please enter a new administrator user name: xxxxxx
You must also enter a password for the administrator user [Note: The administrator password cannot contain spaces, or quotes, either single or double, and cannot be more than 80 characters long].Please enter a new administrator Password: Re-enter the new administrator password: Adding userName xxxxxxchown: invalid user: `qtss'Setup Complete!

7、查看是否安装成功

安装后会自动启动

查看进程

$ps aux | grep Darwin

查看端口
$sudo netstat -ntulp | grep Darwin(查看流媒体服务器的端口)

8、启动方法:

启动server:

$sudo /usr/local/sbin/DarwinStreamingServer


启动 Web 管理介面 (tcp port 1220)

$sudo /usr/local/sbin/streamingadminserver.pl

9、正常情况下可以登录浏览器进入你的页面

http://127.0.0.1:1220


10、默认的媒体文件存放在/usr/local/movies

你可以在web管理面板修改这个路径。

11、放到流媒体上的文件需要硫化
查看文件信息用mp4info查看文件信息(如果mp4info没有安装,就用apt-getinstall mp4info安装一下 )。
$mp4info ./test.mp4 
12、将媒体文件流化
(1)安装工具
如果mp4creator没有安装,就用
$sudo apt-get install mp4creator
安装一下  
(2)hint音频
mp4creator -hint=1 ./test.mp4 
(3)hint视频
$mp4creator -hint=2 ./test.mp4 
原创粉丝点击