$plugin_purpose{'convert-mplayer'} =
  "Convert various files to WAVE files using mplayer";
$plugin_options{'convert-mplayer'} = [
  ['opts=string', 'Extra mplayer command line options']];

$convert_plugin_hook = sub {
    my ($src, $dest) = map({quotemeta($_)} @_);
    my $mplayeropts = $plugin{'convert-mplayer'}{opts};
    system("mplayer -really-quiet -vo none -format s16le".
	" -channels $channels -srate 44100 $mplayeropts".
	" -ao pcm:file=$dest $src >/dev/null");
    warn "error while executing mplayer" if $? != 0;
};

1
# vim:ft=perl
