Info::Magic(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

okay so bestie, welcome to Info::Magic(3pm) β€” the manual page that's about to make video filetype detective work feel like a group chat. no cap. πŸ’…

✨ NAME ✨

Video::Info::Magic β€” Resolve video filetype if possible. fr fr, that's the whole name line. πŸ¦‹


✨ SYNOPSIS ✨

okay so here's the vibe in code form, and yes you can copy-paste this exactly:

         use strict;
         use Video::Info::Magic qw(:all);

         my $type = divine('/path/to/video.mpg' );

         print $type; #MPEG system stream data (maybe)

         ## ... see methods below

🫢 EXPORT 🫢

okay so the exports are giving useful constants related to video file formats. every single one is prefixed with "VIDEO_" β€” yes, with the quotes around it in the docs, so keep that energy. πŸ’–

  • divine() β€” Employs /usr/share/magic entries to determine a file's type, as well as GUID and other info from Microsoft, mplayer, transcode... πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

this iconic work is:

  • Copyright (c) 2002
  • Aladdin Free Public License (see LICENSE for details)
  • Allen Day <allenday@ucla.edu>

🌈 SEE ALSO 🌈

go check Video::Info. and magic.


and that's the whole page, bestie β€” sourced from perl v5.36.0, dated 2022-12-12, and it's the Info::Magic(3pm) manual. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from