#!/usr/bin/perl 

# Update this with a package name relivant to your new config.
package PortableMPEG4LowRes;

use ExportBase;

our @ISA = qw(ExportBase);

#Example strings, replace with something relivant to your new config.
my $description = "High Resolution (480x320) Portable MPEG4 Settings.";
my $devices = "Low Resolution Android Devices (example HTC Hero), iPod Classic, iPod Nano";
my $notes = "Requires AAC, activate Medibuntu";
my $version = "1.1";

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

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

    # Any command can go here, below is an example of ffmpeg, but you can use anything you would like.
    # Available variables are inputFile, outputFile, and extension
    system("ffmpeg -i \'$self->{_inputFile}\' -y -acodec libfaac -ab 192k -vcodec mpeg4 -b 1500k -mbd 2 -flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -ac 2 -threads 0 -s 480x320 -aspect 16:9 \'$self->{_outputFile}$self->{_extension}\'");

}

1;
