#!/bin/bash mkdir reencoded for v in *.avi; do ffmpeg -i "$v" -target dv "reencoded/$v" done