Info::ASF(3pm)

πŸ“¦
version 0.993 Β· 2 versions
  • 0.993 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.993 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 🌈


⭐ 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