denoise.sh

Download denoise.sh here



#!/bin/sh

if [ "$#" -lt 2 ]; then
	echo "Usage: $0 infile.avi outfile.avi"
	exit
fi

lav2wav -I +p $1 > audio.wav

lav2yuv +p $1 | yuvdenoise | yuv2lav -f a -q 80 -o inter.avi

mencoder inter.avi -oac copy -audiofile audio.wav -ovc copy -o $2

rm audio.wav inter.avi