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

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.