for i in *.mp4; do ffmpeg -strict -2 -threads 1 -i "$i" \
-vf hqdn3d=1.5:1.5:6:6,yadif=0:-1:0,scale=-1:360 \
-codec:v libx264 -crf 18 -preset fast -profile:v high \
-b:v 500k -maxrate 1000k -bufsize 256k \
-movflags +faststart \
-codec:a libvo_aacenc -b:a 96k \
transcoded/`basename "$i" .avi` ; done


