Info::FOO(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 πŸ’–

okay so bestie, lemme introduce you to Video::Info::FOO β€” and like, what is it even useful for?? an example list, literally right here:

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

and more! πŸŽ€ (yes, MORE, we're not even done)


✨ SYNOPSIS ✨

  use Video::Info::FOO;

  my $video;

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

πŸ¦‹ DESCRIPTION πŸ¦‹

so like… what does the module actually do? What are its limitations? Is it built on top of other code? πŸ‘€ and if so, what are the deets and where can I even get it?? These are the questions, bestie.

🌸 METHODS 🌸

Video::Info::FOO has one constructor, new(). It gets called like this:

  -file       => $filename,   #your RIFF file
  -headersize => $headersize  #optional RIFF header size to parse

Returns a Video::Info::FOO object if the file was opened successfully. 🫢

The Video::Info::FOO object parses the file by method probe(). This does a series of sysread()s on the file to figure out what the properties are. no cap, it's just reading bytes and vibing.

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

  • achans() β€” number of audio channels
  • acodec() β€” audio codec
  • acodecraw() β€” audio codec numeric ID
  • arate() β€” audio bitrate
  • afrequency() β€” sampling rate of audio streams, in Hertz
  • astreams() β€” number of audio streams
  • filename() β€” path file used to create object
  • filesize() β€” size in bytes of filename()
  • fps() β€” frames/second
  • height() β€” frame height in pixels
  • probe() β€” try to determine filetype
  • scale() β€” video bitrate
  • type() β€” type of file data. RIFF or AVI
  • vcodec() β€” video codec
  • vframes() β€” number of frames
  • vrate() β€” video bitrate
  • vstreams() β€” number of video streams
  • width() β€” frame width in pixels
  • ... β€” ...
  • and_so_on() β€” ...

πŸ’€ BUGS πŸ’€

Audio codec name mapping is incomplete. 😭 If you know the name that corresponds to an audio codec ID that I don't, tell the Video::Info::Magic author, Allen Day <allenday@ucla.edu>. pls, they're begging.


πŸ‘‘ AUTHOR πŸ‘‘

 Copyright (c) 2002
 Aladdin Free Public License (see LICENSE for details)
 Your Name <your.name@email.address>

🌈 REFERENCES 🌈

  • List any references that were used to write Video::Info::FOO, preferably with URLs.

and that's the whole page, bestie!! πŸ’… this was perl v5.36.0, dated 2022-12-12, and it's the 3pm manual (User Contributed Perl Documentation, iykyk). slay, go read some RIFF headers. 🧚✨

πŸ“¦ where this page comes from