DSS Build Mobile Media server

Source: Internet
Author: User
Tags perl interpreter

Recently studied the mobile phone streaming server building, the purpose is to achieve through 3G mobile phone watching online video.

At the beginning of the study of the Tudou mobile version, but it does not implement online playback, because the video address is the HTTP protocol. See a lot of articles, finally learned to use RTSP, MMS this kind.

RTSP has an open source project from Apple: Darwin streaming Server (DSS)

DSS is a cross-platform software that can be deployed on Linux, Mac OSX, or Windows.

I.. DSS Windows Installation Tutorial
    • From: Http://dss.macosforge.org/downloads/DarwinStreamingSrvr5.5.5-Windows.exe (only 5.5) download DSS for Windows here
    • After downloading the extract, you will see a install.bat file, directly run it will be installed C:\Program Files\Darwin Streaming Server and will also be in the system service add a number Darwin Streaming Server of service programs, this is the DSS server.
    • Next you will install the PERL interpreter, which can be downloaded from http://www.perl.org/get.html and installed
    • After you've installed Perl, you can use Perl **.pl to run the program under CMD.
    • Next, under CMD, do the following:
12345       
 # follow the prompts to create WebAdmin's account and password c:\program files\darwin streaming server> Perl winpasswdassistant.pl# run WebAdmin manager c: \program files\darwin streaming server> Perl Streamingadminserver.pl# can now open http://127.0.0.1:1220/to administer the DSS server       
    • In the DSS WebAdmin, modify Media directory, General Settings, to your media directory, or you can use the default to put your own video files C:\Program Files\Darwin Streaming Server\Movies inside.
    • Now you can use QuickTime or VLC to open rtsp://127.0.0.1:554/sample_100kbit.mp4 to test the video,(note sample_100kbit.mp4 is a DSS 5.5.5 Bring your own video)
Second, how to convert your own video into streaming media format?

The study of this thing cost me a great effort, at first did not know the video and specifically for streaming media, think as long as the video into the appropriate format with MediaCoder, such as: MPEG4 + AAC + MP4/MPEG4 + AAC + 3GP can be put, repeatedly put on the server to test, V Both LC and QuickTime cannot be opened. Then use the tool to open the DSS with a few examples of video to see their format, repeatedly converted to try different video and audio coding and shell, or not ... I'm so depressed!

In the DSS mailing list to find the relevant article, found that it seems to use a special tool on the video hint , and then can be used in RTSP, said can be converted with QuickTime Pro or VLC, I used VLC to try, the File menu called "flow (s) "function, but tried or not, did not see the file has changed.

So then along the Hint keyword in Google to find articles, found the Nokia forum inside, see this article: http://discussion.forum.nokia.com/forum/showthread.php?t=125540 You can use Mp4box to hint the video.

So I downloaded to the http://www.videohelp.com/tools/mp4box here Mp4box (do not download the GUI, directly with the command line operation, just one name)

Download to the extract will have a call mp4box.exe , use it to run under the command line

1
C:\Program Files\Darwin Streaming Server\Movies> mp4box mymovie.mp4 -hint

Results appear:

1234  
Hinting file with Path-MTU 1450 BytesHinting track ID 201 - Type “mp4v:mp4v” (MP4V-ES) - BW 33 kbpsHinting track ID 101 - Type “mp4a:mp4a” (mpeg4-generic) - BW 64 kbpsSaving mymovie.mp4: 0.500 secs Interleaving

Streaming video will be converted, and now the file size will be changed, a little bigger.

Then, use VLC or QuickTime to open the Rtsp://127.0.0.1:554/mymovie.mp4 and try to play it! If you have a 3G mobile phone, you can open this address directly with your phone and try it.

Iii. Additional Resources
    • Apple ' s Darwin streaming Server on Centos 5.2 (How to install DSS under CentOS 5.2)

http://huacnlee.com/blog/deploy-mobile-streaming-server-by-dss/

DSS Build Mobile Media server

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.