added median filter to video out for libav test