Successful versions: ubuntu9.10/8.04
Indicate the source and author's contact information during reprinting.
ArticleSource: http://blog.csdn.com/keensword007
Contact information: Qin Jian <keensword007 at Sina dot com>
Currently, Microsoft Windows Media is the mainstream Streaming Media Server.
Server, RealNetworks helixserver, and Apple's Darwin Streaming Server. Microsoft's Windows
Media Server can only be used in Windows 2003 and windows
Server. RealNetworks helixserver is a cross-platform software with powerful functions, but it is not a free software and can only be cut off.
. Apple's Darwin
Streamingserver is a cross-platform open source Streaming Media Server software developed by Apple. Its quality is free of charge. So we chose to set up a Streaming Media Server.
Darwinstreaming server.
Darwin Streaming
The server uses standard real-time transmission protocol/Real-Time Streaming Media Protocol (RTP/RTSP) to transmit media over the Internet in real time. Darwin Streaming Server
It also provides inherent support for transferring H.264, MPEG-4, and 3GPP files-so you can
Execute your content on any standard-compatible media player on Linux and Windows, including various compatible devices such as mobile phones and receiving boxes. In addition, it allows you to use
Icecast is compatible with HTTP to transmit standard MP3 files to MP3 clients.
I. Software Installation
First download http://dss.macosforge.org/Source code,
The latest version is 6.0.3, but I chose version 5.5.5 because it provides installation scripts for Linux. Downloaded
After the DarwinStreamingSrvr5.5.5-Linux.tar.gz file, decompress and run the following command to install:
~ /Tmp/darwinstreamingsrvrlinux-Linux $ chmod + x install
~ /Tmp/darwinstreamingsrvrlinux-Linux $ sudo./install
[Sudo] password for keensword007:
Installing Darwin Streaming Server
Checking for and killing currently running Darwin Streaming Server
Warning: Bad PS syntax, perhaps a bogu '-'? See http://procps.sf.net/faq.html
Warning: Bad PS syntax, perhaps a bogu '-'? See http://procps.sf.net/faq.html
Removing previous versions of Darwin Streaming Server
Backing up previous config files
Inserting path to Perl into scripts ..
Creating unprivileged user to run the server = "qtss ".
Copying darwinstreamingserver to/usr/local/sbin/darwinstreamingserver
Copying playlistbroadcaster to/usr/local/bin/playlistbroadcaster
Copying mp3broadcaster to/usr/local/bin/mp3broadcaster
Copying qtpasswd to/usr/local/bin/qtpasswd
Creating/usr/local/sbin/streamingservermodules directory
Copying createuserstreamingdir to/usr/local/bin/createuserstreamingdir
Creating/etc/streaming directory
Generating a new prefs file at/etc/streaming/streamingserver. xml
Info: module loaded... qtssrefmoviemodule [dynamic]
Info: module loaded... qtsshomedirectorymodule [dynamic]
Info: module loaded... qtssfilemodule [Static]
Info: module loaded... qtssreflectormodule [Static]
Info: module loaded... qtssrelaymodule [Static]
Info: module loaded... qtssaccesslogmodule [Static]
Info: module loaded... qtssflowcontrolmodule [Static]
Info: module loaded... qtssposixfilesysmodule [Static]
Info: module loaded... qtssadminmodule [Static]
Info: module loaded... qtssmp3streamingmodule [Static]
Info: module loaded... qtssaccessmodule [Static]
Warning: No users file found at/etc/streaming/qtusers.
Warning: No groups file found at/etc/streaming/qtgroups.
Chown: invalid user: 'qtss'
Copying relayconfig. XML-sample to/etc/streaming/relayconfig. XML-Sample
Copying qtusers to/etc/streaming/qtusers
Chown: invalid user: 'qtss'
Copying qtgroups to/etc/streaming/qtgroups
Chown: invalid user: 'qtss'
Copying readme.txt to/var/streaming/readme.txt
Copying 3rdpartyacknowledgements. rtf to/var/streaming/3rdpartyacknowledgements. rtf
Creating/usr/local/movies directory
Creating/var/streaming/playlists directory
Copying sample_100kbit.mov into/usr/local/movies/sample_100kbit.mov
Copying sample_300kbit.mov into/usr/local/movies/sample_300kbit.mov
Copying sample_100kbit.mp4 into/usr/local/movies/sample_100kbit.mp4
Copying sample_300kbit.mp4 into/usr/local/movies/sample_300kbit.mp4
Copying sample.mp3 into/usr/local/movies/samplees
Copying sample_50kbit.3gp into/usr/local/movies/sample_50kbit.3gp
Copying sample_h1__100kbit.mp4 into/usr/local/movies/sample_h1__100kbit.mp4
Copying sample_h1__300kbit.mp4 into/usr/local/movies/sample_h1__300kbit.mp4
Copying sample_h1__1mbit.mp4 into/usr/local/movies/sample_h1__1mbit.mp4
Copying streamingloadtool to/usr/local/bin/streamingloadtool
Copying streamingloadtool. conf to/etc/streaming/streamingloadtool. conf
Copying streamingadminserver. pl into/usr/local/sbin/streamingadminserver. pl
Copying admin HTML to/var/streaming/adminhtml directory
Chown: invalid user: 'qtss'
Chown: invalid user: 'qtss'
Chown: invalid user: 'qtss'
Launching streamingadminserver. pl
Cannot switch to group qtss
Installation Complete
Darwin Streaming Server SETUP
Inorder to administer the Darwin
Streaming Server you must create anadministrator user [NOTE:
Administrator user name cannot containspaces, or single or double quote
Characters, and cannot be more than255 characters long].
Please enter a new administrator user name: keensword007
Youmust also enter a password
The administrator user [Note: theadministrator password cannot contain
Spaces, or quotes, either singleor double, and cannot be more than 80
Characters long].
Please enter a new Administrator password:
Re-enter the new Administrator password:
Adding username keensword007
Chown: invalid user: 'qtss'
Setup complete!
From the prompt information, it should be caused by the failure of the qtss user. After checking the install script, we found that the script for creating a user is as follows:
If [$ install_ OS = "Linux"]; then
/Usr/sbin/useradd-M qtss>/dev/null 2> & 1
Else
/Usr/sbin/useradd qtss>/dev/null 2> & 1
Fi
However, useradd does not have the-M command line parameter. It should be-M. Modify-m to-M, and then execute the install script. The installation is successful. At this time, the service has been started. You can use the following command to determine whether the service has been started:
~ /Tmp/darwinstreamingsrvrlinux-Linux $ PS aux | grep Darwin
Root 10963 0.0 0.0 4368 456? SS/usr/local/sbin/darwinstreamingserver
Qtss 10964 0.0 0.0 38032? SL/usr/local/sbin/darwinstreamingserver
1000 11003 0.0 0.0 3004 760 pts/1 R + grep Darwin
If you want the server to automatically run the Streaming Media Server after startup, enter the following command:
~ /Tmp/darwinstreamingsrvrlinux-Linux $ CD/etc/rc3.d
/Etc/rc3.d $ sudo ln-S/usr/local/sbin/streamingadminserver. pl s20streamingserver
. To manually start the service, run streamingadminserver. plProgram.
Ii. Configuration
The Darwin Streaming Server adopts the Web management mode. You can enter http: // 127.0.0.1: 1220 in your browser. Enter the user name and password set when installing the Streaming Media Server.
The setting wizard appears when you log on for the first time. The first is an MP3 broadcast password Setting Dialog Box. In its "new password" and "re-enter new password", enter your desired password. Click "Next" to continue.
To ensure data transmission security, you can select "Secure Administration (SSL)" here, provided that you have an available SSL certificate. You can choose not to select, as shown in. Click "Next" to continue.
Next, set the main directory for storing media files. The default directory is ". Remember to add the media files to the directory after adding them to the server. After setting, click "Next" to continue.
Finally, set the default transmission port. If "streaming on
Port80 ", the access to this server can break through the firewall, but if you have an Apache
And other services that occupy port 80. We recommend that you do not set this port. If you have no special requirements, use the default configuration, as shown in figure 9. Click "finish.
Since then, the settings of the Streaming Media Server have come to an end. If you want to make further settings, you can click the corresponding options on the left side of the Management page to set the settings. You can also modify the preceding settings.
Iii. Online playback
After the Streaming Media Server is deployed, we can play it online using our favorite player. For example, open movie player on the local machine and enter:
RTSP: // 127.0.0.1/sample_100kbit.mp4
You can see a quick time Demo Video.
Successful versions: ubuntu9.10/8.04
Indicate the source and author's contact information during reprinting.
Article Source: http://blog.csdn.com/keensword007
Contact information: Qin Jian <keensword007 at Sina dot com>
Currently, Microsoft Windows Media is the mainstream Streaming Media Server.
Server, RealNetworks helixserver, and Apple's Darwin Streaming Server. Microsoft's Windows
Media Server can only be used in Windows 2003 and windows
Server. RealNetworks helixserver is a cross-platform software with powerful functions, but it is not a free software and can only be cut off.
. Apple's Darwin
Streamingserver is a cross-platform open source Streaming Media Server software developed by Apple. Its quality is free of charge. So we chose to set up a Streaming Media Server.
Darwinstreaming server.
Darwin Streaming
The server uses standard real-time transmission protocol/Real-Time Streaming Media Protocol (RTP/RTSP) to transmit media over the Internet in real time. Darwin Streaming Server
It also provides inherent support for transferring H.264, MPEG-4, and 3GPP files-so you can
Execute your content on any standard-compatible media player on Linux and Windows, including various compatible devices such as mobile phones and receiving boxes. In addition, it allows you to use
Icecast is compatible with HTTP to transmit standard MP3 files to MP3 clients.
I. Software Installation
First download the source from http://dss.macosforge.org/Code,
The latest version is 6.0.3, but I chose version 5.5.5 because it provides installation scripts for Linux. Downloaded
After the DarwinStreamingSrvr5.5.5-Linux.tar.gz file, decompress and run the following command to install:
~ /Tmp/darwinstreamingsrvrlinux-Linux $ chmod + x install
~ /Tmp/darwinstreamingsrvrlinux-Linux $ sudo./install
[Sudo] password for keensword007:
Installing Darwin Streaming Server
Checking for and killing currently running Darwin Streaming Server
Warning: Bad PS syntax, perhaps a bogu '-'? See http://procps.sf.net/faq.html
Warning: Bad PS syntax, perhaps a bogu '-'? See http://procps.sf.net/faq.html
Removing previous versions of Darwin Streaming Server
Backing up previous config files
Inserting path to Perl into scripts ..
Creating unprivileged user to run the server = "qtss ".
Copying darwinstreamingserver to/usr/local/sbin/darwinstreamingserver
Copying playlistbroadcaster to/usr/local/bin/playlistbroadcaster
Copying mp3broadcaster to/usr/local/bin/mp3broadcaster
Copying qtpasswd to/usr/local/bin/qtpasswd
Creating/usr/local/sbin/streamingservermodules directory
Copying createuserstreamingdir to/usr/local/bin/createuserstreamingdir
Creating/etc/streaming directory
Generating a new prefs file at/etc/streaming/streamingserver. xml
Info: module loaded... qtssrefmoviemodule [dynamic]
Info: module loaded... qtsshomedirectorymodule [dynamic]
Info: module loaded... qtssfilemodule [Static]
Info: module loaded... qtssreflectormodule [Static]
Info: module loaded... qtssrelaymodule [Static]
Info: module loaded... qtssaccesslogmodule [Static]
Info: module loaded... qtssflowcontrolmodule [Static]
Info: module loaded... qtssposixfilesysmodule [Static]
Info: module loaded... qtssadminmodule [Static]
Info: module loaded... qtssmp3streamingmodule [Static]
Info: module loaded... qtssaccessmodule [Static]
Warning: No users file found at/etc/streaming/qtusers.
Warning: No groups file found at/etc/streaming/qtgroups.
Chown: invalid user: 'qtss'
Copying relayconfig. XML-sample to/etc/streaming/relayconfig. XML-Sample
Copying qtusers to/etc/streaming/qtusers
Chown: invalid user: 'qtss'
Copying qtgroups to/etc/streaming/qtgroups
Chown: invalid user: 'qtss'
Copying readme.txt to/var/streaming/readme.txt
Copying 3rdpartyacknowledgements. rtf to/var/streaming/3rdpartyacknowledgements. rtf
Creating/usr/local/movies directory
Creating/var/streaming/playlists directory
Copying sample_100kbit.mov into/usr/local/movies/sample_100kbit.mov
Copying sample_300kbit.mov into/usr/local/movies/sample_300kbit.mov
Copying sample_100kbit.mp4 into/usr/local/movies/sample_100kbit.mp4
Copying sample_300kbit.mp4 into/usr/local/movies/sample_300kbit.mp4
Copying sample.mp3 into/usr/local/movies/samplees
Copying sample_50kbit.3gp into/usr/local/movies/sample_50kbit.3gp
Copying sample_h1__100kbit.mp4 into/usr/local/movies/sample_h1__100kbit.mp4
Copying sample_h1__300kbit.mp4 into/usr/local/movies/sample_h1__300kbit.mp4
Copying sample_h1__1mbit.mp4 into/usr/local/movies/sample_h1__1mbit.mp4
Copying streamingloadtool to/usr/local/bin/streamingloadtool
Copying streamingloadtool. conf to/etc/streaming/streamingloadtool. conf
Copying streamingadminserver. pl into/usr/local/sbin/streamingadminserver. pl
Copying admin HTML to/var/streaming/adminhtml directory
Chown: invalid user: 'qtss'
Chown: invalid user: 'qtss'
Chown: invalid user: 'qtss'
Launching streamingadminserver. pl
Cannot switch to group qtss
Installation Complete
Darwin Streaming Server SETUP
Inorder to administer the Darwin
Streaming Server you must create anadministrator user [NOTE:
Administrator user name cannot containspaces, or single or double quote
Characters, and cannot be more than255 characters long].
Please enter a new administrator user name: keensword007
Youmust also enter a password
The administrator user [Note: theadministrator password cannot contain
Spaces, or quotes, either singleor double, and cannot be more than 80
Characters long].
Please enter a new Administrator password:
Re-enter the new Administrator password:
Adding username keensword007
Chown: invalid user: 'qtss'
Setup complete!
From the prompt information, it should be caused by the failure of the qtss user. After checking the install script, we found that the script for creating a user is as follows:
If [$ install_ OS = "Linux"]; then
/Usr/sbin/useradd-M qtss>/dev/null 2> & 1
Else
/Usr/sbin/useradd qtss>/dev/null 2> & 1
Fi
However, useradd does not have the-M command line parameter. It should be-M. Modify-m to-M, and then execute the install script. The installation is successful. At this time, the service has been started. You can use the following command to determine whether the service has been started:
~ /Tmp/darwinstreamingsrvrlinux-Linux $ PS aux | grep Darwin
Root 10963 0.0 0.0 4368 456? SS/usr/local/sbin/darwinstreamingserver
Qtss 10964 0.0 0.0 38032? SL/usr/local/sbin/darwinstreamingserver
1000 11003 0.0 0.0 3004 760 pts/1 R + grep Darwin
If you want the server to automatically run the Streaming Media Server after startup, enter the following command:
~ /Tmp/darwinstreamingsrvrlinux-Linux $ CD/etc/rc3.d
/Etc/rc3.d $ sudo ln-S/usr/local/sbin/streamingadminserver. pl s20streamingserver
. To manually start the service, run the streamingadminserver. pl program.
Ii. Configuration
The Darwin Streaming Server adopts the Web management mode. You can enter http: // 127.0.0.1: 1220 in your browser. Enter the user name and password set when installing the Streaming Media Server.
The setting wizard appears when you log on for the first time. The first is an MP3 broadcast password Setting Dialog Box. In its "new password" and "re-enter new password", enter your desired password. Click "Next" to continue.
To ensure data transmission security, you can select "Secure Administration (SSL)" here, provided that you have an available SSL certificate. You can choose not to select, as shown in. Click "Next" to continue.
Next, set the main directory for storing media files. The default directory is ". Remember to add the media files to the directory after adding them to the server. After setting, click "Next" to continue.
Finally, set the default transmission port. If "streaming on
Port80 ", the access to this server can break through the firewall, but if you have an Apache
And other services that occupy port 80. We recommend that you do not set this port. If you have no special requirements, use the default configuration, as shown in figure 9. Click "finish.
Since then, the settings of the Streaming Media Server have come to an end. If you want to make further settings, you can click the corresponding options on the left side of the Management page to set the settings. You can also modify the preceding settings.
Iii. Online playback
After the Streaming Media Server is deployed, we can play it online using our favorite player. For example, open movie player on the local machine and enter:
RTSP: // 127.0.0.1/sample_100kbit.mp4
You can see a quick time Demo Video.