#!/bin/bash

# Copyright Jean-Philippe Guillemin <jp.guillemin@free.fr>. This program is free software; you can redistribute
# it and/or modify it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at your option)
# any later version. Please take a look at http://www.gnu.org/copyleft/gpl.htm
#

intype="flv"
outtype="avi"
command() { 
	/usr/bin/mencoder "$1" -mf fps=50 -o /dev/null -oac mp3lame -lameopts cbr:br=128 -ovc lavc -sws 1 -lavcopts vcodec=mpeg4:vbitrate=2000:keyint=240:vhq:vqmin=2:vqmax=30:vpass=1 -vf scale=320:240 -noodml -ffourcc DIVX
	/usr/bin/mencoder "$1" -mf fps=50 -o "$2" -oac mp3lame -lameopts cbr:br=128 -ovc lavc -sws 1 -lavcopts vcodec=mpeg4:vbitrate=2000:keyint=240:vhq:vqmin=2:vqmax=30:vpass=2 -vf scale=320:240 -noodml -ffourcc DIVX
}

. /usr/libexec/mediascripts-functions.sh
