The distribution of media files (audio and video files) over a network is the process of delivering (streaming) an audio or video stream from one server to another.
Distribution serves many purposes, such as:
Distributing a stream to another server.
Distributing a stream to a server that is enabled for HTTP streaming. This allows users behind a firewall to receive a stream.
Distributing a stream from one Windows Media Server to another Windows Media Server.
Advanced Streaming Format (ASF):
Media file distribution can be done by using the Advanced Streaming format (ASF). ASF is a data format for streaming audio and video content, images, and script commands in packets over a network with a small time delay before playback begins.
NetShow Encoder (a part of Windows Media Tools) is used to convert media files (like AVI, WAV and MPG) to ASF. Users can select a codec (Compressor/Decompressor) based on the audio, image quality, and image size. Other third-party tools are also available, like Zealot Software’s All Video Converter (http://www.zealotsoft.net/).
ASF Stream Redirector (.asx) file:
The metafile (.asx) is a simple text file. It is easily created and edited with a text editor such as Notepad. This file is saved with the file extension “.asx”. Other types of metafilers are “.wax” and “.wvx”. “.wax” is used for pure audio stream with “.wma” file extension. “.wvx” is used for video stream with “.wmv” file extension.
An ASX metafile can provide the following information:
The location of the media file (.asf) on the Network.
The Title, Author, Description and Copyright information of the media file.
<asx version=”3.0”> … </asx> -- Shows the version number of the metafile. <entry> … </entry> --Shows the individual media file detail. <ref href=”…” /> -- Shows the location of the media file.
Sample 2 (Simple metafile with Title, Author and Copyright):
<asx version=”3.0”> <entry> <title> Title of the file </title> <author> Author of the file </author> <copyright> Copyright information </ copyright> <ref href=”http://servername/path/asf-file1. asf” /> </entry> </asx>
Explanation:
<title> … </title> -- Displays the Title of the clip in the Clip and Title bar of the Windows Media Player. <author> … </author> -- Displays the Author name in Windows Media Player author column. <copyright> … </copyright> -- Shows the Copyright information in Windows Media Player Copyright column.
Sample 3 (Metafile with Playlist):
<asx version=”3.0”> <entry> <title> Title of the file 1 </title> <author> Author of the file 1 </author> <copyright> Copyright information 1 </copyright> <ref href=”http://servername/path/asf-file1.asf” /> </entry> <entry> <title> Title of the file 2 </title> <author> Author of the file 2 </author> <copyright> Copyright information 2 </copyright> <ref href=”http://servername/path/asf-file2.asf” /> </entry> </asx> <asx version=”3.0”> <title> Title of the files </title> <author> Author of the files </author> <copyright> Copyright information </copyright> <entry> <ref href=”http://servername/path/asf-file1.asf” /> </entry> <entry> <ref href=”http://servername/path/asf-file2.asf” /> </entry> </asx>
[Description] Program Title=Title of the ASF file Program Description=Description of the ASF file Program Author=Author name Program Copyright=Copyright
Explanation:
Ref1 – First reference to try (HTTP Server). Ref2 – Second reference to try (NetShow Server). BaseURL – Base URL (Basic Path) for relative references in the ASF stream to use this as a base path.
ASF path:
Path should be one of the following:
mms://servername/path/asf-file1.asf - NetShow server path. http://servername/path/asf-file1.asf - HTTP server path. file://\\servername\path\asf-file1.asf - Network server path. File://c:\path\asf-file1.asf - Fixed drive path / Hard drive path.