Depinning and dynamics of vortices confined in mesoscopic flow channels