1. Overview
ASF for arranging, tissue, to facilitate synchronized multimedia data transmitted over the network. ASF is a data format that can be used to specify a live demonstration. ASF most suitable for transmitting multimedia streams over a network, are also suitable for playing locally. Any compression / decompression algorithm (codec) can be used to encode ASF stream.
WindowsMediaService core is ASF. ASF is a numberAccording to the format, audio, video, image and multimedia information such as a control command script in this format, transmitted in the form of network packets, streaming multimedia content distribution achieved. Wherein the content transmission over the network is called ASFStream. ASF support any compression / decompression encoding, and can use any of the underlying network transmission protocol, with great flexibility.
MicrosoftMediaplayer player is able to play almost all multimedia files, support ASF file format in Internet streaming online, while downloading can be played in real time, without having to listen to downloaded. ASF file local or network playback; scalable media types; component download, scalable media types; prioritized stream; multi-language support, environmental independence; relations between the rich streams and scalability.
2, ASF files created
1, the software will convert MPEG-1 format image files into Microsoft’s new ASF video stream format. Use software tools: SonicFoundryStreamAnywhere and WindowsMediaToolkit. DETAILED DESCRIPTION steps: First, install the ASF WindowsMediaToolkit or compressed version number corresponding driver library copied to Windows / System directory.
Next run software –SonicFoundryStreamAnywhere. Open mpg file. Select “Saveas” (Save As) → select the file you want to save ASF file folder → select “EncodeWindowsMediaFormat” key → set the compression ratio you want to generate the ASF file. If selected, then the equivalent of 250Video compression speed 2MB / minute, the image quality is not very good. Similarly, if the election is equivalent to 4M 512VideoB / min compression rate. In fact, it should be good quality ASF and 320 × 240 in the case where there are 30 frames / sec, it can still image and sound synchronization. Finally, cancel EncodeRealMediaformat option and confirm the completion.
2, using a dedicated video capture card (Ospres-200), by means of “NetshowEcorder3.0” software to convert video recorders, disc players, cameras and other video, audio signal into ASF format. To have a digital format dat, mpg file, the tool can be hero super king 2000 – “vcd turn avi” program, be converted to avi format, and then use the included software to capture card to complete the conversion process ASF. In this specific process is not introduced.
3, ASF file function
1, Demand (VideoOnDemand)
Because the ASF support any compression / decompression encoder may use any of the underlying network transmission protocol, which makes it both at high LAN use, can also be used in low bandwidth dial-up Internet connection environment. Under-on-demand services, interference between users, can control playback on-demand content. In this way the most flexible, but tying up server, network resources.
ASF-demand content are stored on the VOD server, establish VOD site for web publishing, at the same time can be multi-point simultaneous demand the same or different programs, that multiple computers can be in different locations, different time, real-time, interactive on-demand to the same stream ASF file, the user can view and select content on demand via the Internet. Play can be achieved during playback, stop, pause, fast forward, rewind and so on, playback rate 25 frames / s,1 hour of video information in the 300Kb / s acquisition, only 108MB of space, a 640MB CD-ROM can be stored for nearly 6 hours ASF file.
2, Live
under Live service, users can only view the content playback, you can not be controlled. ASF files can be used as a source of media content, real-time multimedia content most suitable for broadcast service. By the camera video capture card, the recorded contents of the microphone input to the computer, the code generation ASF stream, then the signal is transmitted by the machine to a network, a user to watch live content via the web.
The computer may receive the same or a different program channel, broadcast television as a small computer, each computer connected to a network can be received in real time of nine different program channels.
3, distance education
This distance education system ASF files produced by the computer, vod server, the user machine.
the creation of ASF files installed on the computer video capture card, sound card and video cameras for the production of streaming media file; VOD server for streaming media storage and distribution of information; user machine is even ordinary multimedia computer in the Internet, through the web learning. There are instructor-led video files on the web, multimedia courseware, learning executive summary, references, review / practice information questions, and other operations.
4, ASF1.0 introduce
Advanced Streaming Format by Microsoft in 1995 and 1998. Its main purpose is to form as a general storage and streaming. There are two versions of the ASF. A version is ASF2.0, another version of ASF1.0. Here are ASF1.0:
Data type
UINT8, UINT16, UINT32, UINT64- unsigned integer values, 8,16,32, or 64 bits long. In Type GNUC compiler they represent ‘unsigned char’, ‘unsigned short ‘,’ unsigned long ‘and’ 64-bit integer unsigned long long FILETIME- unsigned multiples of 100 nanoseconds
-128 bit GUID value can be generated using special algorithms in any system. The unique algorithm to ensure that any such value (which means two different computers, or even at different times of the time can not produce the same GUID in the same computer). BITMAPINFOHEADER- general structure, describing the image format (compressed).
typedef structure
(
long biSize; // size (the BITMAPINFOHEADER)
long biWidth;
long biHeight;
short biPlanes; // Not used
Short term the biBitCount; [ 123] long-term the biCompression; // image
of the long-term biSizeImage fourcc; // for the image size of the compressed image
// (biCompression0 or 3) may be zero
long biXPelsPerMeter; // not used [ 123] long biYPelsPerMeter; //
biClrUsed long unused; // only available in the color palette image
// number of color palette
) BITMAPINFOHEADER;.. // long biClrImportant; [ 123]
WAVEFORMATEX- common structure, description format (compressed) audio stream
typedef structure (
short wFormatTag; // value, compression format is determined short-term nChannels;
long nSamplesPerSec;
long nAvgBytesPerSec;
short nBlockAlign; // data sample size
short wBitsPerSample;
the cbSize short; // grid sizeType-specific data
) WAVEFORMATEX;
This structure is followed by a series of byte size cbSize.
All of the measured time interval of 100 nanoseconds and is not representative of 64-bit type, or measured in milliseconds and represents the type of 32-bit or 16-bit (per 65.5 seconds).
General Information
ASF1.0 file format by the ‘block’. They are similar to block the AVI format, but also increase the size of their fields. FIG Block 🙁 a)
view of a
1,
File header block
FIG 🙁 ii) FIG bis [ 123] this is a special one, because it contains a data field to other blocks. There may be any number of such large, but we need to know two special types.
Figure III in the 0x02 flags may mean that the file seekable. The minimum and maximum packet sizes are usually the same. It is not know exactly how to deal with ASF file, assuming its value is not true.
Stream
FIG objects 🙁 IV) FIG four specific data is a data type the meaning can be derived only from the type of flow. Can then field also depends on the value of the audio error concealment type. The second unknown is the value of this goal seems to be absolutely random, but if there are multiple streams in the file, they all hold the same value here.
Data
FIG video stream 🙁 V) Figure V Foreign ASF input image formats, usually contains BITMAPINFOHEADER structure, which is 40 bytes long, but it is not a good way, because it may contain some larger scale.
FIG six
is equal to the size of the extended format cbSize neat structure of WAVEFORMATEX .
Figure VII This data is present only if the audio error concealment formula field of the main structure comprising the corresponding GUID. See section ‘audio error concealment’ details in this area.
FIG 🙁 eight data blocks)
Figure VIII
a) near the frame packet size. This would be acceptable in a storage rack complete package pad size it needs. Ii) frame is greater than the data packet. Then, it needs to ‘broken’ into several fragments, and issue different packets. C) considerably lower than the data packet frame. In this case, it would be a good idea to send more than one frame in the same package. This is called the ‘Group’.
There may be heading a variety of formats, but most of the package film begins with V82_Header 🙁 Figure IX
)
nine
The exact meaning of the
FIG. ,dataI do not know the packet size. It rarely occurs in the ASF stream, when it, it will display the full length of the packet data (from the beginning of the last portion of a packet header). Sometimes ORed with 0x10 or 0x8, but I’ve never seen the package specified non-zero fill scale development of 0x40 and flags. Figure X The most significant bit (0x80)
in the stream number, if a key frame portion contains. Here’s something to be a little bit complicated. Specific areas depending on whether the segment is part of a packet (i.e., the range comprises more than one), or not. This can be deduced from the value of flags, which is itself in some specific areas.
Figure XI
A “fragment offset” is the offset of the segment objects (e.g., video frames ), which contains it. For fragments of a full frame, fragment offset equal to the length of the object and the data length is zero.
A “fragment offset” ‘group type ID’ header field size value is determined. Known possible values and the latter is 0x55,0x59 0x5D, which is equivalent to 1, 2 and 4 bytes in size.
subdivision header value “data length” field size is determined. When there are several segments, the lower bit (about 6) contains several parts, means disposed 0x40 bit ‘data length’ field is a 1 byte wide portion, and means disposed 0x80 bit ‘data length, 2-byte wide field portion. Otherwise, the default size of the field is 2 bytes.
Specifically art section, FIG packet 🙁 l)
Figure XII
Such a structure is similar toNo grouping, but it does not have “fragment offset” field because the division and grouping can not be performed simultaneously.
AVIWAVWMAMPCASFWMV
6, References
Slackware: http: //avifile.sourceforge.net/