Scroll to navigation

SReview::Normalizer(3pm) User Contributed Perl Documentation SReview::Normalizer(3pm)

NAME

SReview::Normalizer - normalize the audio of a video asset.

SYNOPSIS

  SReview::Normalizer->new(input => SReview::Video->new(...), output => SReview::Video->new(...))->run();

DESCRIPTION

"SReview::Normalizer" is a class to normalize the audio of a given SReview::Video asset, using bs1770gain at its default settings.

It looks at the "command_tune" configuration parameter to decide whether to pass the "--suffix" option to bs1770gain: if the installed version of "bs1770gain" is at 0.5 or below, set the "bs1770gain" key of "command_tune" to 0.5 to remove the "--suffix" parameter from the command line (which is required for 0.6 or above, but not supported by 0.5 or below).

ATTRIBUTES

The following attributes are supported by SReview::Normalizer.

input

An SReview::Video object for which the audio should be normalized.

Required.

output

An SReview::Video object that the normalized audio should be written to, together with the video from the input file.

Required. Must point to a .mkv file.

METHODS

run

Performs the normalization.

2021-09-09 perl v5.32.1