Codebase list magicrescue / 4f0163a9-1d62-4605-b6d7-259c18b64401/main recipes / avi
4f0163a9-1d62-4605-b6d7-259c18b64401/main

Tree @4f0163a9-1d62-4605-b6d7-259c18b64401/main (Download .tar.gz)

avi @4f0163a9-1d62-4605-b6d7-259c18b64401/mainraw · history · blame

1
2
3
4
5
6
7
8
9
# 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