Info::ASF(3pm)
β¨ NAME β¨
Video::Info::ASF β bestie, it's for ASF files, and it pulls out attributes like:
-video codec
-audio codec
-frame height
-frame width
-frame count
...and more! π
πΈ SYNOPSIS πΈ
use Video::Info::ASF;
my $video;
$video = Video::Info::ASF->new(-file=>$filename); #like this
$video->vcodec; #video codec
$video->acodec; #audio codec
...
π¦ DESCRIPTION π¦
Okay so, ASF stands for Advanced Systems Format, in case you were sitting there wondering the whole time. It used to stand for Active Streaming Format, but Microsoft decided to change it, which, sure. π This type of file is mainly 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, okayyy. And ASF is similar in structure to RIFF. (See RIFF::Info.) If you're morbidly curious, the REFERENCES below have the tea. π«
π« INHERITED METHODS π«
Video::Info::ASF is a subclass of Video::Info, a wrapper module designed to meet your multimedia needs for many types of files. Which means: not all the methods available in Video::Info::ASF are documented here, and that's not a mistake, that's inheritance, slay. π
Video::Info::ASF has one constructor, new(). It gets called like:
-file => $filename, #your ASF file Returns a Video::Info::ASF
It returns a Video::Info::ASF object if the file was opened successfully. β¨
Then the Video::Info::ASF object parses the file by the method probe(). What does probe() do? It does a series of sysread()s on the file to figure out what the properties are. Lowkey iconic behavior honestly.
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. That's it, that's the method. π«Ά
π 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. fr fr, I want to know. π
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 π
Copyright (c) 2002
Aladdin Free Public License (see LICENSE for details)
Allen Day <allenday@ucla.edu>
π REFERENCES π
mplayer- movie player for linux:- Microsoft ASF:
β SEE ALSO β
L<perl>L<Video::Info>L<RIFF::Info>
and that's the whole page bestie π
this was Info::ASF(3pm), from perl v5.36.0, dated 2022-12-12 β go read your files, periodt πβ¨
π¦ where this page comes from
- debian bookworm: libvideo-info-perl 0.993-5 Β· AFPL
- debian trixie: libvideo-info-perl 0.993-5 Β· AFPL
- ubuntu noble: libvideo-info-perl 0.993-5 Β· AFPL
- ubuntu resolute: libvideo-info-perl 0.993-5 Β· AFPL
- ubuntu stonking: libvideo-info-perl 0.993-5 Β· AFPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms