ASF::Info - ASF files for attributes like:
-video codec -audio codec -frame height -frame width -frame count
and more!
use ASF::Info; my $video; $video = ASF::Info->new(-file=>$filename); #like this $video->vcodec; #video codec $video->acodec; #audio codec ...
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.
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.
header() : returns the header section of the ASF file.
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.
Allen Day <allenday@ucla.edu> Copyright (c) 2002, Allen Day License - QPL 1.0
mplayer - movie player for linux: http://www.mplayerhq.hu/homepage/
Microsoft ASF: http://www.microsoft.com/windows/windowsmedia/WM7/format/asfspec11300e.asp
L<perl> L<Video::Info> L<RIFF::Info>
To install ASF::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ASF::Info
CPAN shell
perl -MCPAN -e shell install ASF::Info
For more information on module installation, please visit the detailed CPAN module installation guide.