darwin streaming server 源码编译
从苹果的网站http://developer.apple.com/opensource/server/streaming/index.html
下载 DarwinStreamingSrvr5.5.5-Source.tar.gz
编译环境为 fedora core 5,gcc 4.1.0
tar -zxvf DarwinStreamingSrvr5.5.5-Source.tar.gz
cd 解压缩的目录下
执行./Buildit
编译完成后,我们来生成linux下的dss安装包
执行 ./buildtarball
生成DarwinStreamingSrvr-Linux.tar.gz
DarwinStreamingSrvr-Linux.tar.gz
解压缩
tar -zxvf DarwinStreamingSrvr-Linux.tar.gz
cd DarwinStreamingSrvr-Linux
执行./Install
Please enter a new administrator user name:your_username
Please enter a new administrator Password: your_password
查看是否安裝成功
id qtss (查看Darwin Streaming Server的组id)
uid=501(qtss) gid=501(qtss) groups=501(qtss)
ps aux | grep Darwin(查看流媒体服务器的进程)
root ... ... ... /usr/local/sbin/DarwinStreamingServer
qtss ... ... ... /usr/local/sbin/DarwinStreamingServer
netstat -ntulp | grep Darwin(查看流媒体服务器的端口)
tcp 0.0.0.0:8001
tcp 0.0.0.0:554
tcp 0.0.0.0:7070
udp 127.0.0.1:6970
udp 192.168.0.1:6970
udp 127.0.0.1:6971
udp 192.168.0.1:6971
udp 127.0.0.1:6976
udp 127.0.0.1:6977
udp 127.0.0.1:6978
udp 127.0.0.1:6979
启动服务
启动 Darwin Streaming Server
sudo /usr/local/sbin/DarwinStreamingServer
启动 Web 管理介面 (tcp port 1220)
sudo /usr/local/sbin/streamingadminserver.pl
ps. 以上两项在刚安装好的时候会自动启动,不需手动执行
小技巧:自动启动流媒体服务器的方法:
自动运行流媒体服务器序非常简单,把上述命令添加在/etc/rc.d/rc.local脚本中即可。
进入web管理页面地址:http://yourip:1220/
enable TD board and PC server Local wired USB network connection
- enable TD usb network
- insert micro usb cable and select rndis
- type command in the console: ifconfig usb0 192.168.1.100
- Enable PC RTSP server USB network
- watch sudo ifconfig usb0 192.168.1.1
- Test network connection between board and PC server
- ping RTSP server from board console: ping 192.168.1.1