ONVIF:...ration(3pm)

πŸ“¦
version 1.36.37 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

ok so bestie, this is ONVIF::Device::Elements::VideoEncoderConfiguration β€” it's a Perl data type class, and it lives in the 3pm manual section (yes that's the "Perl module" section, iykyk). Basically it's the little Perl buddy that represents the XML Schema element VideoEncoderConfiguration from the http://www.onvif.org/ver10/schema namespace. That's the whole vibe. πŸŽ€


✨ DESCRIPTION ✨

okay so real talk: this is a Perl data type class for the XML Schema defined element VideoEncoderConfiguration, and that element comes straight from the namespace http://www.onvif.org/ver10/schema. It's giving "SOAP-adjacent, very structured, extremely XML" and honestly? we love a well-defined schema moment. πŸ’…


🌸 METHODS 🌸

πŸ¦‹ new

my $element = ONVIF::Device::Elements::VideoEncoderConfiguration->new($data);

so this is the constructor, bestie β€” you call it to make a whole new element. and here's the tea: the following data structure may be passed to new(), so peek at the shape of it below before you go building one, fr fr πŸ‘‡

{ # ONVIF::Device::Types::VideoEncoderConfiguration
  Encoding => $some_value, # VideoEncoding
  Resolution =>  { # ONVIF::Device::Types::VideoResolution
    Width =>  $some_value, # int
    Height =>  $some_value, # int
  },
  Quality =>  $some_value, # float
  RateControl =>  { # ONVIF::Device::Types::VideoRateControl
    FrameRateLimit =>  $some_value, # int
    EncodingInterval =>  $some_value, # int
    BitrateLimit =>  $some_value, # int
  },
  MPEG4 =>  { # ONVIF::Device::Types::Mpeg4Configuration
    GovLength =>  $some_value, # int
    Mpeg4Profile => $some_value, # Mpeg4Profile
  },
  H264 =>  { # ONVIF::Device::Types::H264Configuration
    GovLength =>  $some_value, # int
    H264Profile => $some_value, # H264Profile
  },
  Multicast =>  { # ONVIF::Device::Types::MulticastConfiguration
    Address =>  { # ONVIF::Device::Types::IPAddress
      Type => $some_value, # IPType
      IPv4Address => $some_value, # IPv4Address
      IPv6Address => $some_value, # IPv6Address
    },
    Port =>  $some_value, # int
    TTL =>  $some_value, # int
    AutoStart =>  $some_value, # boolean
  },
  SessionTimeout =>  $some_value, # duration
},

like, look at all those nested hashes β€” it's giving family tree 🧚 every one of those keys is exactly as written, no cap, so don't go renaming GovLength or SessionTimeout or anything, okay? 😭 the comments next to each one tell you the type, and you can trust them πŸ’–


πŸ‘‘ AUTHOR πŸ‘‘

Generated by SOAP::WSDL. iconic behavior honestly, it just generates the whole thing for you and dips 🫢


okay that's the page!! πŸ’œ one last thing before you go, bestie β€” this lil doc is from perl v5.40.1, dated 2026-02-01, and it's filed under ONVIF:...ration(3pm) in the User Contributed Perl Documentation. slay, go forth and encode some video configs βœ¨πŸŽ€

πŸ“¦ where this page comes from