Ubuntu 12.04+darwinstreamingsrvr6.0.3 set up streaming media server

Source: Internet
Author: User
Tags gz file posix

1. Install Ubuntu 12.04 operating system, many tutorials online. 、

2. Open terminal, download Darwin source code darwinstreamingsrvr6.0.3-source.tar, Patch patch Dss-6.0.3.patch (make sure Ubuntu system is able to surf the internet)

(1) Download Darwin source code Darwinstreamingsrvr6.0.3-source.tar

$wget Http://dss.macosforge.org/downloads/DarwinStreamingSrvr6.0.3-Source.tar

(2) Download patch patch Dss-6.0.3.patch

$wget Http://www.abrahamsson.com/dss-6.0.3.patch

3. Decompression Darwinstreamingsrvr6.0.3-source.tar

$ tar xvf Darwinstreamingsrvr6.0.3-source.tar

4. Patching Patch Dss-6.0.3.patch

$ patch-p0 < Dss-6.0.3.patch

May be error: The program ' Patch ' was currently not installed. You can install it by typing:

sudo apt-get install patch

Follow the prompts to install patches first:

$ sudo apt-get install patch If such an error occurs (Reading package lists ... Done

Building Dependency Tree
Reading state information ... Done
E:unable to locate package patch)

Execute $sudo apt-get update first and then sudo apt-get install patch

And then in the patch

$ patch-p0 < Dss-6.0.3.patch

5. Installing the GCC compiler

$ sudo apt-get install patch make GCC g++

6. Enter the Darwinstreamingsrvr6.0.3-source directory and compile

$ cd Darwinstreamingsrvr6.0.3-source (the following operations are in this directory)

$./buildit

7 respectively into the Qtfileinfo, Qtfiletest, Qtsamplelister, qttrackinfo four modules directory, Modify its makefile.posix to add the-lpthread parameter after Libs. Or add another line libs+=-lpthread, this article is directly appended to the parameter tail.

$ VI Qtfiletools/qtfileinfo.tproj/makefile.posix

$ VI Qtfiletools/qtfiletest.tproj/makefile.posix

$ VI Qtfiletools/qtsamplelister.tproj/makefile.posix

$ VI Qtfiletools/qttrackinfo.tproj/makefile.posix

8 Modify the Makefile.posix in the Darwinstreamingsrvr6.0.3-source directory, add-LDL after libs, or add another line libs+=-LDL, this article is added directly at the tail. Such as:

9 Generating a DSS installation package

Execute./buildtarball, after success, generate the darwinstreamingsrvr-linux.tar.gz file.

10 Add QTSS user information, if not add after install will report error prompt

by cat/etc/passwd | grep QTSS to see if there are QTSS users

by Cat/etc/group | grep QTSS to see if a QTSS group exists

Does not exist, it is created separately.

QTSS groups and users in this article do not exist, they need to be created as follows:

$ Addgroup-system QTSS

$ adduser-system-no-create-home-ingroup QTSS QTSS

11 Extracting the generated DSS installation package

Unzip the darwinstreamingsrvr-linux.tar.gz file and enter

$tar XVF darwinstreamingsrvr-linux.tar.gz

$CD darwinstreamingsrvr-linux/

12 Execute./install, you will be prompted to enter a user name and password.

To this installation is complete.

13 Verifying that the installation is successful

Performing PS aux | grep Darwin command to view the process that was started.

Indicates that the installation was successful.

14, if the server is closed, want to reopen, you can manually start

Start Darwin streaming Server

Sudo/usr/local/sbin/darwinstreamingserver

Start the Web management interface (TCP port 1220)

  sudo/usr/local/sbin/streamingadminserver.pl

PS. The above two items will start automatically when they are first installed, and do not need to be executed manually.

Tip: How to automatically start a streaming media server:

It is very simple to run the streaming server sequence automatically, and add the above command to the/etc/rc.d/rc.local script.

Finally, enter HTTP.//your ip:1220/to access Web management at the server

The default media files are stored in the/usr/local/movies

You can modify this path in the Web admin panel.

15. Access to your own streaming media services

You can use the VLC media player software to enter

rtsp://your ip/sample_100kbit.mp4.

To play the default test video. If you have enough speed to force the effect is good:)

Reference article: http://blog.csdn.net/zhangjs0322/article/details/21023101, http://www.cnblogs.com/xiaofengkang/p/3730309. HTML, http://wangheng.org/install-darwin-streaming-server-6-0-3-on-linux.html

Ubuntu 12.04+darwinstreamingsrvr6.0.3 set up streaming media server

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.