Streaming Server

Install Streaming Media Server on Windows Server2003 Enterprise Edition.

1. หลังจากล็อกออนเข้าสู่วินโดวส์ไปที่ Start | Programs | Administrative Tools | Manage Your Server แล้วคลิกที่ Add or remove a role
Image

2. คลิก Next 

Image

3.  คลิก Continue เพิ่อใช้ตัวช่วยติดตั้ง

Image

4. เลือก Streaming Media Server แล้วคลิกปุ่ม Next

Image

Image 

5. คลิกปุ่ม Finish เพิ่อเสร็จการติดตั้ง 

Image

6. เปิดวิดโดวส์ Manage Your Server ขึ้นมาเพื่อทำการคอนฟิกค่าต่างๆ

Image

7.  คลิกเลือก  Manage this Streamin Media Server

Image

Image 

8.  ที่ Source Tab คลิก Change | Browse… | Select File

Image

Image

9.  ที่ Advertising Tab คลิก Change | Brows… | Select File

Image

10. ที่ Source Tab คลิกสัญญาลักษณ์ปุ่ม Play เพื่อทดสอบ

Image

 

การสร้าง Media Services  Your Style

1. คลิกขวาที่ Publishing Points | Add Publishing Point (Wizard) | Next  แลัวตั้งชื่อ Media Service ของคุณ ในที่นี้ผมตั้งเป็น SAK.MP3ONLINE

Image 

Image 

2.  เลือก Encoder (a live stream) แล้วคลิกปุ่ม Next

Image

3.  เลือก Boadcast… แล้วคลิกปุ่ม Next

Image

4. เลือก Unicast… แล้วคลิกปุ่ม Next

Image

5. ใส่ Part Encoder URL ที่นี้ผมตั้งเป็น http://encoder_sak.mp3 แล้วคลิกปุ่ม Next

Image

6. คลิกเลือก Yes, enable… และคลิกปุ่ม Next | Finish เป็นอันเสร็จครับ.

Image

Image

Image

Image 

7.  เปิดวินโดวส์ Internet Explorer ขึ้นมา ที่แท็บ address bar พิมพ์ mms://NS3/SAK.MP3)NLINE จากนั้นกด Enter.

Image

Nete : อย่าลืมสั่ง Start Media Service ด้วยนะครับ. 

เขียนโดย Mr. Sontaya Photibut  
http://www.susethailand.com/

