#!/bin/csh
foreach vidfile(./*.yuv)
	echo transcoding to avi $vidfile:r 
	if ( -e $vidfile:r{.avi} ) then
                echo "$vidfile existe"
	else
		ffmpeg -s 1280x720  -pix_fmt yuv420p -i $vidfile -sameq -vcodec rawvideo $vidfile:r{.avi}	
	endif
end
