Media::Convert::Asset::Profile::copy(3pm) | User Contributed Perl Documentation | Media::Convert::Asset::Profile::copy(3pm) |
Media::Convert::Asset::Profile::copy - Profile that merely copies all data, unmodified.
use Media::Convert::Asset; use Media::Convert::Asset::ProfileFactory; use Media::Convert::Pipe; my $input = Media::Convert::Asset->new(url => $input_filename); my $profile = Media::Convert::Asset::ProfileFactory->create("copy", $input); my $output = Media::Convert::Asset->new(url => "$output_basename." . $profile->exten, reference => $profile); Media::Convert::Pipe->new(inputs => [$input], output => $output)->run();
The "copy" profile copies the input video into the output container, without any re-encoding.
It only works in one of the following conditions:
All other cases are currently unsupported (but could be added if required).
The "copy" profile has the exact same effect as using the "vcopy" in Media::Convert::Pipe and "acopy" in Media::Convert::Pipe options on "Media::Convert::Pipe", but is expressed as a profile.
2023-03-07 | perl v5.36.0 |