2010. 11. 5. 13:01

Wowza Media Server 2 설치 & 실행


 미디어 서비스중 대표적인 Windows Media Server 또는 Abode Flash Media Streaming Server 이외에 설치상 매우 간단하고
많은 포멧방식을 서비스하는 Media Server 를 알아보겠습니다.

어떤 포멧 방식을 지원해주는지 아래에서 확인 할 수 있습니다.

  • flv: FLV (Flash Video - this is the default media type so the qualifier and the file extension can be omitted)
    Example: "flv:mycoolvideo.flv"
  • mp4: MP4 (QuickTime container - .mp4, .f4v, .mov, .m4v, .mp4a, .3gp, and .3g2)
    Example: "mp4:mycoolvideo.mov"
  • mp3: MP3 (.mp3)
    Example: "mp3:mycoolsong.mp3"
  • smil: SMIL (XML files used to configure multi-bitrate streams - .smil)

* Real Time Messaging Protocol (RTMP - Adobe Flash Player)
   - Video   
H.264/VP6/SorensonSpark/Screen Shared codec
   - Audio     
AAC - AAC, AAC Low Complexity (AAC LC), High Efficiency AAC v1 and v2
                  (HE-AAC)/MP3/Speex/NellyMoser ASAO


*  Apple HTTP Live Streaming (Cupertino Streaming - iPhone, iPad, iPod touch)
   - Video  H.264 (Baseline profiile level 3.0 or below)
   - Audio  AAC, AAC Low Complexity (AAC LC), High Efficiency AAC v1 (HE-AAC)/MP3


* Smooth Streaming (Microsoft Silverlight)
   - Video  H.264

   -  Audio  AAC - AAC, AAC Low Complexity (AAC LC), High Efficiency AAC v1 and v2
                (HE-AAC)/MP3

 * RTSP/RTP/MPEG-TS (QuickTime, VLC, mobile devices, set top boxes, encoders)



[1]설치 & 실행.
     -> Java 기반으로 구동 되기 때문에 Java SDK 설치 해줘야 합니다. (http://oracle.com
     -> Wowza Media Server 2 다운로드  (
http://www.wowzamedia.com/store.html)
          Step1 에서 Download 후 설치 하면 됩니다. (설치 가능한 O/S 는 Windows,Mac,Linux 등 거의 모든 O/S 가능합니다.)
          
          라이센스는 Free 버전인 Get Free이 있으며, 구매 $995 / 매달 결제 $65 가 있습니다.
          아래 그림에서는 짤려서 나타나지 않으나 Request Free Evaluation 버전이 있으며, 30일 동안 제약없이 사용가능한 
          라이센스가 있습니다. 근데 이버전은 왠지 모르게 메일로 라이센스가 안와서 Get Free 버전으로 테스트 합니다.

          Get Free(Wowza Server Developer edition)은 최대 10개까지 커넥션이 가능하며 3분의 제한 시간 입니다.
          


          


설치후 Wowza Startup 을 클릭하면 커멘드 창에서 프로세스가 실행되는것을 확인 할 수 있습니다.
successful 메세지와 포트 1935 를 사용한다는것도 나옵니다.

Wowza Startup 실행후
http://localhost:1935 를 하면 아래와 같은 메세지가 나타나 실행되었음을 확인 할 수 있습니다.

Wowza Media Server 2 Developer 2.1.2 build24878

  


 
[2]. iPhon 으로 확인.

 설치 후 설치시 경로를 C:\Wowza 로 설정하였습니다.
다음 파일을 클릭해 이상없이 파일이 인코딩 되었는지 확인 할 수 있습니다.
C:\Wowza\examples\SimpleVideoStreaming\clientsimplevideostreaming.html




아래 폴더에 파일을 불러옵니다.
해당 경로의 수정은 C:\Wowza\conf\Application.xml 에서 수정할 수 있습니다.


<Streams>
   <StreamType>default</StreamType>
   <StorageDir>${com.wowza.wms.context.VHostConfigHome}/content</StorageDir>
   <KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
   <!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, cupertinostreamingrepeater, smoothstreamingrepeater -->
   <LiveStreamPacketizers></LiveStreamPacketizers  
   <!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application -->
   <Properties>
   </Properties>
  </Streams>

- 경로.
C:\Wowza\content


** 추가 **

conf/Vhost.xml 의 Vhost/HostPortList/HostPort/Port 에 554 추가

<Port>1935, 554</Port>


Application.xml 에서 Application/RTP/Authentication/PlayMethod 를 none 으로 설정.

<PlayMethod>none</PlayMethod>


IPhone

http://IPAddress:1935/vod/mp4:sample.mp4/playlist.m3u8


android

rtsp://IPAddress/vod/mp4:sample.mp4


* 인코딩 부분을 baseline 3.0 / acc 로 진행. framerate를 낮춘다.