Darwin Streamer是Apple的开源RTSP服务器,采用APSL(Apple Public Source License)许可协议,可在免费商业使用。
1.下载安装
    最新的6.0.3版本只提供源码和mac os上的二进制文件,在windows上用vs无法编译通过。所以使用5.5.5版本
 DarwinStreamingSrvr5.5.5-Windows.exe http://static.macosforge.org/dss/downloads/DarwinStreamingSrvr5.5.5-Windows.exe
解压下载的文件, 执行目录中的install.bat进行安装,安装过程中会提供输入管理员用户名和密码,也可以在安装完成后再设置。    
还需要安装perl解析器, 下载:http://downloads.activestate.com/ActivePerl/releases/5.14.2.1402/ActivePerl-5.14.2.1402-MSWin32-x86-295342.msi
2.管理配置
打开cmd
设置管理员用户名及密码:
C:\Program Files\Darwin Streaming Server>perl WinPasswdAssistant.plDarwin Streaming Server SetupIn order to administer the Darwin Streaming Server you must create an administrator user [Note: The admin
Please enter a new administrator user name: gavinYou must also enter a password for the administrator user [Note: The administrator password cannot contai
Please enter a new administrator Password: 123456Re-enter the new administrator password: 123456Setup Complete!

启动用于管理服务器的web服务器

C:\Program Files\Darwin Streaming Server>perl streamingadminserver.pl
现在在浏览器中输入http://127.0.0.1:1220/,登录管理界面,远程登录时需要验证帐户
在管理界面中,General Settings页面设置视频文件存放目录,默认为C:\Program Files\Darwin Streaming Server\Movies
使用ffplay测试一下自带的示例
ffplay rtsp://192.168.9.80/sample_300kbit.mp4
3.MP4文件的流化
测试发现,只能播放darwin自带的示例文件,自己找的*.mp4文件都不能播放。google发现,需要对MP4文件hint。关于hint,有一段英文解释:
 Hint tracks are a series of instructions in a mp4 container file that
tell a server how to transmit packets. Hint tracks always refer
to another track, most likely an audio or video media track.     This series of instructions tells the server when to send the packet,
what type of RTP header to add, if there is any extra data in the
packet, and how much data to send in the packet. To save on space,
a hint can contain a pointer to the media track, instead of duplicating
that data. It will also tell what SDP to add for the track that is referenced.  So a file that is hinted should have a media track, and an associated
hint track for that media track. There are some mp4 container files
that just have hint tracks - these are called "fat hints" and are
usually not playable locally. These are illegal in ISMA, so we won 't
talk about them. 

大致的意思是,hint是mp4文件中的轨道,包含了RTP传输所使用的信息,其实就是建立一个索引。网上都说用mp4box可以对mp4文件进行流化操作,下载地址 http://www.videohelp.com/tools/mp4box。mp4box的功能非常多,支持3gp、mp4、avi、mp3等多种文件格式的转换及其它操作,不过它没有转码能力,详细使用参考http://gpac.wp.institut-telecom.fr/mp4box/mp4box-documentation/。不过最后悲剧的发现,出错了:
F:\Video>mp4box -hint 3.mp4
Hinting file with Path-MTU 1450 Bytes
Cannot create hinter (Feature Not Supported)Error: Feature Not Supported

又找了一个名为mp4creator的工具,下载地址http://mp4creator.sourceforge.net/download/index.htm
F:\Video>mp4creator -list Gucci.mp4
Track   Type    Info
1       video   H264 Baseline@3, 24.920 secs, 2407 kbps, 800x608 @ 25.000000 fps
2       audio   MPEG-4 AAC LC, 24.938 secs, 126 kbps, 44100 HzF:\Video>mp4creator -hint Gucci.mp4
MP4ERROR: FindTrackIndex: Track id 0 doesn't exist
mp4creator: couldn't create hint track, no media samples出错了!!!试试对单个轨道进行hintF:\Video>mp4creator -hint=1 Gucci.mp4
MP4ERROR: MP4File::FindIntegerProperty: no such property - moov.trak[0].mdia.minf.stbl.stsd.*.esds.decConfigDescr.objectTypeId
MP4ERROR: MP4File::FindIntegerProperty: no such property - moov.trak[2].mdia.minf.stbl.stsd.*.esds.decConfigDescr.objectTypeIdF:\Video>mp4creator -list Gucci.mp4
Track   Type    Info
1       video   H264 Baseline@3, 24.920 secs, 2407 kbps, 800x608 @ 25.000000 fps
2       audio   MPEG-4 AAC LC, 24.938 secs, 126 kbps, 44100 Hz
3       hint    Payload H264 for track 1虽然hint过程中,有错误提示但还是成功添加了hint轨道F:\Video>mp4creator -hint=2 Gucci.mp4
MP4ERROR: MP4File::FindIntegerProperty: no such property - moov.trak[0].mdia.minf.stbl.stsd.*.esds.decConfigDescr.objectTypeId
MP4ERROR: MP4File::FindIntegerProperty: no such property - moov.trak[2].mdia.minf.stbl.stsd.*.esds.decConfigDescr.objectTypeId
MP4ERROR: MP4File::FindIntegerProperty: no such property - moov.trak[3].mdia.minf.stbl.stsd.*.esds.decConfigDescr.objectTypeIdF:\Video>mp4creator -list Gucci.mp4
Track   Type    Info
1       video   H264 Baseline@3, 24.920 secs, 2407 kbps, 800x608 @ 25.000000 fps
2       audio   MPEG-4 AAC LC, 24.938 secs, 126 kbps, 44100 Hz
3       hint    Payload H264 for track 1
4       hint    Payload mpeg4-generic for track 2

对音视频轨道单独进行hint才能成功,提示的错误暂时不明白是什么原因,不过用vlc2.0测试过,转换后的视频能正常播放。但是用ffplay和mplay播放时,均存在问题。

mp4creator还有许多功能,自带的usage信息如下:
F:\Video>mp4creator
usage: mp4creator  <options> <mp4-file>
  Options:
  -aac-old-file-format    Use old file format with 58 bit adts headers
  -aac-profile=[2|4]      Force AAC to mpeg2 or mpeg4 profile
  -allow-avi-files        Allow avi files
  -calcH263Bitrates       Calculate and add bitrate information
  -create=<input-file>    Create track from <input-file>
    input files can be of type: .263 .aac .ac3 .amr .mp3 .divx .mp4v .m4v .cmp .xvid .chap
  -encrypt[=<track-id>]   Encrypt a track, also -E
  -extract=<track-id>     Extract a track
  -delete=<track-id>      Delete a track
  -force3GPCompliance     Force making the file 3GP compliant. This disables ISMA compliance.
  -forceH263Profile=<profile> Force using H.263 Profile <profile> (default is 0)
  -forceH263Level=<level>     Force using H.263 level <level> (default is 10)
  -H263CbrTolerance=<value>   Define H.263 CBR tolerance of [value] (default: 10%)
  -hint[=<track-id>]      Create hint track, also -H
  -interleave             Use interleaved audio payload format, also -I
  -list                   List tracks in mp4 file
  -make-isma-10-compliant Insert bifs and od tracks required for some ISMA players (also -i)
  -mpeg4-video-profile=<level> Mpeg4 video profile override
  -mtu=<size>             Maximum Payload size for RTP packets in hint track
  -optimize               Optimize mp4 file layout
  -payload=<payload>      Rtp payload type
                          (use 3119 or mpa-robust for mp3 rfc 3119 support)
  -rate=<fps>             Video frame rate, e.g. 30 or 29.97
  -qth=<height>           Set a new height for QuickTime display
  -qtw=<width>            Set a new width for QuickTime display
  -timescale=<ticks>      Time scale (ticks per second)
  -use64bits              Use for large files
  -use64bitstime          Use for 64 Bit times (not QT player compatible)
  -variable-frame-rate    Enable variable frame rate for mpeg4 video
  -verbose[=[1-5]]        Enable debug messages
  -version                Display version information

流媒体服务器Darwin Streamer安装配置相关推荐

  1. crtmpserver 配置说明_crtmpserver 流媒体服务器 集群 安装配置

    red5单机还是比较不错的,但是官方网站没有文档,不知道集群怎么配置,网查找了半天,只有red5 0.8版本有集群配置.以后的版本看了一下,有集群的插件,但是不知道怎么装插件,就算装好了插件,怎么配置 ...

  2. NF5270M3服务器主板安装系统,服务器NF5270M3的安装配置

    服务器NF5270M3的安装配置 内容精选 换一换 该操作只在跨AZ部署HA场景下才需要执行.EVS无法实现跨AZ磁盘共享,所以在跨AZ部署HA场景中,需要规划三台弹性云服务器,在每台云服务器上各绑定 ...

  3. 微软WSUS服务器 3.0安装配置详解

    公司之前用的是Wsus 2.0,前段时间Wsus3.0出来之后系统自动更新到了3.0版本.前几天调整服务器,需要把 Wsus服务器重新安装到另一台服务器上,刚好可以彻底的尝试一下Wsus3.0服务了. ...

  4. 开源Easydarwin流媒体服务器Windows编译、配置、部署

    1配置环境 Ø 系统:Windows 10 Ø Easydarwin版本:官方最新版本 Ø 本配置为非web配置,在官方文档中有提供web配置攻略 参考网站 http://doc.easydarwin ...

  5. 监控流媒体服务器连接监控摄像头的配置方式 - GB28181和ONVIF

    我们在前面已经讨论过监控摄像头接入监控流媒体服务器的两种方式:onvif和gb28181,并初步探讨了两种方式的区别和各自优势.接下来我们详细介绍云视睿博流媒体服务器对两种接入方式的配置方法. 一.G ...

  6. 虚拟机2012搭建DNS服务器,Windows Server2012 安装配置DNS服务器方法详解

    Windows Server2012 安装配置DNS服务器方法详解 在云服务器 Windows Server2012 上安装配置DNS服务器方法,安装与配置非常简单,在这里写个完整教程方便大家查询 一 ...

  7. SVN+FTP服务器搭建——SVN安装配置篇

    Subversion是一个自由,开源的版本控制系统.在Subversion管理下,文件和目录可以超越时空.Subversion将文件存放在中心版本库里.这个版本库很像一个普通的文件服务器,不同的是,它 ...

  8. Ubuntu系统上远程桌面,samba,ftp,vncserver,ssh服务器,teamviewer安装配置

    [说明]本文摘录和收集了很多网上前辈写的教程,在此表示感谢,本文都是经过自己的实践证明可行的,希望可以对他人有所帮助! 远程桌面安装配置: 1. ubuntu配置[(1)(2)必做,(3)选做] (1 ...

  9. Linux安装和配置sanba服务器,在linux安装配置samba服务器.doc

    在linux安装配置samba服务器 PAGE PAGE 7 在linux上安装配置samba服务器 在linux上安装配置samba服务器 在这给大家介绍一个不错的家伙,samba服务.如果您正在犯 ...

最新文章

  1. excel vba 使用mschart_使用VBA时不妨借力Excel催化剂的能力,开发更加轻松便捷
  2. wp7后台文件传输之-----BackgroundTransferService(二)
  3. 监督学习无监督学习_无监督学习简介
  4. python多线程编程(2): 线程的创建、启动、挂起和退出
  5. python库_python使用ctypes库调用DLL动态链接库_python
  6. phoneGap技术分析
  7. Ubuntu香港apt-get源
  8. Android studio中添加外部的jar包
  9. 数字图像处理(五) 图像复原
  10. 《HTML5游戏编程核心技术与实战》——2.3 图像API
  11. 生成服从正态分布的随机数
  12. 开发核酸检测软件方案书
  13. 关于出版《ARKit原生开发入门精粹》(2021-03-24更新)
  14. poj 3295 Tautology 构造法
  15. 《MobileNetV2: Inverted Residuals and Linear Bottlenecks》
  16. c语言迷宫问题程序流程图,c语言程序设计 迷宫问题
  17. 【Win11共享打印机,win11家庭版中添加组策略】
  18. 学生信息管理系统学籍信息管理
  19. 山石防火墙命令查看配置_hillstone 防火墙基本配置
  20. 社会化商业的基础架构

热门文章

  1. 51单片机最小系统板制作过程
  2. questasim的傻瓜式安装与仿真教程
  3. Java基础:华为云java基础函数题(一)
  4. human3.6数据集
  5. 初步实现fft(偶数点与奇数点均可)
  6. MATLAB与C++的接口问题
  7. Linux 驱动 – Backlight 驱动
  8. 中国果汁饮料行业营销状况与竞争趋势预测报告(2022-2027年)
  9. python 实战之模仿开发QQ聊天软件(二)MySQL数据库的连接和使用
  10. js获取当前月、上一月和下一月