`
weiyuhu
  • 浏览: 235869 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

darwin服务器

阅读更多
   最近开始研究RTP以及RTSP协议和流媒体服务器。在流媒体服务器中其中以APPLE提供的开源版本DARWIN最为有名。DARWIN在UBUNTU下的安装如下:

Darwin Streaming Server


This article was for the following Ubuntu versions tested:
Feisty Fawn 7.04 Gutsy Fawn 7.04
Dapper Drake 6.06 (Long Term Support)
Darwin Streaming Server is the free version of QuickTime commercial server from Apple. Here are some of it's features:
Support for open standards: MP3, MPEG-4, H.264/AVC, RTP, RTSP
Open Source pursuant to Apple Public Source License
No term, no user restrictions, etc.
Free
In addition, the server through a Web interface, a simple configuration, even from another computer.



The Darwin server is suited for on-demand streaming, where the audio / video data is already in coded form as a file and available on demand by a user of each other. In connection with the Live encoder mp4live from mpeg4ip project, but it can also live streaming applications (eg Internet-TV).

The following instructions should assist in the installation and configuration of the Darwin server.

Preparation

For the installation of the Darwin Streaming Server, the following two packages need to be installed:

Libstdc + +5 (is already installed by default)
Checkinstall (Dapper)

To the Darwin streaming server after installation test can also be a good player for playback. This can be either locally on the server, or even better on a second computer to the server network is installed. It is proposed to take this opportunity to install the VLC media player with MPEG-4 support, but there are certainly other players to use.

The Darwin Streaming Server is not as a finished package for Ubuntu or Debian available, but must via Web browser as tar file from Apple's Web Download (registration required). The installation is described here the package Official Release - DSS 5.5.5 -> Linux -> streaming server is required, which the Linux binaries. The file is then downloaded and unpacked in the home directory.

Installation

After unpacking a terminal is opened and executed the following commands:

cd DarwinStreamingSrvrlinux Linux
sudo addgroup --system qtss
sudo adduser --system --no-create-home --ingroup qtss qtss

Gutsy Fawn

Under Ubuntu 7.04 Dapper Fawn the command is:
sudo. / Install

Dapper Drake

Under Ubuntu 6.06 Dapper Drake is the call warrant against:
sudo checkinstall - pkgname = darwin-server - pkgversion = 5.5.5. / Install

Here is a brief explanation of what the different commands effect:
Change in the scale when unpacking subdirectory
Creating a user group "qtss" (otherwise the installation doesn't work)
Creating a user "qtss" (as before, but strangely ubuntu not necessary?)
Calling the installation routine
After entering the last command line, the installation routine automatically and directed all the necessary directories and so spontaneous. It will also name and password for the administrator of the Darwin server queried. After completing the installation, the Darwin server automatically.

The installation of the server software is closed and the terminal can be closed.

Directories

The following table presents an overview of the most important files and directories of the Darwin server:

/usr/local/sbin/Darwin Streaming Server ---- Server Software
/usr/local/sbin/streamingadminserver.pl ---- Web Frontend
/etc/streaming ---- Configuration Dir
/etc/streaming/streamingserver.xml ---- Configuration File Server
/var/streaming/logs ---- Logs
/usr/local/movies ---- Default directory for video files

Then, the file /etc/streaming/streamingserver.xml must be given write privledges, otherwise no configuration can be saved:
sudo chmod 755 /etc/streaming/streamingserver.xml

Configuration and Test

The configuration of the Darwin server via a web interface and the following link called:

http://<Server-IP>:1220

After signing up as an administrator using the software installation previously elected login information can now be made more settings. When you first call up the site initially queried following information:
MP3 Broadcast Password
Secure Administration
Media Folder: /usr/local/movies
Streaming on Port 80 Streaming on Port 80
It is important here first is that the path to the video files (Media Folder) correctly specified, all other issues can safely with the "Next" button skipped.In the specified directory /usr/local/movies are already some demo videos, for the first function tests can be used. It is therefore appropriate that this requirement to make changes at any time are on the configuration menu. After defining these four points will eventually configuration mask for the Darwin server, in other settings can be made. Leave the configuration screen by clicking on "Sign Out" (left column bottom).

Now you can test whether the Darwin server works as desired. This is the VLC media player opened and the menu "File -> Open Network Stream" stream following address:

rtsp://<Server-IP>/sample_100kbit.mp4

If everything is installed correctly, you should now be a player in the supplied sample videos will be shown. Congratulations!

Start Server

During power of the computer is not of the Darwin server automatically, but servers and web interface must either in a terminal on the following two lines of command

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

Or by corresponding entries in the Start menu manually invoked. As servers and web interface can also start automatically, is contributing startup. In addition, there are init scripts for the Darwin server and the admin interface.

MPEG-4 video streaming

In order to use the server as streaming video-on-demand server videos must be in MPEG-4 format (file extension .mp4). Using the under video editing or DVD rippin tools. Videos in Quicktime format (. Mov) could also be used, but are probably less interesting.

However, before an MPEG-4 video with the Darwin server can be streamed must have known in advance hint tracks in the data stream added. They are required to fast forward and rewind the video. For inserting the hint tracks use Tool MP4Box in the package:
gpac (multiverse, [2])
The syntax for the command call for inserting the hint tracks reads:

MP4Box -hint dateiname.mp4

With the option-unhint can be inserted information may also be removed.

Alternatively, can the hint tracks with the tool mp4creator from the MPEG4IP project.

After inserting the hint tracks, the video file only in the video directory of the Darwin server will be copied or moved, immediately thereafter, the video for the call may be accessed via the web interface also includes a playlist can be created.

MP3 audio streaming

With the Darwin server can not only MPEG-4 videos, but also MP3 audio files stream. As you can create MP3 files, for example, in the contribution rip CDs. To existing MP3 files on stream, must first play lists, which, thanks to the existing web interfaces but made relatively quickly. (Guide in German, not included)

The MP3 player, the create play lists at the address:
http://<Server-IP>:8000/Mountpunkt


分享到:
评论

相关推荐

    darwin 服务器tcp demo

    在这个"darwin服务器tcp demo"中,我们将探讨如何在达尔文系统上实现基于TCP的服务器端应用程序。 首先,TCP是一种面向连接的协议,它在两台通信设备之间建立连接后才进行数据交换。TCP提供了诸如顺序传输、错误...

    darwin 服务器task demo

    "达尔文服务器task demo"可能是指一个示例项目,展示如何在Darwin服务器上管理和处理任务。这个项目可能是为了帮助开发者了解如何在Darwin环境下进行进程控制、信号处理以及任务运行。下面将详细讨论这些知识点: 1...

    easyDarwin 服务器部署

    - 最后,部署完成后,通过`ffmpeg`命令测试音视频流的加载与推送功能,确保easyDarwin服务器正常工作。 以上就是关于“easyDarwin 服务器部署”的详细知识点介绍,希望能帮助您顺利完成部署过程。

    Darwin服务器包括Linux下得2个补丁

    【Darwin服务器与Linux补丁详解】 Darwin Streaming Server(DSS)是由Apple Inc.开发的一款流媒体服务器,主要用于发布音频和视频内容。这个服务器基于开源的MPEG-DASH(Dynamic Adaptive Streaming over HTTP)...

    Darwin服务器源码和安装教程

    这是已经打好补丁的Darwin服务器源码包,里面还附有安装教程,源码在fedora16和ubuntu11.10编译安装通过,安装过程很简单,推荐下载。

    Centos搭建EasyDarwin流媒体服务器

    - **检查端口占用情况**:在启动EasyDarwin服务器之前,需确认8088端口未被其他服务占用。若需修改该端口,可在WinNTSupport目录下的easydarwin.xml文件中进行。 - **启动服务器**: - 调试模式:`./easydarwin –c...

    用Darwin开发RTSP级联服务器

    Darwin服务器的核心组件包括Device Manager和Streaming Server。Device Manager管理设备(如摄像头、音频输入等)的配置,而Streaming Server则负责处理实际的流媒体传输。在开发RTSP级联服务器时,我们需要关注这两...

    Darwin流媒体服务器文档

    了解RTSP的工作机制和交互流程,对于开发基于Darwin服务器的应用程序至关重要。 综上所述,这个压缩包提供的资料全面覆盖了Darwin流媒体服务器的基础知识、源码分析、实际应用和底层协议,对于从事流媒体开发的人员...

    Darwin流媒体服务器框架及源代码分析

    1. **服务器架构**:Darwin服务器基于事件驱动模型,通过多线程处理客户端请求,保证了高效和稳定。 2. **协议栈实现**:源代码中包含了对HTTP、RTSP和HLS等协议的解析和处理逻辑,这部分对于理解流媒体传输机制至...

    编译好的树莓派版的easydarwin

    运行软件的方法是执行命令“./easydarwin”,这将启动EasyDarwin服务器。如果想要以服务的形式启动,可以使用“./start.sh”脚本,这通常会使得EasyDarwin在后台运行,并随系统启动而自动启动。当需要停止服务时,只...

    利用EasyRTSTClient推海康视频流到EasyDarwin

    在本文中,我们将深入探讨如何利用EasyRTSPClient将海康的视频流推送到EasyDarwin服务器,并确保视频流能够通过VLC等媒体播放器进行播放。首先,我们需要理解两个核心概念:海康视频流和EasyDarwin。 **海康视频流*...

    基于easydarwin实现的rtsp拉流转发功能

    4. **运行测试**:编译成功后,启动EasyDarwin服务器,通过命令行参数或者配置文件指定需要拉取和转发的RTSP流URL。运行服务器并观察日志,确认拉流和转发过程是否正常。 5. **性能优化**:根据实际需求和服务器...

    EasyDarwin_Introduction easyDarwin使用说明

    - EasyProtocol:这是一个基于json协议的开源通信协议,适用于EasyDarwin服务器和平台。它设计合理、逻辑清晰、接口简单,易于使用和扩展。项目地址为***。 3. EasyDarwin技术特点 EasyDarwin平台拥有如下技术...

    FFmpeg和EasyDarWin资源

    然后,通过EasyDarWin服务器将处理后的流媒体数据分发到网络上,供客户端播放。这种组合在教育、娱乐、企业内部通信等领域有着广泛的应用。 FFmpeg的使用通常涉及到以下几个关键技术点: 1. 视频编码与解码:FFmpeg...

    使用FFMPEG+easydarwin把本地摄像头进行rtsp推流指令

    在实际应用中,我们可以通过FFMPEG将本地摄像头捕捉到的视频流推送到EasyDarwin服务器上,从而实现远程观看和监控的目的。具体步骤如下: ##### 3.1 查看本地摄像头设备 ```bash ffmpeg -list_devices true -f ...

    EasyDarwin-linux-8.1.0-1901141151.tar.gz.zip

    这个文件包含了完整的EasyDarwin服务器软件及其相关的配置文件。同时,压缩包中还附带了一个名为“说明.txt”的文档,里面详细记载了安装和配置过程中的关键步骤,建议在安装过程中随时查阅。 二、解压与安装 1. ...

    基于easydarwin实现rtsp拉流新

    1. **客户端初始化**:客户端通过RTSP协议向EasyDarwin服务器发送“DESCRIBE”请求,获取媒体描述信息(SDP)。 2. **服务器响应**:EasyDarwin收到请求后,返回SDP,包含媒体的编码格式、分辨率等信息。 3. **...

    rtsp 转发 darwin

    Darwin服务器可以作为RTSP流的源头,也可以作为接收者,实现RTSP流的转发。Darwin Server提供了一种高效、可扩展的方式,用于构建实时音视频流媒体系统。 在Darwin中,RTSP转发通常指的是Darwin Server接收来自一个...

    MPEG4IP_Guide.rar_MPEG_MPEG4IP_Guide_darwin_guide_mpeg4ip

    《MPEG4IP指南》是针对MPEG4ip这一开源项目的详尽官方文档,它包含了对Darwin服务器的使用说明,对于理解并操作MPEG4ip有着至关重要的作用。MPEG4ip是一个强大的多媒体处理库,它支持MPEG-4标准,能够用于开发音视频...

    darwin_server.pdf

    在Darwin服务器中,视频文件被线索化处理,即将文件内容添加到QuickTime容器中,以便在流媒体服务器中进行处理。 在文件结构方面,Darwin服务器内部使用QT原子结构来存储视频文件,相应的库是QTFilelib。要对Darwin...

Global site tag (gtag.js) - Google Analytics