C++ rtmp livestream 流媒体

海阔天空 张翼飞翔

我的学习笔记。--我喜欢这里,因为这里安静,无广告骚扰。
随笔 - 82, 文章 - 2, 评论 - 126, 引用 - 0
数据加载中……

Wowza Media Server 播放实时H264流 采用Wirecast

Using Vara Software's Wirecast live encoder with Wowza Pro (RTSP/RTP)
  1. Download and install Wowza Media Server Pro (version: Wowza Pro 1.5.0-preview2 or greater)
  2. Create a new Wowza Pro application for streaming (may already exist if examples installed)
    1. Create the folder [install-dir]/applications/streamtest
    2. Create the folder [install-dir]/conf/streamtest
    3. Copy the file [install-dir]/conf/Application.xml into this new folder [install-dir]/conf/streamtest
    4. Edit the newly copied Application.xml and change Streams/StreamType to live
    5. Startup the Wowza Pro server
  3. Hook up webcamera to PC
  4. Download and install Vara Software's Wirecast
  5. Startup Wirecast and click the thumbnail of your web camera in the media list
  6. Create a new H.264/AAC encoder preset
    1. Select the menu item Window: Encoder Presets
    2. Click the Encoder Preset: Edit... button
    3. From the Encoder Preset drop down menu select <New...>, enter a name for your preset and click OK
    4. Change the Output Format drop down to QuickTime
    5. Select the Video tab, change the Encoder drop down menu to H.264 and change and other settings as desired
    6. Select the Audio tab, change the Encoder drop down menu to MPEG-4 Audio and change and other settings as desired
    7. Click the Save button to save your new preset
  7. Configure broadcast settings
    1. Select the menu item Broadcast: Broadcast Settings...
    2. Change the Encoder Preset drop down to encoder preset you created above
    3. Change the Destination drop down to Announce to QuickTime Streaming Server
    4. Change Host Name to [server-ip-address]:1935 (where [server-ip-address] is the ip address of the server running Wowza Pro)
    5. Change File Location to streamtest/myStream.sdp (the format of this field as it relates to Wowza Pro is [application]/[application-instance]/[stream] if [application-instance] is omitted it defaults to _definst_)
    6. Click the Save button to save your broadcast settings
  8. To broadcast to Wowza Pro, select the menu item Broadcast: Start Broadcasting

Flash播放代码,
Server: rtmp://[server-ip-address]/streamtest
Stream: myStream.sdp
具体Flahs播放代码参考http://www.cnweblog.com/fly2700/archive/2008/04/11/281632.html
注意:
1、Wirecast和wowza不要放在一台服务器上,否则端口冲突
 2、Flash Player version 9.0.115.0 or greater is required.

 

posted on 2008-04-14 10:45 ZhangEF 阅读(1855) 评论(0)  编辑  收藏 所属分类: rtmp