The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

ASF::Info - ASF files for attributes like:

 -video codec
 -audio codec
 -frame height
 -frame width
 -frame count

and more!

SYNOPSIS

  use ASF::Info;

  my $video;

  $video = ASF::Info->new(-file=>$filename);                          #like this

  $video->vcodec;                         #video codec
  $video->acodec;                         #audio codec
  ...

DESCRIPTION

ASF stands for Advanced Systems Format, in case you were wondering. It used to stand for Active Streaming Format, but Microsoft decided to change it. This type of file is primarily used to store audio & video data for local or streaming playback. It can also be embedded with commands (to launch a web browser, for instance), for an "immersive" experience. ASF is similar in structure to RIFF. (See RIFF::Info). The morbidly curious can find out more below in REFERENCES.

INHERITED METHODS

ASF::Info is a subclass of Video::Info, a wrapper module designed to meet your multimedia needs for many types of files. As such, not all methods available in ASF::Info are documented here.

ASF::Info has one constructor, new(). It is called as: -file => $filename, #your ASF file Returns a ASF::Info object if the file was opened successfully.

The ASF::Info object to parses the file by method probe(). This does a series of sysread()s on the file to figure out what the properties are.

Now, call one (or more) of the Video::Info methods to get the low-down on your file. See Video::Info.

CLASS SPECIFIC METHODS

header() : returns the header section of the ASF file.

BUGS

Audio codec name mapping is incomplete. If you know the name that corresponds to an audio codec ID that I don't, tell me.

Some Video::Info methods are not honored, such as fps and vframes. I haven't been able to figure out how to extract this information from the ASF 1.0 spec. Any information would be appreciated.

AUTHOR

Allen Day <allenday@ucla.edu> Copyright (c) 2002, Allen Day License - QPL 1.0

REFERENCES

mplayer - movie player for linux: http://www.mplayerhq.hu/homepage/

Microsoft ASF: http://www.microsoft.com/windows/windowsmedia/WM7/format/asfspec11300e.asp

SEE ALSO

 L<perl>
 L<Video::Info>
 L<RIFF::Info>