The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!perl

use strict;
use warnings;
use FFmpeg::Command;
use Test::More qw( no_plan );

my $ffmpeg = FFmpeg::Command->new;

$ffmpeg->global_options(qw/-ga -gb/);
$ffmpeg->infile_options(qw/-ia -ib/);
$ffmpeg->outfile_options(qw/-oa -ob/);
$ffmpeg->input_file('filename1');
$ffmpeg->output_file('output_file');

my $cmd = $ffmpeg->_compose_command;

is(
    join(' ', @$cmd),
    $ffmpeg->ffmpeg . ' -y -ga -gb -ia -ib -i filename1 -oa -ob output_file'
);