logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Media::Convert::Asset::Profile::copy - Profile that merely copies all data, unmodified.

Description

       The "copy" profile copies the input video into the output container, without any re-encoding.

       It only works in one of the following conditions:

       •   the video codec is VP9 and the audio codec is opus (the extension will be .webm)

       •   the video codec is VP8 and the audio codec is vorbis (the extension will be .webm)

       •   the video codec is H.264 and the audio codec is AAC (the extension will be .mp4)

       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.

perl v5.40.0                                       2024-12-22             Media::Convert:...::Profile::copy(3pm)

Name

       Media::Convert::Asset::Profile::copy - Profile that merely copies all data, unmodified.

Synopsis

         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();

See Also