#!/usr/bin/perl 

package MP3;

use ExportBase;

our @ISA = qw(ExportBase);

my $description = "MP3 Settings.";
my $devices = "Any MP3 capable device";
my $notes = "";
my $version = "1.3";

sub new{
    my $class = shift;
    my $self = $class->SUPER::new(shift, shift, $description, $devices, $notes, $version);
    $self->Extension(".mp3");
    bless $self, $class;
    return $self;
}

sub export{
    my( $self ) = @_;

    system("ffmpeg -i \'$self->{_inputFile}\' -y -acodec libmp3lame -ac 2 -ab 192k -vn \'$self->{_outputFile}$self->{_extension}\'");

}

1;
