简单介绍
主页: http://dss.macosforge.org/
Darwin Streaming Server (DSS) is an open sourceproject intended for developers who need to stream QuickTime and MPEG-4 mediaon alternative platforms such as Mac, Windows, Linux, and Solaris, or thosedevelopers who need to extend and/or modify the existing
streaming server codeto fit their needs. Darwin Streaming Server is only supported by the opensource community and is not eligible for technical support from Apple.
DSS 是跨平台的软件,能够在Linux、Mac OS
或 Windows
等上面部署
搭起来后,就能够用手机等进行远程播放了.
安装步骤
(1)
http://dss.macosforge.org/downloads/DarwinStreamingSrvr5.5.5-Windows.exe
下载后解压。直接点击文件Install.bat,安装到 C:\ProgramFiles\Darwin Streaming Server
(2)
安装 Perl 解释器,从 http://www.perl.org/get.html 选择
选择ActivePerlW下载,我的系统是32位,在这里选择32位的下载,然后安装 。默认就可以。
装好后在 cmd 以下使用:
c:\document and settings> cd C:\ProgramFiles\Darwin Streaming Server
# 依据提示创建 WebAdmin 的账号和password C:\Program Files\Darwin Streaming Server> perl WinPasswdAssistant.pl # 执行 WebAdmin 管理器 C:\Program Files\Darwin Streaming Server> perl streamingadminserver.pl # 如今就能够打开 http://127.0.0.1:1220/ 来对 DSS server进行管理了 |
在 DSS WebAdmin 里面改动 General Settings -> Media Directory 。将它改为你的 Media 文件夹,假设使用默认的,把视频文件放到C:\ProgramFiles\Darwin Streaming Server\Movies 里面
(3)
用 QuickTime 或VLC 打开rtsp://127.0.0.1:554/sample_100kbit.mp4,正常的话,就能够看到视频正常播放了.
Movies 里面有自带的例子.
转换普通视频为能够播放的流媒体格式
例子的视频是经过处理过的.
从http://www.videohelp.com/software/mp4box下载选择适合自己系统的版本号.
或到http://download.csdn.net/detail/sheji105/8781015下载
下载解压后把mp4box.exe放入C:\WINDOWS\system32.转换个视频后信息例如以下:
C:\Program Files\Darwin StreamingServer\Movies>mp4box duola1.mp4 -hint
Hinting file with Path-MTU 1450 Bytes
Hinting track ID 1 - Type"avc1:avc1" (H264) - BW 460 kbps
Hinting track ID 2 - Type "mp4a:mp4a"(mpeg4-generic) - BW 32 kbps
Saving duola1.mp4: 0.500 secs Interleaving
然后就能够用rtsp://127.0.0.1:554/duola1.mp4
播放了.