2 comments to Streaming Server

  • สรวีย์ บรรลือทรัพย์

    ——————————————————————————–
    http://www.thaibsd.com/webboard/show.php?Category=thaibsd&No=1555

    การติดตั้ง Helix Server ( real server ) บน FreeBSD 4.9 เพื่อทำ VDO Streaming Server

    สภาพแวดล้อม ผมติดตั้ง FreeBSD 4.9 บน VMware Workstation 5
    ไฟล์ที่ต้องใช้งาน สามารถ ดาวส์โหลดได้ที่
    1.http://gsp.8800.org/soft/Helix.Universal.Internet.Server.v9.0.2.794.FreeBSD-CCF.tar.gz
    ขยายออกมา จะได้ไฟล์
    - RNKey-Helix_Server-90.lic - เป็นไฟล์ License Key
    - rmserver - เป็นไฟล์ config
    - rs901-freebsd4-ia32.bin - เป็นไฟล์ ติดตั้ง
    ใช้ติดตั้งบน Server
    2.http://gsp.8800.org/soft/RealNetworks.Helix.Producer.Plus.v9.0.1.Win32-ROR.rar
    ใช้ติดตั้ง บน เครื่องลูกข่าย เพื่อ encode ไฟล์ ไปยัง server

    การติดตั้ง
    #—#—>
    $ su
    Password:
    #—#—>หลังจาก upload ไฟล์ไปยัง server แล้วก็ เข้าไปยัง โฟลเดอร์ ที่เก็บ ทั้งสามไฟล์ไว้
    www# cd /tmp
    www# ls
    .X11-unix RNKey-Helix_Server-90.lic rmserver rs901-freebsd4-ia32.bin
    #—#—> ก่อนการติดตั้ง จะต้อง Execute ก่อน ด้วยคำสั่ง
    www# chmod +x *
    #—#—> ตรวจสอบดู ด้วยคำสั่ง
    www# ll
    total 16186
    drwxrwxrwt 2 root wheel 512 Jun 4 17:34 .X11-unix
    -rwxr-xr-x 1 root wheel 23997 Jun 4 17:37 RNKey-Helix_Server-90.lic
    -rwxr-xr-x 1 root wheel 2477796 Jun 4 17:37 rmserver
    -rwxr-xr-x 1 root wheel 14018967 Jun 4 17:37 rs901-freebsd4-ia32.bin
    #—#—> เริ่มติดตั้ง และทำตามขั้นตอน
    www# ./rs901-freebsd4-ia32.bin
    Extracting files for RealNetworks installation……………………

    Welcome to the Helix Server 9.0 (9.0.2.794) Setup for UNIX
    Setup will help you get Helix Server running on your computer.
    Press [Enter] to continue…

    If a Helix Server license key file has been sent to you,
    please enter its directory path below. If you have not
    received a Helix Server license key file, then this server
    WILL NOT OPERATE until a license key file is placed in
    the server’s License directory. Please obtain a free
    Basic Helix Server license or purchase a commercial license
    from our website at http://www.real.com/. If you need
    further assistance, please visit our on-line support area
    at http://service.real.com/.
    #—#—> พิมพ์ โฟลเดอร์ที่เก็บ License Key และ ชื่อไฟล์ License Key
    License Key File: []: /tmp/RNKey-Helix_Server-90.lic

    Installation and use of Helix Server requires
    acceptance of the following terms and conditions:
    Press [Enter] to display the license text…
    extracting text from file /tmp/RNKey-Helix_Server-90.lic

    #—#—> อ่านรายละเอียด License Key ยาวมาก

    REALNETWORKS, INC.
    END USER LICENSE AGREEMENT
    REALNETWORKS(r) HELIX(tm) SERVER


    RealNetworks, Helix, RealOne Player,
    RealAudio, and RealVide are trademarks
    or registered trademarks of
    RealNetworks, Inc.

    RealNetworks Helix Server 9
    Helix 6-26-02 mss

    Choose “Accept” to accept the terms of this
    license agreement and continue with Helix Server setup.
    If you do not accept these terms, enter “No”
    and installation of Helix Server will be cancelled.
    #—#—> Enter อย่างไม่มีเงื่อนไข
    I accept the above license: [Accept]:

    Enter the complete path to the directory where you want
    Helix Server to be installed. You must specify the full
    pathname of the directory and have write privileges to
    the chosen directory.
    #—#—> พิมพ์ โฟลเดอร์ ที่จะติดตั้งโปรแกรม เอาตามผมนี่แหละ
    Directory: [/tmp]: /usr/local/rmserver

    #—#—> Username
    #—#—> Password
    #—#—> ตามลำดับ อย่าลืมหละ ครับ
    Please enter a username and password that you will use
    to access the web-based Helix Server Administrator, monitors,
    and live encoders:
    Username []: admin
    Password []:
    Confirm Password []:

    Please enter a port on which Helix Server will listen for
    PNA connections. These connections have URLs that begin
    with “pnm://”
    #—#—> Enter อย่างไม่มีเงื่อนไข แต่อ่านรายละเอียดซะหน่อยนะครับ ว่า Port นี้เอาไว้ทำอะไร
    Port [7070]:

    #—#—> Enter อย่างไม่มีเงื่อนไข แต่อ่านรายละเอียดซะหน่อยนะครับ ว่า Port นี้เอาไว้ทำอะไร
    Please enter a port on which Helix Server will listen for
    RTSP connections. These connections have URLs that begin
    with “rtsp://”
    Port [554]:

    Please enter a port on which Helix Server will listen for
    HTTP connections. These connections have URLs that begin
    with “http://”
    #—#—> Enter อย่างไม่มีเงื่อนไข แต่อ่านรายละเอียดซะหน่อยนะครับ ว่า Port นี้เอาไว้ทำอะไร
    #—#—> แต่ถ้าเครื่องใช้ Port 80 ไปแล้ว ก็ต้องเลือก Port ใหม่อาจจะเป็น 8080 ก็ได้ครับ
    Port [80]:
    เช่น
    Port [80]: 8080
    #—#—> แล้ว Enter

    Please enter a port on which Helix Server will listen for
    MMS connections. These connections have URLs that begin
    with “mms://”
    #—#—> Enter อย่างไม่มีเงื่อนไข แต่อ่านรายละเอียดซะหน่อยนะครับ ว่า Port นี้เอาไว้ทำอะไร
    Port [1755]:

    Helix Server will listen for Administrator requests on the
    port shown. This port has been initialized to a random value
    for security. Please verify now that this pre-assigned port
    will not interfere with ports already in use on your system;
    you can change it if necessary.
    #—#—> Port นี้แต่ละเครื่องที่ติดตั้งจะไม่เหมือนกันนะครับ จะต้องจดจำเพื่อ นำไปใช้งาน เมื่อจะเข้ามา config server ผ่านเวป ครับ อย่าลืมหละ
    Port [21004]:

    #—#—> เสร็จแล้ว รายละเอียดต่างๆ เหล่านี้ จดไว้เลยนะครับ *****************************************************************************
    You have selected the following Helix Server configuration:

    Admin User/Password: admin/****
    Encoder User/Password: admin/****
    Monitor Password: ****
    RTSP Port: 554
    HTTP Port: 80
    PNA Port: 7070
    MMS Port: 1755
    Admin Port: 21004
    Destination: /usr/local/rmserver

    Enter [F]inish to begin copying files, or [P]revious to go
    #—#—> Enter อย่างไม่มีเงื่อนไข
    back to the previous prompts: [F]:

    Copying Helix Server files…..
    Helix Server installation is complete.

    If at any time you should require technical
    assistance, please visit our on-line support area
    at http://service.real.com/.
    Cleaning up installation files…
    Done.

    www#
    #—#—> เสร็จกระบวนการติดตั้งครับ
    #—#—>ต่อไปเป็นขั้นตอนการ config

    #—#—> ดูซะหน่อย
    www# ll
    total 16186
    drwxrwxrwt 2 root wheel 512 Jun 4 17:34 .X11-unix
    -rwxr-xr-x 1 root wheel 23997 Jun 4 17:37 RNKey-Helix_Server-90.lic
    -rwxr-xr-x 1 root wheel 2477796 Jun 4 17:37 rmserver
    -rwxr-xr-x 1 root wheel 14018967 Jun 4 17:37 rs901-freebsd4-ia32.bin

    #—#—> copy ไฟล์ rmserver ซึ่งเป็นไฟล์ config ไปไว้ที่ /usr/local/rmserver/Bin/ อย่าลืมว่าตัว B ตัวใหญ่นะครับ ผมพลาดหลายรอบเลย
    www# cp rmserver /usr/local/rmserver/Bin/
    #—#—> เข้าไปยังโฟลเดอร์ ที่ติดตั้งโปรแกรม
    www# cd /usr/local/rmserver/
    #—#—> ดูซะหน่อย
    www# ll
    total 76
    drwxr-xr-x 2 root wheel 512 Jun 4 17:49 Bin
    drwxr-xr-x 2 root wheel 512 Dec 14 2002 Cache
    drwxr-xr-x 8 root wheel 512 Dec 14 2002 Commerce
    drwxr-sr-x 10 root wheel 512 Dec 14 2002 Content
    drwxr-xr-x 5 root wheel 3584 Dec 14 2002 HelixAdministrator
    drwxr-xr-x 2 root wheel 512 Dec 14 2002 Lib
    drwxr-xr-x 2 root wheel 512 Jun 4 17:49 License
    drwxr-xr-x 2 root wheel 512 Dec 14 2002 Logs
    drwxr-xr-x 2 root wheel 1536 Dec 14 2002 Plugins
    drwxr-xr-x 2 root wheel 512 Dec 14 2002 Secure
    drwxr-xr-x 6 root wheel 512 Jun 4 17:49 adm_b_db
    drwxr-xr-x 6 root wheel 512 Jun 4 17:49 cdi_b_db
    -rw——- 1 root wheel 21055 Jun 4 17:49 default.cfg
    drwxr-xr-x 6 root wheel 512 Jun 4 17:49 enc_b_db
    drwxr-xr-x 6 root wheel 512 Jun 4 17:49 enc_r_db
    -rw——- 1 root wheel 21055 Jun 4 17:49 rmserver.cfg
    -rw——- 1 root wheel 1237 Dec 14 2002 slta.cfg
    www# pwd
    /usr/local/rmserver

    #—#—> รัน ไฟล์ config ด้วยคำสั่ง ซึ่งจะมีผลให้ server เริ่มทำงาน และ จะแสดงรายละเอียกยาวเหยียด รอซักครู่ และแล้ว Enter
    www# ./Bin/rmserver rmserver.cfg &
    [1] 220
    www# Helix Server (c) 1995-2002 RealNetworks, Inc. All rights reserved.
    Version: Helix Server 9.0 (9.0.2.794)
    Platform: freebsd-4.0-i586

    Using Config File: rmserver.cfg
    Creating Server Space…
    Starting PID 223, procnum 1 (timer)
    Calibrating Timers…
    Starting PID 224, procnum 2 (rmcore)
    Starting Helix Server 9.0 Core…
    Loading Helix Server License Files…
    E: The following license file is for an earlier version of the server, and will not be used: /usr/local/rmserver/License/license.txt. Please contact RealNetworks for technical support.

    1 CPU Detected
    Testing File Descriptors…

    Starting PID 244, procnum 22 (rmplug)
    Starting PID 245, procnum 23 (memreap)
    Starting PID 246, procnum 24 (streamer)
    #—#—> Enter

    #—#—> จากนั้น พิมพ์ คำสั่ง ไม่รู้เอาไว้ทำอะไรเหมือนกัน ผมก็ไม่รู้ว่าคำสั่งนี้ ทำอะไร
    www# ps -ax | grep -c rmserver
    28

    #—#—> เป็นอันเสร็จสิ้นการ config
    #—#—> แก้ไขไฟล์ rc.local เพื่อให้ Helix Server ทำงานทุกครั้งที่มีการ boot เครื่อง
    www# vi /etc/rc.local

    ~
    ~
    ~
    /usr/local/rmserver/Bin/rmserver /usr/local/rmserver/rmserver.cfg &
    ~
    ~
    ~

    /etc/rc.local: new file: 2 lines, 89 characters.

    #—#—> เสร็จสิ้นทุกอย่าง ก็ reboot เครื่องเลยครับ
    www# reboot

    #—#—> การใช้งานเบื้องต้น ก็
    http://xxx.xxx.xxx:21004/admin/index.html
    กรอก
    Admin User/Password:
    เพื่อเข้าสู่หน้า Admin ได้เลยครับ

    ส่วนการใช้งานอย่างอื่นก็ลองศึกษาดูนะครับ ถ้ามีอะไรก็สอบถามมาได้ ครับ
    เอาไว้ ว่างๆ จะมาเพิ่มเติมอีกนะครับ
    หรือดูรายละเอียดเพิ่มเติมที่
    http://service.real.com/help/library/guides/helixuniversalserver/realsrvr.htm

    สิ่งที่จะได้ คือ

    ABOUT xxx.xxx.xxx
    Information about the license for your Helix Server, including which features are enabled, is stored in a file in a license directory. The license files are written in XML format. The LicenseDirectory variable in the configuration file tells Helix Server where to look for license information.

    If you purchase additional features, these will be listed in additional files stored in the same directory and will appear on this page. To upgrade your license so that you can use more of Helix Server’s features, contact RealNetworks or your reseller.

    Properties
    Server:Port 10.50.10.131:21004
    Platform freebsd-4.0-i586
    Product Helix Universal Internet Server
    Version 9.0.2.794
    License Directory /usr/local/rmserver/License

    Licenses
    Product ID Issue Date Expire Date
    Helix Universal Internet Server 01/01/2002 12/31/2030

    Capacity
    Max Client Connections 10000

    Features
    Ad Serving yes
    Authentication Storage Basic yes
    Authentication Storage mSQL yes
    Authentication Storage ODBC yes
    Authentication Commerce Access yes
    Authentication Commerce Permissions yes
    Broadcast Distribution - Push Transmission yes
    Broadcast Distribution - Pull Transmission yes
    Broadcast Distribution - Push Receive yes
    Broadcast Distribution - Pull Receive yes
    Broadcast Distribution - Multicast yes
    Broadcast Redundancy yes
    Content Caching - Publisher yes
    Content Caching - Subscriber yes
    Distributed Licensing - Publisher yes
    Distributed Licensing - Subscriber yes
    ISP Hosting no
    Scalable Multicast yes
    RTSP Back-Channel Multicast yes
    Windows Media Multicast yes
    Registry Logging yes

    Data Types
    RealAudio yes
    RealVideo yes
    RealFlash yes
    RealPix yes
    RealEvents yes
    RealText yes
    MPEG 1 Audio Layer 3 - MP3 yes
    MPEG 1 Video yes
    MPEG 2 Video yes
    MPEG 4 Video yes
    QuickTime yes
    Windows Media yes
    Copyright ฉ 1995-2002 RealNetworks, Inc. This product may incorporate one or more of the following: U.S. Patent # 5,793,980; U.S. Patent # 5,917,835; U.S. Patent # 6,151,634; 6,487,663. Other U.S. patents pending. All rights reserved.

    Flash ฉ 1997 Macromedia, Inc. Macromedia, the Macromedia logo, Flash, and Shockwave are trademarks or registered trademarks of Macromedia, Inc.

    Includes support for JavaScript ™. JavaScript ฉ Netscape Communications Corporation.

    Java™ is a trademark of Sun Microsystems.

    Helix, RealAudio, RealNetworks, RealSystem, RealVideo, and SureStream are trademarks or registered trademarks of RealNetworks, Inc. All other companies or products listed herein are trademarks or registered trademarks of their respective owners. All rights reserved.

  • สรวีย์ บรรลือทรัพย์

    การติดตั้ง shoutcast เป็น video streaming

    แบ่งเป็น 2 ฝั่ง
    1. ฝั่ง server
    เริ่มต้นให้ทำการ fetch เอาไฟล์ shoutcast-1-9-5-freebsd5-elf.tar.gz มา เอาจากที่นี่ก็ได้ครับ
    #fetchhttp://bsd.psru.ac.th/book2/shoutcast/shoutcast-1-9-5-freebsd5-elf.tar.gz
    จริง ๆ แล้วมีใน ports นะครับ จะอยู่ที่ /usr/ports/audio/shoutcast แต่เท่าที่ลองดูมะแจ่มครับ มะรู้ว่าเพราะผม set ไม่เป็นหรือเปล่า - -”
    จากนั้นก็ทำการแตกไฟล์ออกครับ
    #tar zxvf shoutcast-1-9-5-freebsd5-elf.tar.gz
    เข้าไปใน folder ที่แตกออกมา
    #cd shoutcast-1-9-5-freebsd5-elf
    จากนั้นให้ทำการแก้ไขไฟล์ sc_serv.conf โดยมีรายละเอียดหลัก ๆ ดังนี้
    ตรง password=changme ให้เปลี่ยน changme เป็น password ของเราครับ จะเป็น password ที่เครื่องลูกจะใช้ตอน stream ส่งข้อมูลเข้ามาครับ
    ตรง ;AdminPassword=adminpass ให้เอาเครื่องหมาย ; ออก แล้วตรง adminpass ให้เปลี่ยน password ของผู้ดูแลครับ
    เสร็จเรียบร้อยการ config เบื่องต้น จากนั้นสั่งให้ shoutcast server ทำงานโดยสั่ง
    #./sc_serv
    เรียบร้อยครับฝั่ง server

    2. ฝั่ง stream client
    ก่อนอื่น download โปรแกรม nsvtools ลงมาก่อน จาก url นี้ครับ
    http://www.nullsoft.com/nsv/nsvtools-setup.exe
    พอ download มาแล้วก็ทำการติดตั้งเลยครับ แนะว่าที่เก็บโปรแกรมให้เปลี่ยนจากของเดิมที่จะเอาไปเก็บใน c:\Program Files\NSVtools เป็น C:\NSVtools เฉย ๆ ดีกว่าครับเวลาเข้าไปสั่งให้ทำงานหรือ config จะง่ายกว่าครับ
    หลังจากติดตั้งเสร็จแล้วก็เริ่ม config กันเลยครับไปที่ dos promtp (windows ที่สูงกว่า me ไปที่ start –> run —> พิมพ์ cmd กด ok, windows ตั้งแต่ me ลงมา ไปที่ start –> run —> พิมพ์ command –> กด ok) จากนั้นไปยัง directory ที่เราติดตั้งโปรแกรมลงไป (ของผมติดตั้งใน C:\NSVtools)
    ที่ command line
    #cd \
    #cd NSVtools
    #nsvenc /config
    จะปรากฏหน้าตาแบบนี้ครับ ให้เรากำหนดค่าตามใจชอบได้เลยครับ (แล้วแต่มั่ก) จากนั้นคลิ๊กที่ NSV Encoder Configuration จะปรากฏหน้าจอประมาณนี้ขึ้นมา ให้เราตั้งค่าประมาณนี้ครับ ส่วนสำคัญจะอยู่ที่ Audio Format กับ Video แนะนำว่าให้ตั้งตามนี้ครับ
    เสร็จแล้วครบการ config นั้นทำการ encoder ไฟล์ media ของเราได้เลยครับ ทำการ copy ไฟล์ที่เราจะ encoder ไปเก็บไว้ที่ที่เราติดตั้งโปรแกรมไว้ ผมเก็บไว้ที่ C:\NSVtools ครับ ซึ่งการ encoder รูปแบบมาตรฐานจะมีรุปแบบดังนี้้ครับ
    #nsvenc input.นามสกุล output.nsv
    สมมติว่าผมมีไฟล์ชื่อ video.mpg ผมก็จะสั่งดังนี้
    #nsvenc video.mpg video.nsv
    มันก็จะทำการ encoder ไฟลืให้เรา หาก error ให้ทำการ config ค่า encoder ใหม่ครับ
    หลังจากเสร็จเรียบร้อยให้ทำการสร้าง folder ขึ้นมา 1 folder และทำการ ย้ายไฟล์ video.nsv ไปเก็บไว้ที่ folder นั้น เช่นผมเก็บไฟล์ video เกี่ยวกับกิจกรรมผมก็จะตั้งชื่อว่า activity (จะอยู่ที่ C:\NSVtools\activity)
    จากนั้นให้เราทำการสร้างไฟล์ headers.txt ขึ้นมาโดยมีรายละเอียดในไฟล์ดังนี้
    ###### รายละเอียดในไฟล์ headers.txt #############
    changeme < -== รหัสผ่านที่จะ connect ไปที่ shoutcast server ที่เรากำหนดไว้ตั้งแต่ตอนแรกอ่ะครับ (ฝั่ง server)
    content-type:video/nsv
    icy-metadata:0
    icy-name:My NSV Stream <-== ใส่รายละเอียด อันนี้แล้วแต่มัก
    icy-genre:Video
    icy-pub:0
    icy-br:128
    icy-url:http://www.shoutcast.com <-== ใส่ url ของ web เรา อันนี้แล้วแต่มัก
    icy-irc:#chan
    icy-icq:1234567
    icy-aim:SomeUser
    icy-reset:1
    #### จบ #####
    จากนั้นทำการ save และนำไปเก็บไว้ที่ C:\NSVtools เรียบร้อยแล้วเราก็เริ่มบรรเลงเพลงยุทธิ์ได้เลยครับ โดยสั่งดังนี้
    #nsvscsrc 192.168.1.1:8001:headers.txt activity
    เมื่อ 192.168.1.1 คือ ip เครื่อง shoutcast server และ 8001 คือ port ของ shoutcast ที่เราตั้งไว้ 8000 (ให้เพิ่มขึ้นอีก 1) และ activity คือ directory ที่เราเอาไฟล์ media ที่เรา encode เสร็จแล้วไปเก็บไว้ครับ
    เรียบร้อยครับ โอย เสร็จซะที่ - -" หลัก ๆ ก็ตามนี้ถ้าติดปัญหาค่อยมา Post ถามอีกทีครับ ตอนนี้ผมขอตัวเอาเครื่องคอมพ์ไปติดให้ User ก่อน โอยเหนื่อย เมื่อไหร่หลวงพี่จะสึกเนี่ย

    original message : http://www.thaibsd.com/webboard/show.php?Category=thaibsd&No=4049

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>