- 浏览: 231339 次
- 性别:
- 来自: 南京
最新评论
-
baby8117628:
vc下mp3 IDv1和IDV2的读取 -
gezexu:
你好,我按照你的步骤一步步进行但是安装libvorbis的时候 ...
linux如何搭建强大的FFMPEG环境 -
ini_always:
帅哥,转载也把格式做好点,另外出处也要注明一下吧。。。
MP3文件格式解析
最近开始研究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 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
发表评论
-
vc下mp3 IDv1和IDV2的读取
2010-01-25 10:52 2378/*这是修改后的代码,VC下读ID3v2 & ID3v ... -
使用ffmpeg为库编写的小型多媒体播放器源代码
2010-01-21 16:52 4332今天突发奇想,就在以前音频播放器(详细情况请看这里——http ... -
ffmpeg提取音频播放器总结
2010-01-21 16:31 5962ffmpeg提取音频播放器总 ... -
ffmpeg开发指南
2010-01-20 17:26 3370ffmpeg 中的Libavformat 和 li ... -
linux下安装ffmpeg过程
2010-01-18 15:48 1882最近互联网视频共享的 ... -
【PNG overview】PNG专题!
2010-01-18 13:39 3345【PNG overview】PNG专题! 作者 鼯鼠 ... -
Big Endian 和 Little Endian
2010-01-18 13:29 1542Peter Lee 2008-04-20 一、字节序 ... -
MediaInfo开源工程
2010-01-18 13:22 2353一、简介 MediaInfo 用来 ... -
MP3文件格式解析
2010-01-18 10:58 3540MP3文件格式解析 Peter Lee 2008-06-0 ... -
LAME-mp3
2010-01-18 10:40 2009LAME - 压缩 MP3 的最佳利 ... -
FLV文件格式分析(图示讲解的清楚)
2010-01-14 15:56 5090FLV是一个二进制文件, ... -
我对FLV 文件格式的理解
2010-01-14 15:52 3345我对FLV 文件格式的理解 ----------------- ... -
常用的音频文件介绍
2010-01-13 10:56 1364MP3全称是动态影像专家压缩标准音频层面3(Moving Pi ... -
RTSP客户端的JAVA实现
2010-01-12 16:12 8233参考资料 1. 《RTSP简单命 ... -
国外嵌入式、音视频处理等重要网站
2010-01-08 10:07 2017嵌入式方面: 1.关于嵌入式开发的站点,提供非常多关于嵌入 ... -
RTSP点播——消息流程实例
2010-01-08 09:44 5095RTSP点播消息流程实例(客户端:VLC, RTSP服务器:L ... -
live555代码解读之三:SETUP和PLAY请求消息处理过程
2010-01-08 09:43 3441SETUP请求消息处理过程 ... -
live555代码解读之二:DESCRIBE请求消息处理过程
2010-01-08 09:42 3775ve555代码解读之二:DESCRIBE请求消息处理过程 ... -
live555代码解读之一:RTSP连接的建立过程
2010-01-08 09:42 4430TSPServer类用于构建一个RTSP服务器,该类同时在其内 ... -
live555源代码概述
2010-01-08 09:41 3861述 liveMedia项目(http://www ...
相关推荐
darwin tcp demo
darwin 服务器task demo
这是已经打好补丁的Darwin服务器源码包,里面还附有安装教程,源码在fedora16和ubuntu11.10编译安装通过,安装过程很简单,推荐下载。
easyDarwin服务器部署 ,demo 直接实现效果。使用ffmpeg加载本地文件或者摄像机推流到EasyDarwin实现直播,ubuntu centos部署
Darwin Streaming server 6.0.3 dss-6.0.3.patch dss-hh-20080728-1.patch
本文介绍Centos搭建EasyDarwin流媒体服务器的基本流程,给初学者做一个参考,少走一些没必要的弯路。
video & audio source,very easy to use. 精炼、高效、稳定的RTSP服务器组件,调用简单灵活,轻松嵌入部署到IPCamera(ARM型、Android型)中,也可用于PC桌面直播
Apple公司Darwin流式服务器源代码分析 转的文章,仅供学习使用
实现把海康的视频流推送到EasyDarwin服务器中,并可以通过VLC播放。 提醒:你得很搭好EasyDarwin服务器
详细的描述Darwin流式服务器的架构及源代码分析
用live555的DarwinInjector作为本地视频的源,推送到Darwin服务器进行转发和分发,本程序采用的是读取本地264文件推送到Darwin的,附件中有Darwin服务器程序
1、通过Darwin 开发的 RTSP 服务器 2、测试已经通过 3、使用很简单,简单配置一下 Device.xml 和 streamingserver.xml 即可
用live555的DarwinInjector作为本地视频的源,推送到Darwin服务器进行转发和分发,本程序采用的是读取本地264文件推送到Darwin的,附件中有Darwin服务器程序
darwin服务器LINUX下面3.0版本。
一套直播系统。包含EasyDarwin流媒体服务器和的拉流端客户端和推流端的客户端。
此为Darwin流媒体服务器工具,可在Linux64位系统下安装使用,支持RTP流转发。
流媒体服务器架设论文.doc QTSS.chm DSS优化与裁剪.txt darwin分析.doc Apple公司Darwin流式服务器源代码分析.doc
EasyDarwin是由国内开源流媒体团队开发和维护的一款开源流媒体平台框架,从2012年12月创建并发展至今,从原有的单服务的流媒体服务器形式,扩展成现在的云平台架构的开源项目,更好地帮助广大流媒体开发者和创业型...
描述的是为开放源码的Darwin流媒体服务器创建QuickTime流媒体服务器(QTSS)模块所需要的编程接口,版本为4.0。同时对Darwin源代码进行了分析。
针对当前多平台多用户播放手机客户端直播、录像视频的需求,提出了一种手机移动客户端主动推送视频流到Darwin服务器直播、转播及录制供多平台多用户播放的解决方案。利用开源的流媒体服务器Darwin结合开源库mp4v2...