可能です
注意:
こちらはエキスパートユーザー向けの説明となります
詳細設定を変更する必要があるため、誤った設定を行った場合にWowzaが動作しなくなる可能性があります
十分にご注意の上、ご利用ください
設定を変更される前にバックアップを作成される事を強く推奨いたします
設定を行う場合、以下のリンク先を参照してください
http://www.wowza.com/forums/content.php?145
手順は以下の通りです。
詳細な手順は上記リンク先を参照してください
1)ユーザーにAdvancedFeatureへアクセスできる権限を付与
エキスパート設定を表示させる為に、以下のリンク先の手順で設定を行ってください
http://www.wowza.com/forums/content.php?217#configListeners
Allow access to advanced properties and features で検索すると表示される項目を参照してください
2)Server Listenerに以下の設定を追加
|
Fully Qualified Class Name
|
| com.wowza.wms.plugin.collection.serverlistener.ServerListenerStreamPublisher |
3)Moduleに以下の項目を追加
|
Name
|
Description
|
Fully Qualified Class Name
|
| streamPublisher | Schedules streams and playlists. | com.wowza.wms.plugin.collection.module.ModuleStreamPublisher |
4)Serverのプロパティに以下の項目を追加
|
Path
|
Name
|
Type
|
Value
|
Notes
|
| Root/Server | streamPublisherVHost | String | _defaultVHost_ | Name of Virtual Host on to which the schedule will be loaded. Only needed if there is a custom Virtual Host Name (default: _defaultVHost_). |
| Root/Server | streamPublisherApplication | String | live/_definst_ | Name of application and AppInstance on to which the schedule will be loaded (default: live/_definst_). |
5)アプリケーションのプロパティに以下の項目を追加
|
Path
|
Name
|
Type
|
Value
|
Notes
|
| Root/Server or /Root/Application* | streamPublisherSmilFile | String | streamschedule.smil | Name of the SMIL file that will be used for this application’s schedule. The SMIL file must be in the application’s Content Storage directory (default: streamschedule.smil). |
| Root/Server or /Root/Application* | streamPublisherPassMetaData | Boolean | true | If true, passes metadata from the source videos to the stream. In previous versions of Wowza Media Server®, the duration metadata from VOD files could cause problems with player scrub bars when using the scheduler, so this property was used to turn the metadata off. However, if turned off, this setting causes problems with frame size. In Wowza Streaming Engine™, the duration metadata that was causing problems has been blocked, so it is no longer necessary to turn off the metadata (default: true). |
| Root/Server or /Root/Application* | streamPublisherSwitchLog | Boolean | true | If set to true, logs when each schedule switch occurs. If a schedule is set but all items are missing, excessive logging can occur. Set this to false to prevent excessive logging (default: true). |
6)スケジュール配信用の設定ファイルを作成
実際にスケジュール配信を行う場合、○月○日 ○時○分○秒という風に設定を行う必要があります
終了方法は”開始から何秒後に停止”か、”コンテンツを最後まで再生して終了”の2通りがあります
再生終了後にリピートを行う設定も可能です
以下が設定例です
<smil>
<head>
</head>
<body>
<stream name="Stream1"></stream>
<stream name="Stream2"></stream>
<playlist name="pl1" playOnStream="Stream1" repeat="true" scheduled="2013-09-25 16:00:00">
<video src="mp4:sample.mp4" start="5" length="5"/>
<video src="mp4:sample.mp4" start="50" length="5"/>
<video src="mp4:sample.mp4" start="150" length="5"/>
</playlist>
<playlist name="pl2" playOnStream="Stream1" repeat="true" scheduled="2013-09-25 16:30:00">
<video src="mp4:sample.mp4" start="0" length="-1"/>
</playlist>
<playlist name="pl3" playOnStream="Stream2" repeat="true" scheduled="2013-09-25 16:00:00">
<video src="mp4:sample.mp4" start="30" length="5"/>
</playlist>
</body>
</smil>
各設定項目の内容は以下の通りです
<stream name="Stream1"></stream> → 実際に配信する際のStreamNameです。FlashPlayerなどに埋め込む際にはこのStreamNameを使用します
<playlist name="pl1" → プレイリストを複数設定する事が可能です。ここではpl1とはプレイリストの1番という意味になります playOnStream="Stream1" → どのStreamNameに対して実行するのかを設定します repeat="true" →リピートを行う場合はtrue、逆の場合はfalseです scheduled="2013-09-25 16:00:00"> → 開始時刻を設定します
<video src="mp4:sample.mp4" → 入力ソースを指定します。ここではmp4:sample.mp4をソースファイルとして使用しています
start="5" → VODファイルがソースの場合、ソースファイルの開始何秒後からを開始とするかを秒で指定します。ここではソースファイルの5秒後から開始となります。ライブソースの場合は-2と入力します length="5"/> → スケジュール配信開始から何秒後に停止するかを設定します。-1とした場合は、VODファイルの場合はファイルの最後まで再生します。ライブソースの場合は必ず-1としてください
設定が完了後、”streamschedule.smil”としてファイルを保存してください
7)Wowza Streaming Engineの再起動
Wowza Streaming Engineの再起動後、先ほど作成したstreamschedule.smilを読み込み、指定された時間にスケジュール配信が実施されます
ホーム