# Extracts avi files.
# Depends on MPlayer's mencoder: http://www.mplayerhq.hu/
0 string RIFF
8 string AVI\x20
# mencoder will keep reading after the avi ends, so we use tools/safecat to
# stop it when it's not outputting useful things anymore.
extension avi
command safecat -d 30M -u 2M -t 200M "$1"|mencoder -nocache -o "$1" -ovc copy -oac copy -
min_output_file 102400
