ONVIF::...uration(3)
π NAME π
okay bestie, so this page is part of the User Contributed Perl Documentation set, and the star of the show is ONVIF::Media::Elements::SetVideoEncoderConfiguration β say that five times fast, i swear π
β¨ DESCRIPTION β¨
It's a Perl data type class, no cap. Specifically it's the class for the XML Schema defined element SetVideoEncoderConfiguration, and it lives in the namespace http://www.onvif.org/ver10/media/wsdl π¦
that's it. that's the whole vibe. it's giving "small class, big purpose" energy π
πΈ PROPERTIES πΈ
so you got two properties, and you touch them with get_PROPERTY / set_PROPERTY methods. iconic, honestly:
Configurationβ the config itself, the main character of this whole situation π«Ά
$element->set_Configuration($data);
$element->get_Configuration();
ForcePersistenceβ do you wanna force it to persist? yes or no bestie, pick one π
$element->set_ForcePersistence($data);
$element->get_ForcePersistence();
π METHODS π
π new
constructor time!! literally just make the thing:
my $element = ONVIF::Media::Elements::SetVideoEncoderConfiguration->new($data);
and here's the data structure you may pass to new() β i'm gonna need you to look at all of it, because it's a lot, and it's all important, and i refuse to skip a single line π
{
Configuration => { # ONVIF::Media::Types::VideoEncoderConfiguration
Encoding => $some_value, # VideoEncoding
Resolution => { # ONVIF::Media::Types::VideoResolution
Width => $some_value, # int
Height => $some_value, # int
},
Quality => $some_value, # float
RateControl => { # ONVIF::Media::Types::VideoRateControl
FrameRateLimit => $some_value, # int
EncodingInterval => $some_value, # int
BitrateLimit => $some_value, # int
},
MPEG4 => { # ONVIF::Media::Types::Mpeg4Configuration
GovLength => $some_value, # int
Mpeg4Profile => $some_value, # Mpeg4Profile
},
H264 => { # ONVIF::Media::Types::H264Configuration
GovLength => $some_value, # int
H264Profile => $some_value, # H264Profile
},
Multicast => { # ONVIF::Media::Types::MulticastConfiguration
Address => { # ONVIF::Media::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
},
ForcePersistence => $some_value, # boolean
},
like?? nested hashes for days π but it slays, and every $some_value is literally exactly that β a placeholder for your actual value, don't come for me π§
π real talk: the structure above is what new() accepts. don't go inventing extra keys, bestie β this class only knows what's listed here.
π AUTHOR π
Generated by SOAP::WSDL β that's the whole author section, and honestly? it's giving "the machine did the work and took the credit" energy π₯
okay that's the page!! this one shipped as part of perl v5.42.3, dated 1980-01-01 (yes really, that date is a whole mood π), and you were reading ONVIF::...uration(3) π go forth and configure those video encoders, bestie β you've got this β¨π
π¦ where this page comes from
- nixpkgs unstable: zoneminder 1.38.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms